foreman_rh_cloud 13.2.9 → 13.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/insights_cloud/api/machine_telemetries_controller.rb +4 -8
- data/app/controllers/insights_cloud/ui_requests_controller.rb +3 -7
- data/app/models/concerns/rh_cloud_host.rb +36 -1
- data/app/services/foreman_rh_cloud/url_remediations_retriever.rb +19 -5
- data/lib/foreman_inventory_upload/async/upload_report_direct_job.rb +2 -0
- data/lib/foreman_inventory_upload/generators/fact_helpers.rb +26 -4
- data/lib/foreman_inventory_upload.rb +8 -1
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/foreman_rh_cloud.rb +36 -9
- data/lib/insights_cloud/async/insights_generate_notifications.rb +10 -1
- data/lib/inventory_sync/async/inventory_self_host_sync.rb +12 -2
- data/package.json +1 -1
- data/test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb +16 -2
- data/test/controllers/insights_cloud/ui_requests_controller_test.rb +16 -2
- data/test/jobs/insights_generate_notifications_test.rb +26 -0
- data/test/jobs/inventory_self_host_sync_test.rb +9 -0
- data/test/jobs/upload_report_direct_job_test.rb +29 -0
- data/test/unit/foreman_rh_cloud_self_host_test.rb +50 -2
- data/test/unit/insights_facet_test.rb +5 -0
- data/test/unit/metadata_generator_test.rb +24 -1
- data/test/unit/rh_cloud_host_test.rb +68 -0
- data/test/unit/services/foreman_rh_cloud/url_remediations_retriever_test.rb +82 -5
- data/webpack/CVEsHostDetailsTab/CVEsHostDetailsTab.js +24 -2
- data/webpack/CVEsHostDetailsTab/__tests__/CVEsHostDetailsTab.test.js +73 -10
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js +10 -9
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/__tests__/EmptyState.test.js +13 -9
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/__tests__/ErrorState.test.js +20 -9
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/ListItem.test.js +31 -8
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/ListItemStatus.test.js +26 -10
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js +33 -9
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js +55 -35
- data/webpack/ForemanInventoryUpload/Components/FileDownload/__tests__/FileDownload.test.js +13 -9
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilter.test.js +12 -15
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js +32 -12
- data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageTitle.test.js +15 -7
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js +47 -18
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/SettingsWarning.test.js +58 -15
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js +23 -9
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js +19 -17
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/integrations.test.js +25 -37
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/ScheduledRun.test.js +28 -8
- data/webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/StatusChart.test.js +25 -8
- data/webpack/ForemanInventoryUpload/Components/TabContainer/__tests__/TabContainer.test.js +11 -9
- data/webpack/ForemanInventoryUpload/Components/TabFooter/__tests__/TabFooter.test.js +11 -9
- data/webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js +4 -4
- data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/InventoryAutoUpload.test.js +33 -12
- data/webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js +36 -8
- data/webpack/ForemanRhCloudHelpers.js +22 -0
- data/webpack/InsightsHostDetailsTab/NewHostDetailsTab.js +27 -1
- data/webpack/InsightsHostDetailsTab/__tests__/NewHostDetailsTab.test.js +134 -22
- metadata +10 -43
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap +0 -18
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/__tests__/__snapshots__/EmptyState.test.js.snap +0 -25
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/__tests__/__snapshots__/ErrorState.test.js.snap +0 -20
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/__snapshots__/ListItem.test.js.snap +0 -47
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/__snapshots__/ListItemStatus.test.js.snap +0 -59
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js +0 -34
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js +0 -14
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js +0 -25
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountList.test.js.snap +0 -49
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListActions.test.js.snap +0 -86
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListReducer.test.js.snap +0 -75
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListSelectors.test.js.snap +0 -46
- data/webpack/ForemanInventoryUpload/Components/FileDownload/__tests__/__snapshots__/FileDownload.test.js.snap +0 -26
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterActions.test.js +0 -14
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js +0 -28
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js +0 -21
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilter.test.js.snap +0 -21
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterActions.test.js.snap +0 -17
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap +0 -19
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterSelectors.test.js.snap +0 -9
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap +0 -43
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/__tests__/AdvancedSettingActions.test.js +0 -9
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/__tests__/__snapshots__/AdvancedSettingActions.test.js.snap +0 -18
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettingsActions.test.js +0 -14
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettingsActions.test.js.snap +0 -26
- data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageTitle.test.js.snap +0 -68
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorActions.test.js +0 -9
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/__snapshots__/CloudConnectorActions.test.js.snap +0 -11
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/__snapshots__/CloudConnectorButton.test.js.snap +0 -59
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/__snapshots__/SettingsWarning.test.js.snap +0 -32
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap +0 -15
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap +0 -3
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/integrations.test.js.snap +0 -58
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/__snapshots__/ScheduledRun.test.js.snap +0 -23
- data/webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/__snapshots__/StatusChart.test.js.snap +0 -74
- data/webpack/ForemanInventoryUpload/Components/TabContainer/__tests__/__snapshots__/TabContainer.test.js.snap +0 -18
- data/webpack/ForemanInventoryUpload/Components/TabFooter/__tests__/__snapshots__/TabFooter.test.js.snap +0 -12
- data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/__snapshots__/InventoryAutoUpload.test.js.snap +0 -96
- data/webpack/ForemanInventoryUpload/__tests__/ForemanInventoryUpload.test.js +0 -10
- data/webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap +0 -5
- data/webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryUpload.test.js.snap +0 -14
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_rh_cloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 13.2.
|
|
4
|
+
version: 13.2.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Foreman Red Hat Cloud team
|
|
@@ -30,6 +30,9 @@ dependencies:
|
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 10.0.0
|
|
33
|
+
- - "<"
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: 13.0.0
|
|
33
36
|
type: :runtime
|
|
34
37
|
prerelease: false
|
|
35
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -37,6 +40,9 @@ dependencies:
|
|
|
37
40
|
- - ">="
|
|
38
41
|
- !ruby/object:Gem::Version
|
|
39
42
|
version: 10.0.0
|
|
43
|
+
- - "<"
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: 13.0.0
|
|
40
46
|
- !ruby/object:Gem::Dependency
|
|
41
47
|
name: katello
|
|
42
48
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -265,6 +271,7 @@ files:
|
|
|
265
271
|
- test/jobs/host_inventory_report_job_test.rb
|
|
266
272
|
- test/jobs/insights_client_status_aging_test.rb
|
|
267
273
|
- test/jobs/insights_full_sync_test.rb
|
|
274
|
+
- test/jobs/insights_generate_notifications_test.rb
|
|
268
275
|
- test/jobs/insights_resolutions_sync_test.rb
|
|
269
276
|
- test/jobs/insights_rules_sync_test.rb
|
|
270
277
|
- test/jobs/inventory_full_sync_test.rb
|
|
@@ -321,45 +328,33 @@ files:
|
|
|
321
328
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js
|
|
322
329
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/EmptyResults.js
|
|
323
330
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js
|
|
324
|
-
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap
|
|
325
331
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/emptyResults.scss
|
|
326
332
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/index.js
|
|
327
333
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.fixtures.js
|
|
328
334
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.js
|
|
329
335
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyStateHelper.js
|
|
330
336
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/__tests__/EmptyState.test.js
|
|
331
|
-
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/__tests__/__snapshots__/EmptyState.test.js.snap
|
|
332
337
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/emptyState.scss
|
|
333
338
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/index.js
|
|
334
339
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.fixtures.js
|
|
335
340
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
|
|
336
341
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorStateHelper.js
|
|
337
342
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/__tests__/ErrorState.test.js
|
|
338
|
-
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/__tests__/__snapshots__/ErrorState.test.js.snap
|
|
339
343
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/errorState.scss
|
|
340
344
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/index.js
|
|
341
345
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItem.fixtures.js
|
|
342
346
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItem.js
|
|
343
347
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItemHelper.js
|
|
344
348
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/ListItem.test.js
|
|
345
|
-
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/__snapshots__/ListItem.test.js.snap
|
|
346
349
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/index.js
|
|
347
350
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/ListItemStatus.fixtures.js
|
|
348
351
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/ListItemStatus.js
|
|
349
352
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/ListItemStatusHelper.js
|
|
350
353
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/ListItemStatus.test.js
|
|
351
|
-
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/__snapshots__/ListItemStatus.test.js.snap
|
|
352
354
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/index.js
|
|
353
355
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js
|
|
354
|
-
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js
|
|
355
356
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
|
|
356
|
-
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js
|
|
357
357
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js
|
|
358
|
-
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
|
|
359
|
-
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountList.test.js.snap
|
|
360
|
-
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListActions.test.js.snap
|
|
361
|
-
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListReducer.test.js.snap
|
|
362
|
-
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListSelectors.test.js.snap
|
|
363
358
|
- webpack/ForemanInventoryUpload/Components/AccountList/accountList.scss
|
|
364
359
|
- webpack/ForemanInventoryUpload/Components/AccountList/index.js
|
|
365
360
|
- webpack/ForemanInventoryUpload/Components/Dashboard/Dashboard.fixtures.js
|
|
@@ -373,7 +368,6 @@ files:
|
|
|
373
368
|
- webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
|
|
374
369
|
- webpack/ForemanInventoryUpload/Components/FileDownload/FileDownloadHelper.js
|
|
375
370
|
- webpack/ForemanInventoryUpload/Components/FileDownload/__tests__/FileDownload.test.js
|
|
376
|
-
- webpack/ForemanInventoryUpload/Components/FileDownload/__tests__/__snapshots__/FileDownload.test.js.snap
|
|
377
371
|
- webpack/ForemanInventoryUpload/Components/FileDownload/fileDownload.scss
|
|
378
372
|
- webpack/ForemanInventoryUpload/Components/FileDownload/index.js
|
|
379
373
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
|
|
@@ -385,21 +379,11 @@ files:
|
|
|
385
379
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterReducer.js
|
|
386
380
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterSelectors.js
|
|
387
381
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilter.test.js
|
|
388
|
-
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterActions.test.js
|
|
389
|
-
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
|
|
390
|
-
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js
|
|
391
|
-
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilter.test.js.snap
|
|
392
|
-
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterActions.test.js.snap
|
|
393
|
-
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap
|
|
394
|
-
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterSelectors.test.js.snap
|
|
395
|
-
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap
|
|
396
382
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js
|
|
397
383
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js
|
|
398
384
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss
|
|
399
385
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/AdvancedSettingActions.js
|
|
400
386
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/AdvancedSettingsConstants.js
|
|
401
|
-
- webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/__tests__/AdvancedSettingActions.test.js
|
|
402
|
-
- webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/__tests__/__snapshots__/AdvancedSettingActions.test.js.snap
|
|
403
387
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/index.js
|
|
404
388
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js
|
|
405
389
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.scss
|
|
@@ -407,8 +391,6 @@ files:
|
|
|
407
391
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsConstants.js
|
|
408
392
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
|
|
409
393
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/MinimalInventoryDropdown.js
|
|
410
|
-
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettingsActions.test.js
|
|
411
|
-
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettingsActions.test.js.snap
|
|
412
394
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/index.js
|
|
413
395
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js
|
|
414
396
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js
|
|
@@ -421,15 +403,11 @@ files:
|
|
|
421
403
|
- webpack/ForemanInventoryUpload/Components/PageHeader/PageTitle.js
|
|
422
404
|
- webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageHeader.test.js
|
|
423
405
|
- webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageTitle.test.js
|
|
424
|
-
- webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageTitle.test.js.snap
|
|
425
406
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorActions.js
|
|
426
407
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorButton.js
|
|
427
408
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorConstants.js
|
|
428
409
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorSelectors.js
|
|
429
|
-
- webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorActions.test.js
|
|
430
410
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
|
|
431
|
-
- webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/__snapshots__/CloudConnectorActions.test.js.snap
|
|
432
|
-
- webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/__snapshots__/CloudConnectorButton.test.js.snap
|
|
433
411
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
|
|
434
412
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudPingModal/index.js
|
|
435
413
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js
|
|
@@ -437,7 +415,6 @@ files:
|
|
|
437
415
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/index.js
|
|
438
416
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/SettingsWarning.js
|
|
439
417
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/SettingsWarning.test.js
|
|
440
|
-
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/__snapshots__/SettingsWarning.test.js.snap
|
|
441
418
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
|
|
442
419
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js
|
|
443
420
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js
|
|
@@ -446,9 +423,6 @@ files:
|
|
|
446
423
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js
|
|
447
424
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonFixtures.js
|
|
448
425
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
|
|
449
|
-
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap
|
|
450
|
-
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap
|
|
451
|
-
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/integrations.test.js.snap
|
|
452
426
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/integrations.test.js
|
|
453
427
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
|
|
454
428
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/__tests__/Toast.test.js
|
|
@@ -462,28 +436,24 @@ files:
|
|
|
462
436
|
- webpack/ForemanInventoryUpload/Components/ScheduledRun/ScheduledRun.js
|
|
463
437
|
- webpack/ForemanInventoryUpload/Components/ScheduledRun/ScheduledRunHelper.js
|
|
464
438
|
- webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/ScheduledRun.test.js
|
|
465
|
-
- webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/__snapshots__/ScheduledRun.test.js.snap
|
|
466
439
|
- webpack/ForemanInventoryUpload/Components/ScheduledRun/index.js
|
|
467
440
|
- webpack/ForemanInventoryUpload/Components/ScheduledRun/scheduledRun.scss
|
|
468
441
|
- webpack/ForemanInventoryUpload/Components/StatusChart/StatusChart.fixtures.js
|
|
469
442
|
- webpack/ForemanInventoryUpload/Components/StatusChart/StatusChart.js
|
|
470
443
|
- webpack/ForemanInventoryUpload/Components/StatusChart/StatusChartHelper.js
|
|
471
444
|
- webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/StatusChart.test.js
|
|
472
|
-
- webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/__snapshots__/StatusChart.test.js.snap
|
|
473
445
|
- webpack/ForemanInventoryUpload/Components/StatusChart/index.js
|
|
474
446
|
- webpack/ForemanInventoryUpload/Components/StatusChart/statusChart.scss
|
|
475
447
|
- webpack/ForemanInventoryUpload/Components/TabContainer/TabContainer.fixtures.js
|
|
476
448
|
- webpack/ForemanInventoryUpload/Components/TabContainer/TabContainer.js
|
|
477
449
|
- webpack/ForemanInventoryUpload/Components/TabContainer/TabContainerHelper.js
|
|
478
450
|
- webpack/ForemanInventoryUpload/Components/TabContainer/__tests__/TabContainer.test.js
|
|
479
|
-
- webpack/ForemanInventoryUpload/Components/TabContainer/__tests__/__snapshots__/TabContainer.test.js.snap
|
|
480
451
|
- webpack/ForemanInventoryUpload/Components/TabContainer/index.js
|
|
481
452
|
- webpack/ForemanInventoryUpload/Components/TabContainer/tabContainer.scss
|
|
482
453
|
- webpack/ForemanInventoryUpload/Components/TabFooter/TabFooter.fixtures.js
|
|
483
454
|
- webpack/ForemanInventoryUpload/Components/TabFooter/TabFooter.js
|
|
484
455
|
- webpack/ForemanInventoryUpload/Components/TabFooter/TabFooterHelper.js
|
|
485
456
|
- webpack/ForemanInventoryUpload/Components/TabFooter/__tests__/TabFooter.test.js
|
|
486
|
-
- webpack/ForemanInventoryUpload/Components/TabFooter/__tests__/__snapshots__/TabFooter.test.js.snap
|
|
487
457
|
- webpack/ForemanInventoryUpload/Components/TabFooter/index.js
|
|
488
458
|
- webpack/ForemanInventoryUpload/Components/TabFooter/tabFooter.scss
|
|
489
459
|
- webpack/ForemanInventoryUpload/Components/TabHeader/TabHeader.fixtures.js
|
|
@@ -504,12 +474,8 @@ files:
|
|
|
504
474
|
- webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js
|
|
505
475
|
- webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/InventoryAutoUpload.js
|
|
506
476
|
- webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/InventoryAutoUpload.test.js
|
|
507
|
-
- webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/__snapshots__/InventoryAutoUpload.test.js.snap
|
|
508
477
|
- webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
|
|
509
478
|
- webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js
|
|
510
|
-
- webpack/ForemanInventoryUpload/__tests__/ForemanInventoryUpload.test.js
|
|
511
|
-
- webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap
|
|
512
|
-
- webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryUpload.test.js.snap
|
|
513
479
|
- webpack/ForemanInventoryUpload/index.js
|
|
514
480
|
- webpack/ForemanRhCloudFills.js
|
|
515
481
|
- webpack/ForemanRhCloudHelpers.js
|
|
@@ -673,7 +639,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
673
639
|
- !ruby/object:Gem::Version
|
|
674
640
|
version: '0'
|
|
675
641
|
requirements: []
|
|
676
|
-
rubygems_version: 4.0.
|
|
642
|
+
rubygems_version: 4.0.16
|
|
677
643
|
specification_version: 4
|
|
678
644
|
summary: Summary of ForemanRhCloud.
|
|
679
645
|
test_files:
|
|
@@ -697,6 +663,7 @@ test_files:
|
|
|
697
663
|
- test/jobs/host_inventory_report_job_test.rb
|
|
698
664
|
- test/jobs/insights_client_status_aging_test.rb
|
|
699
665
|
- test/jobs/insights_full_sync_test.rb
|
|
666
|
+
- test/jobs/insights_generate_notifications_test.rb
|
|
700
667
|
- test/jobs/insights_resolutions_sync_test.rb
|
|
701
668
|
- test/jobs/insights_rules_sync_test.rb
|
|
702
669
|
- test/jobs/inventory_full_sync_test.rb
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`EmptyResults rendering render without Props 1`] = `
|
|
4
|
-
<EmptyState
|
|
5
|
-
className=""
|
|
6
|
-
>
|
|
7
|
-
<EmptyStateTitle
|
|
8
|
-
className=""
|
|
9
|
-
>
|
|
10
|
-
<Icon
|
|
11
|
-
className="no_results_icon"
|
|
12
|
-
name="meh-o"
|
|
13
|
-
type="fa"
|
|
14
|
-
/>
|
|
15
|
-
Oops! Couldn't find organization that matches your query
|
|
16
|
-
</EmptyStateTitle>
|
|
17
|
-
</EmptyState>
|
|
18
|
-
`;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`EmptyState rendering render without Props 1`] = `
|
|
4
|
-
<EmptyState
|
|
5
|
-
className=""
|
|
6
|
-
>
|
|
7
|
-
<Spinner
|
|
8
|
-
className=""
|
|
9
|
-
inline={true}
|
|
10
|
-
inverse={false}
|
|
11
|
-
loading={true}
|
|
12
|
-
size="lg"
|
|
13
|
-
/>
|
|
14
|
-
<EmptyStateTitle
|
|
15
|
-
className=""
|
|
16
|
-
>
|
|
17
|
-
Fetching data about your accounts
|
|
18
|
-
</EmptyStateTitle>
|
|
19
|
-
<EmptyStateInfo
|
|
20
|
-
className=""
|
|
21
|
-
>
|
|
22
|
-
Loading...
|
|
23
|
-
</EmptyStateInfo>
|
|
24
|
-
</EmptyState>
|
|
25
|
-
`;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`ErrorState rendering render without Props 1`] = `
|
|
4
|
-
<div
|
|
5
|
-
className="error_state"
|
|
6
|
-
>
|
|
7
|
-
<Icon
|
|
8
|
-
className="error_icon"
|
|
9
|
-
name="times"
|
|
10
|
-
size="2x"
|
|
11
|
-
type="fa"
|
|
12
|
-
/>
|
|
13
|
-
<p>
|
|
14
|
-
Encountered an error while trying to access the server:
|
|
15
|
-
</p>
|
|
16
|
-
<p
|
|
17
|
-
className="error_description"
|
|
18
|
-
/>
|
|
19
|
-
</div>
|
|
20
|
-
`;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`ListItem rendering render with Props 1`] = `
|
|
4
|
-
<AccordionItem>
|
|
5
|
-
<AccordionToggle
|
|
6
|
-
isExpanded={false}
|
|
7
|
-
onClick={[Function]}
|
|
8
|
-
>
|
|
9
|
-
<span>
|
|
10
|
-
<Label
|
|
11
|
-
className="account-icon"
|
|
12
|
-
color="blue"
|
|
13
|
-
icon={<UserIcon />}
|
|
14
|
-
variant="outline"
|
|
15
|
-
/>
|
|
16
|
-
test
|
|
17
|
-
</span>
|
|
18
|
-
<ListItemStatus
|
|
19
|
-
account={
|
|
20
|
-
Object {
|
|
21
|
-
"generated_status": "unknown",
|
|
22
|
-
"id": 1,
|
|
23
|
-
"report_file_paths": Array [],
|
|
24
|
-
"uploaded_status": "unknown",
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
key="test_status"
|
|
28
|
-
/>
|
|
29
|
-
</AccordionToggle>
|
|
30
|
-
<AccordionContent
|
|
31
|
-
isHidden={true}
|
|
32
|
-
>
|
|
33
|
-
<Dashboard
|
|
34
|
-
account={
|
|
35
|
-
Object {
|
|
36
|
-
"generated_status": "unknown",
|
|
37
|
-
"id": 1,
|
|
38
|
-
"report_file_paths": Array [],
|
|
39
|
-
"uploaded_status": "unknown",
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
accountID={1}
|
|
43
|
-
onTaskStart={null}
|
|
44
|
-
/>
|
|
45
|
-
</AccordionContent>
|
|
46
|
-
</AccordionItem>
|
|
47
|
-
`;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`ListItemStatus rendering render with Props 1`] = `
|
|
4
|
-
<Grid
|
|
5
|
-
className="status"
|
|
6
|
-
hasGutter={true}
|
|
7
|
-
>
|
|
8
|
-
<GridItem
|
|
9
|
-
className="item"
|
|
10
|
-
span={6}
|
|
11
|
-
>
|
|
12
|
-
<p>
|
|
13
|
-
Generated
|
|
14
|
-
</p>
|
|
15
|
-
<CheckIcon />
|
|
16
|
-
</GridItem>
|
|
17
|
-
<GridItem
|
|
18
|
-
className="item"
|
|
19
|
-
span={6}
|
|
20
|
-
>
|
|
21
|
-
<p>
|
|
22
|
-
Uploaded
|
|
23
|
-
</p>
|
|
24
|
-
<Spinner
|
|
25
|
-
size="sm"
|
|
26
|
-
/>
|
|
27
|
-
</GridItem>
|
|
28
|
-
</Grid>
|
|
29
|
-
`;
|
|
30
|
-
|
|
31
|
-
exports[`ListItemStatus rendering render without Props 1`] = `
|
|
32
|
-
<Grid
|
|
33
|
-
className="status"
|
|
34
|
-
hasGutter={true}
|
|
35
|
-
>
|
|
36
|
-
<GridItem
|
|
37
|
-
className="item"
|
|
38
|
-
span={6}
|
|
39
|
-
>
|
|
40
|
-
<p>
|
|
41
|
-
Generated
|
|
42
|
-
</p>
|
|
43
|
-
<span>
|
|
44
|
-
--
|
|
45
|
-
</span>
|
|
46
|
-
</GridItem>
|
|
47
|
-
<GridItem
|
|
48
|
-
className="item"
|
|
49
|
-
span={6}
|
|
50
|
-
>
|
|
51
|
-
<p>
|
|
52
|
-
Uploaded
|
|
53
|
-
</p>
|
|
54
|
-
<span>
|
|
55
|
-
--
|
|
56
|
-
</span>
|
|
57
|
-
</GridItem>
|
|
58
|
-
</Grid>
|
|
59
|
-
`;
|
data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { testActionSnapshotWithFixtures } from '@theforeman/test';
|
|
2
|
-
import { API } from 'foremanReact/redux/API';
|
|
3
|
-
import {
|
|
4
|
-
fetchAccountsStatus,
|
|
5
|
-
startAccountStatusPolling,
|
|
6
|
-
stopAccountStatusPolling,
|
|
7
|
-
restartProcess,
|
|
8
|
-
} from '../AccountListActions';
|
|
9
|
-
import {
|
|
10
|
-
pollingProcessID,
|
|
11
|
-
fetchAccountsStatusResponse,
|
|
12
|
-
} from '../AccountList.fixtures';
|
|
13
|
-
import { accountID, activeTab } from '../../Dashboard/Dashboard.fixtures';
|
|
14
|
-
|
|
15
|
-
jest.mock('foremanReact/redux/API');
|
|
16
|
-
API.get.mockImplementation(async () => fetchAccountsStatusResponse);
|
|
17
|
-
|
|
18
|
-
const fixtures = {
|
|
19
|
-
'should fetchAccountsStatus': () => fetchAccountsStatus(),
|
|
20
|
-
'should startAccountStatusPolling': () =>
|
|
21
|
-
startAccountStatusPolling(pollingProcessID),
|
|
22
|
-
'should stopAccountStatusPolling': () =>
|
|
23
|
-
stopAccountStatusPolling(pollingProcessID),
|
|
24
|
-
'should restartProcess': () => restartProcess(accountID, activeTab),
|
|
25
|
-
'should invoke toast notification upon failure': () => {
|
|
26
|
-
API.post.mockImplementationOnce(() =>
|
|
27
|
-
Promise.reject(new Error('test error'))
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
return restartProcess(accountID, activeTab);
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
describe('AccountList actions', () => testActionSnapshotWithFixtures(fixtures));
|
data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IntegrationTestHelper } from '@theforeman/test';
|
|
3
|
-
|
|
4
|
-
import AccountList from '../index';
|
|
5
|
-
import reducers from '../../../../ForemanRhCloudReducers';
|
|
6
|
-
|
|
7
|
-
describe('AccountList integration test', () => {
|
|
8
|
-
it('should flow', async () => {
|
|
9
|
-
const integrationTestHelper = new IntegrationTestHelper(reducers);
|
|
10
|
-
const component = integrationTestHelper.mount(<AccountList />);
|
|
11
|
-
component.update();
|
|
12
|
-
/** Create a Flow test */
|
|
13
|
-
});
|
|
14
|
-
});
|
data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { testSelectorsSnapshotWithFixtures } from '@theforeman/test';
|
|
2
|
-
import {
|
|
3
|
-
selectAccountsList,
|
|
4
|
-
selectAccounts,
|
|
5
|
-
selectPollingProcessID,
|
|
6
|
-
} from '../AccountListSelectors';
|
|
7
|
-
import { pollingProcessID, accounts } from '../AccountList.fixtures';
|
|
8
|
-
import { rhCloudStateWrapper } from '../../../../ForemanRhCloudTestHelpers';
|
|
9
|
-
|
|
10
|
-
const state = rhCloudStateWrapper({
|
|
11
|
-
accountsList: {
|
|
12
|
-
accounts,
|
|
13
|
-
pollingProcessID,
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
const fixtures = {
|
|
18
|
-
'should return AccountsList': () => selectAccountsList(state),
|
|
19
|
-
'should return AccountList accounts': () => selectAccounts(state),
|
|
20
|
-
'should return AccountList pollingProcessID': () =>
|
|
21
|
-
selectPollingProcessID(state),
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
describe('AccountList selectors', () =>
|
|
25
|
-
testSelectorsSnapshotWithFixtures(fixtures));
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`AccountList rendering render with props 1`] = `
|
|
4
|
-
<Accordion
|
|
5
|
-
className="account-list"
|
|
6
|
-
>
|
|
7
|
-
<ListItem
|
|
8
|
-
account={
|
|
9
|
-
Object {
|
|
10
|
-
"generated_status": "running",
|
|
11
|
-
"id": 1,
|
|
12
|
-
"uploaded_status": "running",
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
defaultExpanded={true}
|
|
16
|
-
key="Account1"
|
|
17
|
-
label="Account1"
|
|
18
|
-
onTaskStart={[Function]}
|
|
19
|
-
/>
|
|
20
|
-
<ListItem
|
|
21
|
-
account={
|
|
22
|
-
Object {
|
|
23
|
-
"generated_status": "failure",
|
|
24
|
-
"id": 2,
|
|
25
|
-
"uploaded_status": "unknown",
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
defaultExpanded={false}
|
|
29
|
-
key="Account2"
|
|
30
|
-
label="Account2"
|
|
31
|
-
onTaskStart={[Function]}
|
|
32
|
-
/>
|
|
33
|
-
<ListItem
|
|
34
|
-
account={
|
|
35
|
-
Object {
|
|
36
|
-
"generated_status": "running",
|
|
37
|
-
"id": 3,
|
|
38
|
-
"uploaded_status": "success",
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
defaultExpanded={false}
|
|
42
|
-
key="Account3"
|
|
43
|
-
label="Account3"
|
|
44
|
-
onTaskStart={[Function]}
|
|
45
|
-
/>
|
|
46
|
-
</Accordion>
|
|
47
|
-
`;
|
|
48
|
-
|
|
49
|
-
exports[`AccountList rendering show empty results 1`] = `<inventoryEmptyResults />`;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`AccountList actions should fetchAccountsStatus 1`] = `
|
|
4
|
-
Array [
|
|
5
|
-
Array [
|
|
6
|
-
Object {
|
|
7
|
-
"payload": Object {
|
|
8
|
-
"CloudConnectorStatus": Object {
|
|
9
|
-
"id": 7,
|
|
10
|
-
"task": Object {
|
|
11
|
-
"id": 11,
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
"accounts": Object {
|
|
15
|
-
"Account1": Object {
|
|
16
|
-
"generated_status": "running",
|
|
17
|
-
"id": 1,
|
|
18
|
-
"uploaded_status": "running",
|
|
19
|
-
},
|
|
20
|
-
"Account2": Object {
|
|
21
|
-
"generated_status": "failure",
|
|
22
|
-
"id": 2,
|
|
23
|
-
"uploaded_status": "unknown",
|
|
24
|
-
},
|
|
25
|
-
"Account3": Object {
|
|
26
|
-
"generated_status": "running",
|
|
27
|
-
"id": 3,
|
|
28
|
-
"uploaded_status": "success",
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
"type": "INVENTORY_ACCOUNT_STATUS_POLLING",
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
]
|
|
36
|
-
`;
|
|
37
|
-
|
|
38
|
-
exports[`AccountList actions should invoke toast notification upon failure 1`] = `
|
|
39
|
-
Array [
|
|
40
|
-
Array [
|
|
41
|
-
Object {
|
|
42
|
-
"payload": Object {
|
|
43
|
-
"message": Object {
|
|
44
|
-
"message": "test error",
|
|
45
|
-
"sticky": true,
|
|
46
|
-
"type": "error",
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
"type": "TOASTS_ADD",
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
]
|
|
53
|
-
`;
|
|
54
|
-
|
|
55
|
-
exports[`AccountList actions should restartProcess 1`] = `
|
|
56
|
-
Array [
|
|
57
|
-
Array [
|
|
58
|
-
Object {
|
|
59
|
-
"payload": Object {
|
|
60
|
-
"accountID": "some-account-ID",
|
|
61
|
-
"processStatusName": "generated_status",
|
|
62
|
-
},
|
|
63
|
-
"type": "INVENTORY_PROCESS_RESTART",
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
]
|
|
67
|
-
`;
|
|
68
|
-
|
|
69
|
-
exports[`AccountList actions should startAccountStatusPolling 1`] = `
|
|
70
|
-
Object {
|
|
71
|
-
"payload": Object {
|
|
72
|
-
"pollingProcessID": 0,
|
|
73
|
-
},
|
|
74
|
-
"type": "INVENTORY_ACCOUNT_STATUS_POLLING_START",
|
|
75
|
-
}
|
|
76
|
-
`;
|
|
77
|
-
|
|
78
|
-
exports[`AccountList actions should stopAccountStatusPolling 1`] = `
|
|
79
|
-
Array [
|
|
80
|
-
Array [
|
|
81
|
-
Object {
|
|
82
|
-
"type": "INVENTORY_ACCOUNT_STATUS_POLLING_STOP",
|
|
83
|
-
},
|
|
84
|
-
],
|
|
85
|
-
]
|
|
86
|
-
`;
|