foreman_rh_cloud 14.1.1 → 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 (122) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/insights_cloud/api/machine_telemetries_controller.rb +4 -8
  3. data/app/controllers/insights_cloud/ui_requests_controller.rb +3 -7
  4. data/app/services/foreman_rh_cloud/url_remediations_retriever.rb +19 -5
  5. data/lib/foreman_inventory_upload/async/destroy_organization_hbi_hosts_job.rb +49 -0
  6. data/lib/foreman_inventory_upload/generators/fact_helpers.rb +26 -4
  7. data/lib/foreman_inventory_upload.rb +12 -1
  8. data/lib/foreman_rh_cloud/engine.rb +1 -0
  9. data/lib/foreman_rh_cloud/organization_destroy_extensions.rb +10 -0
  10. data/lib/foreman_rh_cloud/version.rb +1 -1
  11. data/lib/foreman_rh_cloud.rb +36 -9
  12. data/lib/insights_cloud/async/insights_generate_notifications.rb +10 -1
  13. data/lib/inventory_sync/async/inventory_self_host_sync.rb +12 -2
  14. data/package.json +1 -1
  15. data/test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb +16 -2
  16. data/test/controllers/insights_cloud/ui_requests_controller_test.rb +16 -2
  17. data/test/jobs/destroy_organization_hbi_hosts_job_test.rb +63 -0
  18. data/test/jobs/insights_generate_notifications_test.rb +26 -0
  19. data/test/jobs/inventory_self_host_sync_test.rb +9 -0
  20. data/test/unit/foreman_rh_cloud_self_host_test.rb +50 -2
  21. data/test/unit/metadata_generator_test.rb +24 -1
  22. data/test/unit/organization_destroy_extensions_test.rb +50 -0
  23. data/test/unit/services/foreman_rh_cloud/url_remediations_retriever_test.rb +82 -5
  24. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js +10 -9
  25. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/__tests__/EmptyState.test.js +13 -9
  26. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/__tests__/ErrorState.test.js +20 -9
  27. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/ListItem.test.js +31 -8
  28. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/ListItemStatus.test.js +26 -10
  29. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js +33 -9
  30. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js +55 -35
  31. data/webpack/ForemanInventoryUpload/Components/FileDownload/__tests__/FileDownload.test.js +13 -9
  32. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilter.test.js +12 -15
  33. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js +32 -12
  34. data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageTitle.test.js +14 -7
  35. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js +47 -18
  36. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/SettingsWarning.test.js +58 -15
  37. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js +23 -9
  38. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js +19 -17
  39. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/integrations.test.js +25 -37
  40. data/webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/ScheduledRun.test.js +28 -8
  41. data/webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/StatusChart.test.js +25 -8
  42. data/webpack/ForemanInventoryUpload/Components/TabContainer/__tests__/TabContainer.test.js +11 -9
  43. data/webpack/ForemanInventoryUpload/Components/TabFooter/__tests__/TabFooter.test.js +11 -9
  44. data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/InventoryAutoUpload.test.js +33 -12
  45. data/webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js +21 -8
  46. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js +61 -47
  47. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTable.test.js +48 -4
  48. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTableActions.test.js +126 -35
  49. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTableSelectors.test.js +90 -24
  50. data/webpack/InsightsCloudSync/InsightsCloudSync.test.js +79 -21
  51. data/webpack/InsightsCloudSync/__tests__/InsightsCloudSyncActions.test.js +31 -6
  52. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTab.test.js +42 -9
  53. data/webpack/__tests__/ForemanRhCloudHelpers.test.js +91 -53
  54. data/webpack/common/Switcher/__tests__/HelpLabel.test.js +25 -10
  55. data/webpack/common/Switcher/__tests__/SwitcherPF4.test.js +41 -10
  56. metadata +9 -95
  57. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap +0 -18
  58. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/__tests__/__snapshots__/EmptyState.test.js.snap +0 -25
  59. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/__tests__/__snapshots__/ErrorState.test.js.snap +0 -20
  60. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/__snapshots__/ListItem.test.js.snap +0 -47
  61. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/__snapshots__/ListItemStatus.test.js.snap +0 -59
  62. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js +0 -34
  63. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js +0 -14
  64. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js +0 -25
  65. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountList.test.js.snap +0 -49
  66. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListActions.test.js.snap +0 -86
  67. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListReducer.test.js.snap +0 -75
  68. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListSelectors.test.js.snap +0 -46
  69. data/webpack/ForemanInventoryUpload/Components/FileDownload/__tests__/__snapshots__/FileDownload.test.js.snap +0 -26
  70. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterActions.test.js +0 -14
  71. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js +0 -28
  72. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js +0 -21
  73. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilter.test.js.snap +0 -21
  74. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterActions.test.js.snap +0 -17
  75. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap +0 -19
  76. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterSelectors.test.js.snap +0 -9
  77. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap +0 -43
  78. data/webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/__tests__/AdvancedSettingActions.test.js +0 -9
  79. data/webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/__tests__/__snapshots__/AdvancedSettingActions.test.js.snap +0 -18
  80. data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettingsActions.test.js +0 -14
  81. data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettingsActions.test.js.snap +0 -26
  82. data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageTitle.test.js.snap +0 -68
  83. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorActions.test.js +0 -9
  84. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/__snapshots__/CloudConnectorActions.test.js.snap +0 -11
  85. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/__snapshots__/CloudConnectorButton.test.js.snap +0 -59
  86. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/__snapshots__/SettingsWarning.test.js.snap +0 -32
  87. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap +0 -15
  88. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap +0 -3
  89. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/integrations.test.js.snap +0 -58
  90. data/webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/__snapshots__/ScheduledRun.test.js.snap +0 -23
  91. data/webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/__snapshots__/StatusChart.test.js.snap +0 -74
  92. data/webpack/ForemanInventoryUpload/Components/TabContainer/__tests__/__snapshots__/TabContainer.test.js.snap +0 -18
  93. data/webpack/ForemanInventoryUpload/Components/TabFooter/__tests__/__snapshots__/TabFooter.test.js.snap +0 -12
  94. data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/__snapshots__/InventoryAutoUpload.test.js.snap +0 -96
  95. data/webpack/ForemanInventoryUpload/__tests__/ForemanInventoryUpload.test.js +0 -10
  96. data/webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap +0 -5
  97. data/webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryUpload.test.js.snap +0 -14
  98. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js +0 -33
  99. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js +0 -21
  100. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap +0 -65
  101. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap +0 -19
  102. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsSelectors.test.js.snap +0 -9
  103. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableActions.test.js.snap +0 -131
  104. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableSelectors.test.js.snap +0 -87
  105. data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +0 -10
  106. data/webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js +0 -9
  107. data/webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncActions.test.js.snap +0 -15
  108. data/webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap +0 -3
  109. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js +0 -19
  110. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js +0 -26
  111. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabSelectors.test.js +0 -13
  112. data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTab.test.js.snap +0 -34
  113. data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabActions.test.js.snap +0 -56
  114. data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabReducer.test.js.snap +0 -32
  115. data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabSelectors.test.js.snap +0 -18
  116. data/webpack/__tests__/ForemanRhCloudSelectors.test.js +0 -22
  117. data/webpack/__tests__/ForemanRhCloudTestHelpers.test.js +0 -20
  118. data/webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap +0 -19
  119. data/webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap +0 -25
  120. data/webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap +0 -39
  121. data/webpack/common/Switcher/__tests__/__snapshots__/HelpLabel.test.js.snap +0 -16
  122. data/webpack/common/Switcher/__tests__/__snapshots__/SwitcherPF4.test.js.snap +0 -24
