foreman_rh_cloud 14.1.2 → 14.1.3

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.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/lib/foreman_inventory_upload/generators/fact_helpers.rb +26 -4
  3. data/lib/foreman_inventory_upload.rb +8 -1
  4. data/lib/foreman_rh_cloud/version.rb +1 -1
  5. data/lib/foreman_rh_cloud.rb +36 -9
  6. data/lib/insights_cloud/async/insights_generate_notifications.rb +10 -1
  7. data/lib/inventory_sync/async/inventory_self_host_sync.rb +12 -2
  8. data/package.json +1 -1
  9. data/test/jobs/insights_generate_notifications_test.rb +26 -0
  10. data/test/jobs/inventory_self_host_sync_test.rb +9 -0
  11. data/test/unit/foreman_rh_cloud_self_host_test.rb +50 -2
  12. data/test/unit/metadata_generator_test.rb +24 -1
  13. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js +10 -9
  14. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/__tests__/EmptyState.test.js +13 -9
  15. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/__tests__/ErrorState.test.js +20 -9
  16. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/ListItem.test.js +31 -8
  17. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/ListItemStatus.test.js +26 -10
  18. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js +33 -9
  19. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js +55 -35
  20. data/webpack/ForemanInventoryUpload/Components/FileDownload/__tests__/FileDownload.test.js +13 -9
  21. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilter.test.js +12 -15
  22. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js +32 -12
  23. data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageTitle.test.js +14 -7
  24. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js +47 -18
  25. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/SettingsWarning.test.js +58 -15
  26. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js +23 -9
  27. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js +19 -17
  28. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/integrations.test.js +25 -37
  29. data/webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/ScheduledRun.test.js +28 -8
  30. data/webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/StatusChart.test.js +25 -8
  31. data/webpack/ForemanInventoryUpload/Components/TabContainer/__tests__/TabContainer.test.js +11 -9
  32. data/webpack/ForemanInventoryUpload/Components/TabFooter/__tests__/TabFooter.test.js +11 -9
  33. data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/InventoryAutoUpload.test.js +33 -12
  34. data/webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js +21 -8
  35. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js +61 -47
  36. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTable.test.js +48 -4
  37. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTableActions.test.js +126 -35
  38. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTableSelectors.test.js +90 -24
  39. data/webpack/InsightsCloudSync/InsightsCloudSync.test.js +79 -21
  40. data/webpack/InsightsCloudSync/__tests__/InsightsCloudSyncActions.test.js +31 -6
  41. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTab.test.js +42 -9
  42. data/webpack/__tests__/ForemanRhCloudHelpers.test.js +91 -53
  43. data/webpack/common/Switcher/__tests__/HelpLabel.test.js +25 -10
  44. data/webpack/common/Switcher/__tests__/SwitcherPF4.test.js +41 -10
  45. metadata +3 -67
  46. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap +0 -18
  47. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/__tests__/__snapshots__/EmptyState.test.js.snap +0 -25
  48. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/__tests__/__snapshots__/ErrorState.test.js.snap +0 -20
  49. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/__snapshots__/ListItem.test.js.snap +0 -47
  50. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/__snapshots__/ListItemStatus.test.js.snap +0 -59
  51. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js +0 -34
  52. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js +0 -14
  53. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js +0 -25
  54. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountList.test.js.snap +0 -49
  55. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListActions.test.js.snap +0 -86
  56. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListReducer.test.js.snap +0 -75
  57. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListSelectors.test.js.snap +0 -46
  58. data/webpack/ForemanInventoryUpload/Components/FileDownload/__tests__/__snapshots__/FileDownload.test.js.snap +0 -26
  59. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterActions.test.js +0 -14
  60. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js +0 -28
  61. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js +0 -21
  62. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilter.test.js.snap +0 -21
  63. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterActions.test.js.snap +0 -17
  64. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap +0 -19
  65. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterSelectors.test.js.snap +0 -9
  66. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap +0 -43
  67. data/webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/__tests__/AdvancedSettingActions.test.js +0 -9
  68. data/webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/__tests__/__snapshots__/AdvancedSettingActions.test.js.snap +0 -18
  69. data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettingsActions.test.js +0 -14
  70. data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettingsActions.test.js.snap +0 -26
  71. data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageTitle.test.js.snap +0 -68
  72. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorActions.test.js +0 -9
  73. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/__snapshots__/CloudConnectorActions.test.js.snap +0 -11
  74. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/__snapshots__/CloudConnectorButton.test.js.snap +0 -59
  75. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/__snapshots__/SettingsWarning.test.js.snap +0 -32
  76. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap +0 -15
  77. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap +0 -3
  78. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/integrations.test.js.snap +0 -58
  79. data/webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/__snapshots__/ScheduledRun.test.js.snap +0 -23
  80. data/webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/__snapshots__/StatusChart.test.js.snap +0 -74
  81. data/webpack/ForemanInventoryUpload/Components/TabContainer/__tests__/__snapshots__/TabContainer.test.js.snap +0 -18
  82. data/webpack/ForemanInventoryUpload/Components/TabFooter/__tests__/__snapshots__/TabFooter.test.js.snap +0 -12
  83. data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/__snapshots__/InventoryAutoUpload.test.js.snap +0 -96
  84. data/webpack/ForemanInventoryUpload/__tests__/ForemanInventoryUpload.test.js +0 -10
  85. data/webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap +0 -5
  86. data/webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryUpload.test.js.snap +0 -14
  87. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js +0 -33
  88. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js +0 -21
  89. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap +0 -65
  90. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap +0 -19
  91. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsSelectors.test.js.snap +0 -9
  92. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableActions.test.js.snap +0 -131
  93. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableSelectors.test.js.snap +0 -87
  94. data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +0 -10
  95. data/webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js +0 -9
  96. data/webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncActions.test.js.snap +0 -15
  97. data/webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap +0 -3
  98. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js +0 -19
  99. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js +0 -26
  100. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabSelectors.test.js +0 -13
  101. data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTab.test.js.snap +0 -34
  102. data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabActions.test.js.snap +0 -56
  103. data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabReducer.test.js.snap +0 -32
  104. data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabSelectors.test.js.snap +0 -18
  105. data/webpack/__tests__/ForemanRhCloudSelectors.test.js +0 -22
  106. data/webpack/__tests__/ForemanRhCloudTestHelpers.test.js +0 -20
  107. data/webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap +0 -19
  108. data/webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap +0 -25
  109. data/webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap +0 -39
  110. data/webpack/common/Switcher/__tests__/__snapshots__/HelpLabel.test.js.snap +0 -16
  111. data/webpack/common/Switcher/__tests__/__snapshots__/SwitcherPF4.test.js.snap +0 -24
