foreman_rh_cloud 3.0.23 → 4.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/insights_client_report_status.rb +4 -0
- data/app/services/foreman_rh_cloud/cloud_request_forwarder.rb +0 -8
- data/config/package-lock.json.plugin +1785 -3628
- data/lib/foreman_inventory_upload.rb +9 -1
- data/lib/foreman_inventory_upload/generators/queries.rb +1 -0
- data/lib/foreman_inventory_upload/generators/slice.rb +1 -0
- data/lib/foreman_rh_cloud/engine.rb +14 -9
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/insights_cloud/async/insights_client_status_aging.rb +17 -0
- data/lib/inventory_sync/async/host_result.rb +4 -0
- data/lib/inventory_sync/async/inventory_hosts_sync.rb +10 -0
- data/lib/inventory_sync/async/inventory_self_host_sync.rb +30 -0
- data/lib/inventory_sync/async/query_inventory_job.rb +5 -1
- data/package.json +1 -1
- data/test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb +41 -0
- data/test/jobs/insights_client_status_aging_test.rb +33 -0
- data/test/jobs/inventory_hosts_sync_test.rb +2 -0
- data/test/jobs/inventory_self_host_sync_test.rb +103 -0
- data/test/test_plugin_helper.rb +0 -1
- data/test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb +3 -3
- data/test/unit/slice_generator_test.rb +15 -0
- data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTable.test.js.snap +0 -2
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediateButton.js +0 -1
- data/webpack/InsightsCloudSync/Components/__tests__/__snapshots__/NoTokenEmptyState.test.js.snap +13 -20
- data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +2 -2
- metadata +8 -2
@@ -61,7 +61,6 @@ exports[`InsightsTable rendering render with Props 1`] = `
|
|
61
61
|
expandId="expandable-toggle"
|
62
62
|
gridBreakPoint="grid-md"
|
63
63
|
isStickyHeader={false}
|
64
|
-
isTreeTable={false}
|
65
64
|
onSelect={[Function]}
|
66
65
|
onSort={[Function]}
|
67
66
|
ouiaSafe={true}
|
@@ -138,7 +137,6 @@ exports[`InsightsTable rendering render with Props 1`] = `
|
|
138
137
|
"currPage": "Current page",
|
139
138
|
"items": "",
|
140
139
|
"itemsPerPage": "Items per page",
|
141
|
-
"ofWord": "of",
|
142
140
|
"optionsToggle": "Items per page",
|
143
141
|
"page": "",
|
144
142
|
"paginationTitle": "Pagination",
|
@@ -34,7 +34,6 @@ const RemediateButton = ({ isExperimentalMode, selectedIds, toggleModal }) => {
|
|
34
34
|
button = (
|
35
35
|
<Popover
|
36
36
|
isVisible={isVisible}
|
37
|
-
aria-label={__('Please enable lab features to use this button')}
|
38
37
|
bodyContent={
|
39
38
|
<div dangerouslySetInnerHTML={{ __html: popoverContent }} />
|
40
39
|
}
|
data/webpack/InsightsCloudSync/Components/__tests__/__snapshots__/NoTokenEmptyState.test.js.snap
CHANGED
@@ -190,28 +190,21 @@ exports[`NoTokenEmptyState render 1`] = `
|
|
190
190
|
onClick={[Function]}
|
191
191
|
variant="primary"
|
192
192
|
>
|
193
|
-
<
|
194
|
-
|
195
|
-
|
193
|
+
<button
|
194
|
+
aria-disabled={true}
|
195
|
+
aria-label={null}
|
196
|
+
className="pf-c-button pf-m-primary pf-m-disabled"
|
197
|
+
data-ouia-component-id="OUIA-Generated-Button-primary-1"
|
198
|
+
data-ouia-component-type="PF4/Button"
|
199
|
+
data-ouia-safe={true}
|
200
|
+
disabled={true}
|
196
201
|
onClick={[Function]}
|
197
|
-
|
202
|
+
role={null}
|
203
|
+
tabIndex={null}
|
204
|
+
type="button"
|
198
205
|
>
|
199
|
-
|
200
|
-
|
201
|
-
aria-label={null}
|
202
|
-
className="pf-c-button pf-m-primary pf-m-disabled"
|
203
|
-
data-ouia-component-id="OUIA-Generated-Button-primary-1"
|
204
|
-
data-ouia-component-type="PF4/Button"
|
205
|
-
data-ouia-safe={true}
|
206
|
-
disabled={true}
|
207
|
-
onClick={[Function]}
|
208
|
-
role={null}
|
209
|
-
tabIndex={null}
|
210
|
-
type="button"
|
211
|
-
>
|
212
|
-
Save setting and sync recommendations
|
213
|
-
</button>
|
214
|
-
</ButtonBase>
|
206
|
+
Save setting and sync recommendations
|
207
|
+
</button>
|
215
208
|
</Button>
|
216
209
|
</div>
|
217
210
|
</div>
|
@@ -29,12 +29,12 @@ exports[`InsightsCloudSync render 1`] = `
|
|
29
29
|
toolbarButtons={
|
30
30
|
<React.Fragment>
|
31
31
|
<UNDEFINED />
|
32
|
-
<
|
32
|
+
<Button
|
33
33
|
onClick={[Function]}
|
34
34
|
variant="secondary"
|
35
35
|
>
|
36
36
|
Start recommendations sync
|
37
|
-
</
|
37
|
+
</Button>
|
38
38
|
</React.Fragment>
|
39
39
|
}
|
40
40
|
>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_rh_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Red Hat Cloud team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|
@@ -221,6 +221,7 @@ files:
|
|
221
221
|
- lib/foreman_rh_cloud/engine.rb
|
222
222
|
- lib/foreman_rh_cloud/version.rb
|
223
223
|
- lib/insights_cloud.rb
|
224
|
+
- lib/insights_cloud/async/insights_client_status_aging.rb
|
224
225
|
- lib/insights_cloud/async/insights_full_sync.rb
|
225
226
|
- lib/insights_cloud/async/insights_generate_notifications.rb
|
226
227
|
- lib/insights_cloud/async/insights_resolutions_sync.rb
|
@@ -231,6 +232,7 @@ files:
|
|
231
232
|
- lib/inventory_sync/async/inventory_full_sync.rb
|
232
233
|
- lib/inventory_sync/async/inventory_hosts_sync.rb
|
233
234
|
- lib/inventory_sync/async/inventory_scheduled_sync.rb
|
235
|
+
- lib/inventory_sync/async/inventory_self_host_sync.rb
|
234
236
|
- lib/inventory_sync/async/query_inventory_job.rb
|
235
237
|
- lib/tasks/foreman_rh_cloud_tasks.rake
|
236
238
|
- lib/tasks/insights.rake
|
@@ -249,12 +251,14 @@ files:
|
|
249
251
|
- test/controllers/uploads_settings_controller_test.rb
|
250
252
|
- test/factories/insights_factories.rb
|
251
253
|
- test/factories/inventory_upload_factories.rb
|
254
|
+
- test/jobs/insights_client_status_aging_test.rb
|
252
255
|
- test/jobs/insights_full_sync_test.rb
|
253
256
|
- test/jobs/insights_resolutions_sync_test.rb
|
254
257
|
- test/jobs/insights_rules_sync_test.rb
|
255
258
|
- test/jobs/inventory_full_sync_test.rb
|
256
259
|
- test/jobs/inventory_hosts_sync_test.rb
|
257
260
|
- test/jobs/inventory_scheduled_sync_test.rb
|
261
|
+
- test/jobs/inventory_self_host_sync_test.rb
|
258
262
|
- test/jobs/upload_report_job_test.rb
|
259
263
|
- test/models/insights_client_report_status_test.rb
|
260
264
|
- test/test_plugin_helper.rb
|
@@ -677,12 +681,14 @@ test_files:
|
|
677
681
|
- test/controllers/uploads_settings_controller_test.rb
|
678
682
|
- test/factories/insights_factories.rb
|
679
683
|
- test/factories/inventory_upload_factories.rb
|
684
|
+
- test/jobs/insights_client_status_aging_test.rb
|
680
685
|
- test/jobs/insights_full_sync_test.rb
|
681
686
|
- test/jobs/insights_resolutions_sync_test.rb
|
682
687
|
- test/jobs/insights_rules_sync_test.rb
|
683
688
|
- test/jobs/inventory_full_sync_test.rb
|
684
689
|
- test/jobs/inventory_hosts_sync_test.rb
|
685
690
|
- test/jobs/inventory_scheduled_sync_test.rb
|
691
|
+
- test/jobs/inventory_self_host_sync_test.rb
|
686
692
|
- test/jobs/upload_report_job_test.rb
|
687
693
|
- test/models/insights_client_report_status_test.rb
|
688
694
|
- test/test_plugin_helper.rb
|