@@ -1,59 +1,97 @@
1
- import { testSelectorsSnapshotWithFixtures } from '@theforeman/test';
2
1
  import {
3
2
  foremanUrl,
4
3
  vulnerabilityDisabled,
5
4
  hasNoInsightsFacet,
6
5
  } from '../ForemanRhCloudHelpers';
7
6
 
8
- global.URL_PREFIX = 'MY_TEST_URL_PREFIX.example.com';
9
-
10
- const fixtures = {
11
- 'should return foreman Url': () => foremanUrl('/test_path'),
12
- 'vulnerabilityDisabled returns false for RHEL host with vulnerability enabled': () =>
13
- vulnerabilityDisabled({
14
- hostDetails: {
15
- operatingsystem_name: 'Red Hat Enterprise Linux',
16
- vulnerability: { enabled: true },
17
- },
18
- }),
19
- 'vulnerabilityDisabled returns true for non-RHEL host': () =>
20
- vulnerabilityDisabled({
21
- hostDetails: {
22
- operatingsystem_name: 'Ubuntu',
23
- vulnerability: { enabled: true },
24
- },
25
- }),
26
- 'vulnerabilityDisabled returns true for RHEL host with vulnerability disabled': () =>
27
- vulnerabilityDisabled({
28
- hostDetails: {
29
- operatingsystem_name: 'Red Hat Enterprise Linux',
30
- vulnerability: { enabled: false },
31
- },
32
- }),
33
- 'vulnerabilityDisabled returns true for missing vulnerability object': () =>
34
- vulnerabilityDisabled({
35
- hostDetails: {
36
- operatingsystem_name: 'Red Hat Enterprise Linux',
37
- },
38
- }),
39
- 'vulnerabilityDisabled returns true for missing hostDetails': () =>
40
- vulnerabilityDisabled({}),
41
- 'hasNoInsightsFacet returns false when insights_attributes is present': () =>
42
- hasNoInsightsFacet({
43
- response: {
44
- insights_attributes: {
45
- uuid: 'test-uuid',
46
- insights_hits_count: 5,
47
- },
48
- },
49
- }),
50
- 'hasNoInsightsFacet returns true when insights_attributes is missing': () =>
51
- hasNoInsightsFacet({
52
- response: {},
53
- }),
54
- 'hasNoInsightsFacet returns true when response is missing': () =>
55
- hasNoInsightsFacet({}),
56
- };
57
-
58
- describe('ForemanRhCloud helpers', () =>
59
- testSelectorsSnapshotWithFixtures(fixtures));
7
+ describe('ForemanRhCloud helpers', () => {
8
+ describe('foremanUrl', () => {
9
+ const originalUrlPrefix = global.URL_PREFIX;
10
+
11
+ beforeAll(() => {
12
+ global.URL_PREFIX = 'MY_TEST_URL_PREFIX.example.com';
13
+ });
14
+
15
+ afterAll(() => {
16
+ global.URL_PREFIX = originalUrlPrefix;
17
+ });
18
+
19
+ it('prepends URL_PREFIX to path', () => {
20
+ expect(foremanUrl('/test_path')).toBe(
21
+ 'MY_TEST_URL_PREFIX.example.com/test_path'
22
+ );
23
+ });
24
+ });
25
+
26
+ describe('vulnerabilityDisabled', () => {
27
+ it('returns false for RHEL host with vulnerability enabled', () => {
28
+ expect(
29
+ vulnerabilityDisabled({
30
+ hostDetails: {
31
+ operatingsystem_name: 'Red Hat Enterprise Linux',
32
+ vulnerability: { enabled: true },
33
+ },
34
+ })
35
+ ).toBe(false);
36
+ });
37
+
38
+ it('returns true for non-RHEL host', () => {
39
+ expect(
40
+ vulnerabilityDisabled({
41
+ hostDetails: {
42
+ operatingsystem_name: 'Ubuntu',
43
+ vulnerability: { enabled: true },
44
+ },
45
+ })
46
+ ).toBe(true);
47
+ });
48
+
49
+ it('returns true for RHEL host with vulnerability disabled', () => {
50
+ expect(
51
+ vulnerabilityDisabled({
52
+ hostDetails: {
53
+ operatingsystem_name: 'Red Hat Enterprise Linux',
54
+ vulnerability: { enabled: false },
55
+ },
56
+ })
57
+ ).toBe(true);
58
+ });
59
+
60
+ it('returns true when vulnerability object is missing', () => {
61
+ expect(
62
+ vulnerabilityDisabled({
63
+ hostDetails: {
64
+ operatingsystem_name: 'Red Hat Enterprise Linux',
65
+ },
66
+ })
67
+ ).toBe(true);
68
+ });
69
+
70
+ it('returns true when hostDetails is missing', () => {
71
+ expect(vulnerabilityDisabled({})).toBe(true);
72
+ });
73
+ });
74
+
75
+ describe('hasNoInsightsFacet', () => {
76
+ it('returns false when insights_attributes is present in response', () => {
77
+ expect(
78
+ hasNoInsightsFacet({
79
+ response: {
80
+ insights_attributes: {
81
+ uuid: 'test-uuid',
82
+ insights_hits_count: 5,
83
+ },
84
+ },
85
+ })
86
+ ).toBe(false);
87
+ });
88
+
89
+ it('returns true when insights_attributes is missing from response', () => {
90
+ expect(hasNoInsightsFacet({ response: {} })).toBe(true);
91
+ });
92
+
93
+ it('returns true when response is missing', () => {
94
+ expect(hasNoInsightsFacet({})).toBe(true);
95
+ });
96
+ });
97
+ });
@@ -1,13 +1,28 @@
1
- import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
1
+ import React from 'react';
2
+ import { render, screen } from '@testing-library/react';
2
3
  import { HelpLabel } from '../HelpLabel';