@@ -1,19 +0,0 @@
1
- import { testActionSnapshotWithFixtures } from '@theforeman/test';
2
- import { API } from 'foremanReact/redux/API';
3
- import { fetchHits } from '../InsightsTabActions';
4
- import { hostID, hits } from './InsightsTab.fixtures';
5
-
6
- jest.mock('foremanReact/redux/API');
7
- API.get.mockImplementation(async () => ({ data: { hits } }));
8
-
9
- const fixtures = {
10
- 'should fetchHits': () => fetchHits(hostID),
11
- 'should fetchHits with error': () => {
12
- API.get.mockImplementationOnce(() =>
13
- Promise.reject(new Error('Network error!'))
14
- );
15
- return fetchHits(hostID);
16
- },
17
- };
18
-
19
- describe('InsightsTab actions', () => testActionSnapshotWithFixtures(fixtures));
@@ -1,26 +0,0 @@
1
- import { testReducerSnapshotWithFixtures } from '@theforeman/test';
2
- import reducer from '../InsightsTabReducer';
3
- import { hits } from './InsightsTab.fixtures';
4
- import {
5
- INSIGHTS_HITS_REQUEST,
6
- INSIGHTS_HITS_SUCCESS,
7
- } from '../InsightsTabConstants';
8
-
9
- const fixtures = {
10
- 'should return the initial state': {},
11
- 'should handle INSIGHTS_HITS_REQUEST': {
12
- action: {
13
- type: INSIGHTS_HITS_REQUEST,
14
- payload: {},
15
- },
16
- },
17
- 'should handle INSIGHTS_HITS_SUCCESS': {
18
- action: {
19
- type: INSIGHTS_HITS_SUCCESS,
20
- payload: { hits },
21
- },
22
- },
23
- };
24
-
25
- describe('AccountList reducer', () =>
26
- testReducerSnapshotWithFixtures(reducer, fixtures));
@@ -1,13 +0,0 @@
1
- import { testSelectorsSnapshotWithFixtures } from '@theforeman/test';
2
- import { hostInsightsStateWrapper } from '../../ForemanRhCloudTestHelpers';
3
- import { hits } from './InsightsTab.fixtures';
4
- import { selectHits } from '../InsightsTabSelectors';
5
-
6
- const state = hostInsightsStateWrapper({ hits });
7
-
8
- const fixtures = {
9
- 'should return hits': () => selectHits(state),
10
- };
11
-
12
- describe('InsightsTab selectors', () =>
13
- testSelectorsSnapshotWithFixtures(fixtures));
@@ -1,34 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`InsightsTab rendering render with props 1`] = `
4
- <div
5
- id="host_details_insights_tab"
6
- >
7
- <Row
8
- bsClass="row"
9
- componentClass="div"
10
- >
11
- <Col
12
- bsClass="col"
13
- componentClass="div"
14
- xs={12}
15
- >
16
- <h2>
17
- Recommendations
18
- </h2>
19
- <ListView
20
- className=""
21
- id="hits_list"
22
- >
23
- <ListItem
24
- key="0"
25
- resultsUrl="https://cloud.redhat.com/insights/advisor/recommendations/ansible_deprecated_repo%7CANSIBLE_DEPRECATED_REPO/4739b323-a343-4e89-b71b-81991b8dc656/"
26
- solutionUrl="https://access.redhat.com/node/3359651"
27
- title="New Ansible Engine packages are inaccessible when dedicated Ansible repo is not enabled"
28
- totalRisk={2}
29
- />
30
- </ListView>
31
- </Col>
32
- </Row>
33
- </div>
34
- `;
@@ -1,56 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`InsightsTab actions should fetchHits 1`] = `
4
- Array [
5
- Array [
6
- Object {
7
- "payload": Object {},
8
- "type": "INSIGHTS_HITS_REQUEST",
9
- },
10
- ],
11
- Array [
12
- Object {
13
- "payload": Object {
14
- "hits": Array [
15
- Object {
16
- "hostname": "my-host.example.com",
17
- "last_seen": "2020-08-19T04:43:09.068706Z",
18
- "likelihood": 2,
19
- "publish_date": "2018-04-16T10:03:16Z",
20
- "results_url": "https://cloud.redhat.com/insights/advisor/recommendations/ansible_deprecated_repo%7CANSIBLE_DEPRECATED_REPO/4739b323-a343-4e89-b71b-81991b8dc656/",
21
- "rhel_version": "7.8",
22
- "solution_url": "https://access.redhat.com/node/3359651",
23
- "title": "New Ansible Engine packages are inaccessible when dedicated Ansible repo is not enabled",
24
- "total_risk": 2,
25
- "uuid": "4739b323-a343-4e89-b71b-81991b8dc656",
26
- },
27
- ],
28
- },
29
- "type": "INSIGHTS_HITS_SUCCESS",
30
- },
31
- ],
32
- ]
33
- `;
34
-
35
- exports[`InsightsTab actions should fetchHits with error 1`] = `
36
- Array [
37
- Array [
38
- Object {
39
- "payload": Object {},
40
- "type": "INSIGHTS_HITS_REQUEST",
41
- },
42
- ],
43
- Array [
44
- Object {
45
- "payload": Object {
46
- "message": Object {
47
- "message": "Network error!",
48
- "sticky": true,
49
- "type": "error",
50
- },
51
- },
52
- "type": "TOASTS_ADD",
53
- },
54
- ],
55
- ]
56
- `;
@@ -1,32 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`AccountList reducer should handle INSIGHTS_HITS_REQUEST 1`] = `
4
- Object {
5
- "hits": Array [],
6
- }
7
- `;
8
-
9
- exports[`AccountList reducer should handle INSIGHTS_HITS_SUCCESS 1`] = `
10
- Object {
11
- "hits": Array [
12
- Object {
13
- "hostname": "my-host.example.com",
14
- "last_seen": "2020-08-19T04:43:09.068706Z",
15
- "likelihood": 2,
16
- "publish_date": "2018-04-16T10:03:16Z",
17
- "results_url": "https://cloud.redhat.com/insights/advisor/recommendations/ansible_deprecated_repo%7CANSIBLE_DEPRECATED_REPO/4739b323-a343-4e89-b71b-81991b8dc656/",
18
- "rhel_version": "7.8",
19
- "solution_url": "https://access.redhat.com/node/3359651",
20
- "title": "New Ansible Engine packages are inaccessible when dedicated Ansible repo is not enabled",
21
- "total_risk": 2,
22
- "uuid": "4739b323-a343-4e89-b71b-81991b8dc656",
23
- },
24
- ],
25
- }
26
- `;
27
-
28
- exports[`AccountList reducer should return the initial state 1`] = `
29
- Object {
30
- "hits": Array [],
31
- }
32
- `;
@@ -1,18 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`InsightsTab selectors should return hits 1`] = `
4
- Array [
5
- Object {
6
- "hostname": "my-host.example.com",
7
- "last_seen": "2020-08-19T04:43:09.068706Z",
8
- "likelihood": 2,
9
- "publish_date": "2018-04-16T10:03:16Z",
10
- "results_url": "https://cloud.redhat.com/insights/advisor/recommendations/ansible_deprecated_repo%7CANSIBLE_DEPRECATED_REPO/4739b323-a343-4e89-b71b-81991b8dc656/",
11
- "rhel_version": "7.8",
12
- "solution_url": "https://access.redhat.com/node/3359651",
13
- "title": "New Ansible Engine packages are inaccessible when dedicated Ansible repo is not enabled",
14
- "total_risk": 2,
15
- "uuid": "4739b323-a343-4e89-b71b-81991b8dc656",
16
- },
17
- ]
18
- `;
@@ -1,22 +0,0 @@
1
- import { testSelectorsSnapshotWithFixtures } from '@theforeman/test';
2
- import { rhCloudStateWrapper } from '../ForemanRhCloudTestHelpers';
3
- import {
4
- selectForemanRhCloud,
5
- selectForemanInventoryUpload,
6
- selectInsightsCloudSync,
7
- } from '../ForemanRhCloudSelectors';
8
-
9
- const state = rhCloudStateWrapper(
10
- { inventoryChild: {} },
11
- { insightsChild: {} }
12
- );
13
-
14
- const fixtures = {
15
- 'should return ForemanRhCloud': () => selectForemanRhCloud(state),
16
- 'should return ForemanInventoryUpload': () =>
17
- selectForemanInventoryUpload(state),
18
- 'should return InsightsCloudSync': () => selectInsightsCloudSync(state),
19
- };
20
-
21
- describe('ForemanRhCloud selectors', () =>
22
- testSelectorsSnapshotWithFixtures(fixtures));
@@ -1,20 +0,0 @@
1
- import { testSelectorsSnapshotWithFixtures } from '@theforeman/test';
2
- import {
3
- rhCloudStateWrapper,
4
- inventoryStateWrapper,
5
- insightsStateWrapper,
6
- } from '../ForemanRhCloudTestHelpers';
7
-
8
- const fixtures = {
9
- 'should return rhCloud wrapper': () =>
10
- rhCloudStateWrapper({ inventoryChild: {} }, { insightsChild: {} }),
11
-
12
- 'should return inventory wrapper': () =>
13
- inventoryStateWrapper({ inventoryChild: {} }),
14
-
15
- 'should return insights wrapper': () =>
16
- insightsStateWrapper({ insightsChild: {} }),
17
- };
18
-
19
- describe('ForemanRhCloud helpers', () =>
20
- testSelectorsSnapshotWithFixtures(fixtures));
@@ -1,19 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`ForemanRhCloud helpers hasNoInsightsFacet returns false when insights_attributes is present 1`] = `false`;
4
-
5
- exports[`ForemanRhCloud helpers hasNoInsightsFacet returns true when insights_attributes is missing 1`] = `true`;
6
-
7
- exports[`ForemanRhCloud helpers hasNoInsightsFacet returns true when response is missing 1`] = `true`;
8
-
9
- exports[`ForemanRhCloud helpers should return foreman Url 1`] = `"MY_TEST_URL_PREFIX.example.com/test_path"`;
10
-
11
- exports[`ForemanRhCloud helpers vulnerabilityDisabled returns false for RHEL host with vulnerability enabled 1`] = `false`;
12
-
13
- exports[`ForemanRhCloud helpers vulnerabilityDisabled returns true for RHEL host with vulnerability disabled 1`] = `true`;
14
-
15
- exports[`ForemanRhCloud helpers vulnerabilityDisabled returns true for missing hostDetails 1`] = `true`;
16
-
17
- exports[`ForemanRhCloud helpers vulnerabilityDisabled returns true for missing vulnerability object 1`] = `true`;
18
-
19
- exports[`ForemanRhCloud helpers vulnerabilityDisabled returns true for non-RHEL host 1`] = `true`;
@@ -1,25 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`ForemanRhCloud selectors should return ForemanInventoryUpload 1`] = `
4
- Object {
5
- "inventoryChild": Object {},
6
- }
7
- `;
8
-
9
- exports[`ForemanRhCloud selectors should return ForemanRhCloud 1`] = `
10
- Object {
11
- "InsightsCloudSync": Object {
12
- "insightsChild": Object {},
13
- },
14
- "hostInsights": Object {},
15
- "inventoryUpload": Object {
16
- "inventoryChild": Object {},
17
- },
18
- }
19
- `;
20
-
21
- exports[`ForemanRhCloud selectors should return InsightsCloudSync 1`] = `
22
- Object {
23
- "insightsChild": Object {},
24
- }
25
- `;
@@ -1,39 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`ForemanRhCloud helpers should return insights wrapper 1`] = `
4
- Object {
5
- "ForemanRhCloud": Object {
6
- "InsightsCloudSync": Object {
7
- "insightsChild": Object {},
8
- },
9
- "hostInsights": Object {},
10
- "inventoryUpload": Object {},
11
- },
12
- }
13
- `;
14
-
15
- exports[`ForemanRhCloud helpers should return inventory wrapper 1`] = `
16
- Object {
17
- "ForemanRhCloud": Object {
18
- "InsightsCloudSync": Object {},
19
- "hostInsights": Object {},
20
- "inventoryUpload": Object {
21
- "inventoryChild": Object {},
22
- },
23
- },
24
- }
25
- `;
26
-
27
- exports[`ForemanRhCloud helpers should return rhCloud wrapper 1`] = `
28
- Object {
29
- "ForemanRhCloud": Object {
30
- "InsightsCloudSync": Object {
31
- "insightsChild": Object {},
32
- },
33
- "hostInsights": Object {},
34
- "inventoryUpload": Object {
35
- "inventoryChild": Object {},
36
- },
37
- },
38
- }
39
- `;
@@ -1,16 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`InsightsCloudSync helpers should return insights cloud Url 1`] = `
4
- <Popover
5
- aria-label="help-text"
6
- bodyContent="some-text"
7
- id="some-id-help"
8
- >
9
- <button
10
- className="pf-v5-c-form__group-label-help some-class"
11
- onClick={[Function]}
12
- >
13
- <HelpIcon />
14
- </button>
15
- </Popover>
16
- `;
@@ -1,24 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`InsightsCloudSync helpers should return insights cloud Url 1`] = `
4
- <Switch
5
- aria-label=""
6
- className="foreman-rh-cloud-switcher"
7
- id="rh-cloud-switcher-some-id"
8
- isChecked={true}
9
- isDisabled={false}
10
- isReversed={false}
11
- label={
12
- <div>
13
- some-label
14
- <HelpLabel
15
- className="switcher-help-label"
16
- id="some-id"
17
- text="some-text"
18
- />
19
- </div>
20
- }
21
- onChange={[MockFunction]}
22
- ouiaId="foreman-rh-cloud-switcher"
23
- />
24
- `;