3
4
 
4
- const fixtures = {
5
- 'should return insights cloud Url': {
6
- id: 'some-id',
7
- text: 'some-text',
8
- className: 'some-class',
9
- },
10
- };
5
+ describe('HelpLabel', () => {
6
+ it('renders nothing when text is empty', () => {
7
+ const { container } = render(<HelpLabel id="test-id" text="" />);
8
+ expect(container.firstChild).toBeNull();
9
+ });
11
10
 
12
- describe('InsightsCloudSync helpers', () =>
13
- testComponentSnapshotsWithFixtures(HelpLabel, fixtures));
11
+ it('renders nothing when text is not provided', () => {
12
+ const { container } = render(<HelpLabel id="test-id" />);
13
+ expect(container.firstChild).toBeNull();
14
+ });
15
+
16
+ it('renders a button when text is provided', () => {
17
+ render(<HelpLabel id="test-id" text="Help text" />);
18
+ expect(screen.getByRole('button')).toBeTruthy();
19
+ });
20
+
21
+ it('applies the provided className', () => {
22
+ render(
23
+ <HelpLabel id="test-id" text="Help text" className="custom-class" />
24
+ );
25
+ const button = screen.getByRole('button');
26
+ expect(button.className).toContain('custom-class');
27
+ });
28
+ });
@@ -1,14 +1,45 @@
1
- import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
1
+ import React from 'react';
2
+ import { render, screen, fireEvent } from '@testing-library/react';
2
3
  import SwitcherPF4 from '../SwitcherPF4';
3
4
 
4
- const fixtures = {
5
- 'should return insights cloud Url': {
6
- id: 'some-id',
7
- tooltip: 'some-text',
8
- label: 'some-label',
5
+ describe('SwitcherPF4', () => {
6
+ const buildProps = (overrides = {}) => ({
7
+ id: 'test-id',
8
+ label: 'Test Label',
9
+ tooltip: 'Test tooltip',
9
10
  onChange: jest.fn(),
10
- },
11
- };
11
+ ...overrides,
12
+ });
12
13
 
13
- describe('InsightsCloudSync helpers', () =>
14
- testComponentSnapshotsWithFixtures(SwitcherPF4, fixtures));
14
+ it('renders the switch', () => {
15
+ render(<SwitcherPF4 {...buildProps()} />);
16
+ expect(screen.getByRole('checkbox')).toBeTruthy();
17
+ });
18
+
19
+ it('renders the label text', () => {
20
+ render(<SwitcherPF4 {...buildProps()} />);
21
+ expect(screen.getAllByText('Test Label').length).toBeGreaterThan(0);
22
+ });
23
+
24
+ it('is checked by default', () => {
25
+ render(<SwitcherPF4 {...buildProps()} />);
26
+ expect(screen.getByRole('checkbox').checked).toBe(true);
27
+ });
28
+
29
+ it('respects isChecked prop', () => {
30
+ render(<SwitcherPF4 {...buildProps({ isChecked: false })} />);
31
+ expect(screen.getByRole('checkbox').checked).toBe(false);
32
+ });
33
+
34
+ it('respects isDisabled prop', () => {
35
+ render(<SwitcherPF4 {...buildProps({ isDisabled: true })} />);
36
+ expect(screen.getByRole('checkbox').disabled).toBe(true);
37
+ });
38
+
39
+ it('calls onChange when toggled', () => {
40
+ const onChange = jest.fn();
41
+ render(<SwitcherPF4 {...buildProps({ onChange })} />);
42
+ fireEvent.click(screen.getByRole('checkbox'));
43
+ expect(onChange).toHaveBeenCalledTimes(1);
44
+ });
45
+ });
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: 14.1.1
4
+ version: 14.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Red Hat Cloud team
@@ -51,34 +51,6 @@ dependencies:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: '4.18'
54
- - !ruby/object:Gem::Dependency
55
- name: rdoc
56
- requirement: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: '0'
61
- type: :development
62
- prerelease: false
63
- version_requirements: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: '0'
68
- - !ruby/object:Gem::Dependency
69
- name: theforeman-rubocop
70
- requirement: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: 0.1.0
75
- type: :development
76
- prerelease: false
77
- version_requirements: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: 0.1.0
82
54
  description: Foreman plugin that process & upload data to Red Hat Cloud
83
55
  email:
84
56
  - rlavi@redhat.com, sshtein@redhat.com
@@ -188,6 +160,7 @@ files:
188
160
  - lib/foreman_inventory_upload/async/async_helpers.rb
189
161
  - lib/foreman_inventory_upload/async/create_missing_insights_facets.rb
190
162
  - lib/foreman_inventory_upload/async/delayed_start.rb
163
+ - lib/foreman_inventory_upload/async/destroy_organization_hbi_hosts_job.rb
191
164
  - lib/foreman_inventory_upload/async/generate_all_reports_job.rb
192
165
  - lib/foreman_inventory_upload/async/generate_host_report.rb
193
166
  - lib/foreman_inventory_upload/async/host_inventory_report_job.rb
@@ -206,6 +179,7 @@ files:
206
179
  - lib/foreman_rh_cloud.rb
207
180
  - lib/foreman_rh_cloud/async/exponential_backoff.rb
208
181
  - lib/foreman_rh_cloud/engine.rb
182
+ - lib/foreman_rh_cloud/organization_destroy_extensions.rb
209
183
  - lib/foreman_rh_cloud/plugin.rb
210
184
  - lib/foreman_rh_cloud/version.rb
211
185
  - lib/insights_cloud.rb
@@ -260,11 +234,13 @@ files:
260
234
  - test/jobs/cloud_connector_announce_task_test.rb
261
235
  - test/jobs/connector_playbook_execution_reporter_task_test.rb
262
236
  - test/jobs/create_missing_insights_facets_test.rb
237
+ - test/jobs/destroy_organization_hbi_hosts_job_test.rb
263
238
  - test/jobs/exponential_backoff_test.rb
264
239
  - test/jobs/generate_host_report_test.rb
265
240
  - test/jobs/host_inventory_report_job_test.rb
266
241
  - test/jobs/insights_client_status_aging_test.rb
267
242
  - test/jobs/insights_full_sync_test.rb
243
+ - test/jobs/insights_generate_notifications_test.rb
268
244
  - test/jobs/insights_resolutions_sync_test.rb
269
245
  - test/jobs/insights_rules_sync_test.rb
270
246
  - test/jobs/inventory_full_sync_test.rb
@@ -286,6 +262,7 @@ files:
286
262
  - test/unit/lib/foreman_rh_cloud/registration_manager_extensions_test.rb
287
263
  - test/unit/lib/insights_cloud/async/vmaas_reposcan_sync_test.rb
288
264
  - test/unit/metadata_generator_test.rb
265
+ - test/unit/organization_destroy_extensions_test.rb
289
266
  - test/unit/playbook_progress_generator_test.rb
290
267
  - test/unit/rh_cloud_host_test.rb
291
268
  - test/unit/rh_cloud_http_proxy_test.rb
@@ -321,45 +298,33 @@ files:
321
298
  - webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js
322
299
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/EmptyResults.js
323
300
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js
324
- - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap
325
301
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/emptyResults.scss
326
302
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/index.js
327
303
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.fixtures.js
328
304
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.js
329
305
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyStateHelper.js
330
306
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/__tests__/EmptyState.test.js
331
- - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/__tests__/__snapshots__/EmptyState.test.js.snap
332
307
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/emptyState.scss
333
308
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/index.js
334
309
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.fixtures.js
335
310
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js
336
311
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorStateHelper.js
337
312
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/__tests__/ErrorState.test.js
338
- - webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/__tests__/__snapshots__/ErrorState.test.js.snap
339
313
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/errorState.scss
340
314
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/index.js
341
315
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItem.fixtures.js
342
316
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItem.js
343
317
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItemHelper.js
344
318
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/ListItem.test.js
345
- - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/__snapshots__/ListItem.test.js.snap
346
319
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/index.js
347
320
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/ListItemStatus.fixtures.js
348
321
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/ListItemStatus.js
349
322
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/ListItemStatusHelper.js
350
323
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/ListItemStatus.test.js
351
- - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/__snapshots__/ListItemStatus.test.js.snap
352
324
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/index.js
353
325
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js
354
- - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js
355
326
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
356
- - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js
357
327
  - 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
328
  - webpack/ForemanInventoryUpload/Components/AccountList/accountList.scss
364
329
  - webpack/ForemanInventoryUpload/Components/AccountList/index.js
365
330
  - webpack/ForemanInventoryUpload/Components/Dashboard/Dashboard.fixtures.js
@@ -373,7 +338,6 @@ files:
373
338
  - webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
374
339
  - webpack/ForemanInventoryUpload/Components/FileDownload/FileDownloadHelper.js
375
340
  - webpack/ForemanInventoryUpload/Components/FileDownload/__tests__/FileDownload.test.js
376
- - webpack/ForemanInventoryUpload/Components/FileDownload/__tests__/__snapshots__/FileDownload.test.js.snap
377
341
  - webpack/ForemanInventoryUpload/Components/FileDownload/fileDownload.scss
378
342
  - webpack/ForemanInventoryUpload/Components/FileDownload/index.js
379
343
  - webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
@@ -385,21 +349,11 @@ files:
385
349
  - webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterReducer.js
386
350
  - webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterSelectors.js
387
351
  - 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
352
  - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js
397
353
  - webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js
398
354
  - webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss
399
355
  - webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/AdvancedSettingActions.js
400
356
  - 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
357
  - webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/index.js
404
358
  - webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js
405
359
  - webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.scss
@@ -407,8 +361,6 @@ files:
407
361
  - webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsConstants.js
408
362
  - webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
409
363
  - 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
364
  - webpack/ForemanInventoryUpload/Components/InventorySettings/index.js
413
365
  - webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js
414
366
  - webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js
@@ -421,15 +373,11 @@ files:
421
373
  - webpack/ForemanInventoryUpload/Components/PageHeader/PageTitle.js
422
374
  - webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageHeader.test.js
423
375
  - webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageTitle.test.js
424
- - webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageTitle.test.js.snap
425
376
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorActions.js
426
377
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorButton.js
427
378
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorConstants.js
428
379
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorSelectors.js
429
- - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorActions.test.js
430
380
  - 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
381
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
434
382
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudPingModal/index.js
435
383
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js
@@ -437,7 +385,6 @@ files:
437
385
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/index.js
438
386
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/SettingsWarning.js
439
387
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/SettingsWarning.test.js
440
- - webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/__snapshots__/SettingsWarning.test.js.snap
441
388
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
442
389
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js
443
390
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js
@@ -446,9 +393,6 @@ files:
446
393
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js
447
394
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonFixtures.js
448
395
  - 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
396
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/integrations.test.js
453
397
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
454
398
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/__tests__/Toast.test.js
@@ -462,28 +406,24 @@ files:
462
406
  - webpack/ForemanInventoryUpload/Components/ScheduledRun/ScheduledRun.js
463
407
  - webpack/ForemanInventoryUpload/Components/ScheduledRun/ScheduledRunHelper.js
464
408
  - webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/ScheduledRun.test.js
465
- - webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/__snapshots__/ScheduledRun.test.js.snap
466
409
  - webpack/ForemanInventoryUpload/Components/ScheduledRun/index.js
467
410
  - webpack/ForemanInventoryUpload/Components/ScheduledRun/scheduledRun.scss
468
411
  - webpack/ForemanInventoryUpload/Components/StatusChart/StatusChart.fixtures.js
469
412
  - webpack/ForemanInventoryUpload/Components/StatusChart/StatusChart.js
470
413
  - webpack/ForemanInventoryUpload/Components/StatusChart/StatusChartHelper.js
471
414
  - webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/StatusChart.test.js
472
- - webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/__snapshots__/StatusChart.test.js.snap
473
415
  - webpack/ForemanInventoryUpload/Components/StatusChart/index.js
474
416
  - webpack/ForemanInventoryUpload/Components/StatusChart/statusChart.scss
475
417
  - webpack/ForemanInventoryUpload/Components/TabContainer/TabContainer.fixtures.js
476
418
  - webpack/ForemanInventoryUpload/Components/TabContainer/TabContainer.js
477
419
  - webpack/ForemanInventoryUpload/Components/TabContainer/TabContainerHelper.js
478
420
  - webpack/ForemanInventoryUpload/Components/TabContainer/__tests__/TabContainer.test.js
479
- - webpack/ForemanInventoryUpload/Components/TabContainer/__tests__/__snapshots__/TabContainer.test.js.snap
480
421
  - webpack/ForemanInventoryUpload/Components/TabContainer/index.js
481
422
  - webpack/ForemanInventoryUpload/Components/TabContainer/tabContainer.scss
482
423
  - webpack/ForemanInventoryUpload/Components/TabFooter/TabFooter.fixtures.js
483
424
  - webpack/ForemanInventoryUpload/Components/TabFooter/TabFooter.js
484
425
  - webpack/ForemanInventoryUpload/Components/TabFooter/TabFooterHelper.js
485
426
  - webpack/ForemanInventoryUpload/Components/TabFooter/__tests__/TabFooter.test.js
486
- - webpack/ForemanInventoryUpload/Components/TabFooter/__tests__/__snapshots__/TabFooter.test.js.snap
487
427
  - webpack/ForemanInventoryUpload/Components/TabFooter/index.js
488
428
  - webpack/ForemanInventoryUpload/Components/TabFooter/tabFooter.scss
489
429
  - webpack/ForemanInventoryUpload/Components/TabHeader/TabHeader.fixtures.js
@@ -504,12 +444,8 @@ files:
504
444
  - webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js
505
445
  - webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/InventoryAutoUpload.js
506
446
  - webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/InventoryAutoUpload.test.js
507
- - webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/__snapshots__/InventoryAutoUpload.test.js.snap
508
447
  - webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/index.js
509
448
  - 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
449
  - webpack/ForemanInventoryUpload/index.js
514
450
  - webpack/ForemanRhCloudFills.js
515
451
  - webpack/ForemanRhCloudHelpers.js
@@ -526,11 +462,6 @@ files:
526
462
  - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsReducer.js
527
463
  - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsSelectors.js
528
464
  - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js
529
- - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
530
- - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
531
- - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap
532
- - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap
533
- - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsSelectors.test.js.snap
534
465
  - webpack/InsightsCloudSync/Components/InsightsSettings/index.js
535
466
  - webpack/InsightsCloudSync/Components/InsightsSettings/insightsSettings.scss
536
467
  - webpack/InsightsCloudSync/Components/InsightsTable/InsightsLabel.js
@@ -547,8 +478,6 @@ files:
547
478
  - webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTable.test.js
548
479
  - webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTableActions.test.js
549
480
  - webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTableSelectors.test.js
550
- - webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableActions.test.js.snap
551
- - webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableSelectors.test.js.snap
552
481
  - webpack/InsightsCloudSync/Components/InsightsTable/__tests__/fixtures.js
553
482
  - webpack/InsightsCloudSync/Components/InsightsTable/index.js
554
483
  - webpack/InsightsCloudSync/Components/InsightsTable/table.scss
@@ -568,11 +497,7 @@ files:
568
497
  - webpack/InsightsCloudSync/InsightsCloudSyncConstants.js
569
498
  - webpack/InsightsCloudSync/InsightsCloudSyncHelpers.js
570
499
  - webpack/InsightsCloudSync/InsightsCloudSyncReducers.js
571
- - webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap
572
500
  - webpack/InsightsCloudSync/__tests__/InsightsCloudSyncActions.test.js
573
- - webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js
574
- - webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncActions.test.js.snap
575
- - webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap
576
501
  - webpack/InsightsCloudSync/index.js
577
502
  - webpack/InsightsHostDetailsTab/InsightsTab.js
578
503
  - webpack/InsightsHostDetailsTab/InsightsTab.scss
@@ -585,16 +510,9 @@ files:
585
510
  - webpack/InsightsHostDetailsTab/NewHostDetailsTab.js
586
511
  - webpack/InsightsHostDetailsTab/__tests__/InsightsTab.fixtures.js
587
512
  - webpack/InsightsHostDetailsTab/__tests__/InsightsTab.test.js
588
- - webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js
589
513
  - webpack/InsightsHostDetailsTab/__tests__/InsightsTabIntegration.test.js
590
- - webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
591
- - webpack/InsightsHostDetailsTab/__tests__/InsightsTabSelectors.test.js
592
514
  - webpack/InsightsHostDetailsTab/__tests__/InsightsTotalRiskChart.test.js
593
515
  - webpack/InsightsHostDetailsTab/__tests__/NewHostDetailsTab.test.js
594
- - webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTab.test.js.snap
595
- - webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabActions.test.js.snap
596
- - webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabReducer.test.js.snap
597
- - webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabSelectors.test.js.snap
598
516
  - webpack/InsightsHostDetailsTab/components/ListItem/ListItem.js
599
517
  - webpack/InsightsHostDetailsTab/components/ListItem/index.js
600
518
  - webpack/InsightsHostDetailsTab/index.js
@@ -626,11 +544,6 @@ files:
626
544
  - webpack/__mocks__/foremanReact/routes/RouterSelector.js
627
545
  - webpack/__mocks__/foremanReact/routes/common/PageLayout/PageLayout.js
628
546
  - webpack/__tests__/ForemanRhCloudHelpers.test.js
629
- - webpack/__tests__/ForemanRhCloudSelectors.test.js
630
- - webpack/__tests__/ForemanRhCloudTestHelpers.test.js
631
- - webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap
632
- - webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap
633
- - webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap
634
547
  - webpack/common/DropdownToggle.js
635
548
  - webpack/common/ForemanTasks/ForemanTasksActions.js
636
549
  - webpack/common/ForemanTasks/ForemanTasksHelpers.js
@@ -644,8 +557,6 @@ files:
644
557
  - webpack/common/Switcher/SwitcherPF4.scss
645
558
  - webpack/common/Switcher/__tests__/HelpLabel.test.js
646
559
  - webpack/common/Switcher/__tests__/SwitcherPF4.test.js
647
- - webpack/common/Switcher/__tests__/__snapshots__/HelpLabel.test.js.snap
648
- - webpack/common/Switcher/__tests__/__snapshots__/SwitcherPF4.test.js.snap
649
560
  - webpack/common/Switcher/index.js
650
561
  - webpack/common/styles.scss
651
562
  - webpack/common/table/EmptyState.js
@@ -692,11 +603,13 @@ test_files:
692
603
  - test/jobs/cloud_connector_announce_task_test.rb
693
604
  - test/jobs/connector_playbook_execution_reporter_task_test.rb
694
605
  - test/jobs/create_missing_insights_facets_test.rb
606
+ - test/jobs/destroy_organization_hbi_hosts_job_test.rb
695
607
  - test/jobs/exponential_backoff_test.rb
696
608
  - test/jobs/generate_host_report_test.rb
697
609
  - test/jobs/host_inventory_report_job_test.rb
698
610
  - test/jobs/insights_client_status_aging_test.rb
699
611
  - test/jobs/insights_full_sync_test.rb
612
+ - test/jobs/insights_generate_notifications_test.rb
700
613
  - test/jobs/insights_resolutions_sync_test.rb
701
614
  - test/jobs/insights_rules_sync_test.rb
702
615
  - test/jobs/inventory_full_sync_test.rb
@@ -718,6 +631,7 @@ test_files:
718
631
  - test/unit/lib/foreman_rh_cloud/registration_manager_extensions_test.rb
719
632
  - test/unit/lib/insights_cloud/async/vmaas_reposcan_sync_test.rb
720
633
  - test/unit/metadata_generator_test.rb
634
+ - test/unit/organization_destroy_extensions_test.rb
721
635
  - test/unit/playbook_progress_generator_test.rb
722
636
  - test/unit/rh_cloud_host_test.rb
723
637
  - test/unit/rh_cloud_http_proxy_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
- `;