foreman_rh_cloud 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/foreman_inventory_upload/accounts_controller.rb +1 -0
  3. data/app/controllers/foreman_inventory_upload/tasks_controller.rb +25 -0
  4. data/app/controllers/insights_cloud/settings_controller.rb +24 -0
  5. data/app/controllers/insights_cloud/tasks_controller.rb +1 -2
  6. data/app/helpers/foreman_inventory_upload_host_helper.rb +10 -1
  7. data/app/models/insights_facet.rb +5 -1
  8. data/app/models/inventory_sync/inventory_status.rb +30 -0
  9. data/app/models/setting/rh_cloud.rb +1 -0
  10. data/app/views/foreman_rh_cloud/react/inventory_upload.html.erb +1 -1
  11. data/config/routes.rb +3 -0
  12. data/db/migrate/20200727111529_add_uuid_column_to_insights_facets.foreman_rh_cloud.rb +5 -0
  13. data/lib/foreman_inventory_upload.rb +4 -0
  14. data/lib/foreman_inventory_upload/generators/fact_helpers.rb +1 -1
  15. data/lib/foreman_inventory_upload/generators/slice.rb +25 -3
  16. data/lib/foreman_rh_cloud.rb +13 -0
  17. data/lib/foreman_rh_cloud/engine.rb +6 -1
  18. data/lib/foreman_rh_cloud/version.rb +1 -1
  19. data/lib/insights_cloud.rb +8 -8
  20. data/lib/insights_cloud/async/insights_full_sync.rb +17 -10
  21. data/lib/insights_cloud/async/insights_scheduled_sync.rb +23 -0
  22. data/lib/inventory_sync/async/host_result.rb +50 -0
  23. data/lib/inventory_sync/async/inventory_full_sync.rb +99 -0
  24. data/test/controllers/insights_sync/settings_controller_test.rb +30 -0
  25. data/test/factories/insights_factories.rb +31 -0
  26. data/test/jobs/insights_full_sync_test.rb +4 -2
  27. data/test/jobs/inventory_full_sync_test.rb +91 -0
  28. data/test/unit/insights_facet_test.rb +16 -0
  29. data/test/unit/slice_generator_test.rb +15 -7
  30. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js +3 -1
  31. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListActions.js +2 -1
  32. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js +2 -0
  33. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js +2 -0
  34. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js +2 -0
  35. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListActions.test.js.snap +1 -0
  36. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListReducer.test.js.snap +1 -0
  37. data/webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js +5 -1
  38. data/webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/__snapshots__/FullScreenModal.test.js.snap +1 -0
  39. data/webpack/ForemanInventoryUpload/Components/FullScreenModal/fullScreenModal.scss +15 -13
  40. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap +6 -0
  41. data/webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js +1 -1
  42. data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap +3 -3
  43. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/DocsButton.js +1 -0
  44. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/__snapshots__/DocsButton.test.js.snap +1 -0
  45. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/HistoryButton.js +1 -0
  46. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/__snapshots__/HistoryButton.test.js.snap +1 -0
  47. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js +52 -0
  48. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js +59 -0
  49. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonConstants.js +3 -0
  50. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonReducer.js +36 -0
  51. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonSelectors.js +13 -0
  52. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js +13 -0
  53. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonActions.test.js +13 -0
  54. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonFixtures.js +9 -0
  55. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js +33 -0
  56. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js +36 -0
  57. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap +26 -0
  58. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap +36 -0
  59. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonReducer.test.js.snap +25 -0
  60. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap +18 -0
  61. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Modal.js +63 -0
  62. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js +41 -0
  63. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/modal.scss +20 -0
  64. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js +22 -0
  65. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js +2 -0
  66. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap +1 -0
  67. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss +6 -1
  68. data/webpack/ForemanInventoryUpload/ForemanInventoryConstants.js +3 -1
  69. data/webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js +2 -0
  70. data/webpack/ForemanRhCloudPages.js +7 -0
  71. data/webpack/ForemanRhCloudTestHelpers.js +12 -3
  72. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js +33 -0
  73. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js +60 -0
  74. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsConstants.js +10 -0
  75. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsReducer.js +28 -0
  76. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsSelectors.js +6 -0
  77. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettings.test.js +18 -0
  78. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js +46 -0
  79. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js +56 -0
  80. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js +21 -0
  81. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettings.test.js.snap +15 -0
  82. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap +31 -0
  83. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap +33 -0
  84. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsSelectors.test.js.snap +9 -0
  85. data/webpack/InsightsCloudSync/Components/InsightsSettings/index.js +21 -0
  86. data/webpack/InsightsCloudSync/Components/InsightsSettings/insightsSettings.scss +16 -0
  87. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.fixtures.js +1 -0
  88. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.js +45 -0
  89. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/InsightsSyncSwitcher.test.js +17 -0
  90. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/__snapshots__/InsightsSyncSwitcher.test.js.snap +38 -0
  91. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/index.js +1 -0
  92. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/insightsSyncSwitcher.scss +3 -0
  93. data/webpack/InsightsCloudSync/InsightsCloudSync.js +32 -28
  94. data/webpack/InsightsCloudSync/InsightsCloudSyncReducers.js +7 -2
  95. data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +51 -46
  96. data/webpack/InsightsCloudSync/index.js +2 -1
  97. data/webpack/__mocks__/foremanReact/constants.js +5 -0
  98. data/webpack/__mocks__/foremanReact/redux/actions/toasts.js +8 -0
  99. data/webpack/__tests__/ForemanRhCloudSelectors.test.js +4 -1
  100. data/webpack/__tests__/ForemanRhCloudTestHelpers.test.js +12 -2
  101. data/webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap +9 -9
  102. data/webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap +24 -2
  103. data/webpack/index.js +2 -12
  104. metadata +59 -2
@@ -1,3 +1,8 @@
1
- const reducers = {};
1
+ import { combineReducers } from 'redux';
2
+ import { reducers as settingsReducers } from './Components/InsightsSettings';
2
3
 
3
- export default reducers;
4
+ export default {
5
+ InsightsCloudSync: combineReducers({
6
+ ...settingsReducers,
7
+ }),
8
+ };
@@ -10,52 +10,57 @@ exports[`InsightsCloudSync render 1`] = `
10
10
  <h1>
11
11
  Red Hat Insights Sync
12
12
  </h1>
13
- <p>
14
- Insights synchronization process is used to provide Insights
15
- recommendations output for hosts managed here
16
- </p>
17
- <p>
18
- 1. Obtain an RHSM API token:
19
- <a
20
- href="https://access.redhat.com/management/api"
21
- rel="noopener noreferrer"
22
- target="_blank"
23
- >
24
- access.redhat.com
25
- <Icon
26
- name="external-link"
27
- size="xs"
28
- type="fa"
29
- />
30
- </a>
31
- <br />
32
- 2. Copy the token to 'Red Hat Cloud token' setting:
33
- <a
34
- href="www.example.com/settings"
35
- rel="noopener noreferrer"
36
- target="_blank"
37
- >
38
- Red Hat Cloud token
39
- <Icon
40
- name="external-link"
41
- size="xs"
42
- type="fa"
43
- />
44
- </a>
45
- <br />
46
- 3. Now you can syncronize recommendations manually using the "Sync now" button.
47
- </p>
48
- <div>
49
- <Button
50
- active={false}
51
- block={false}
52
- bsClass="btn"
53
- bsStyle="primary"
54
- disabled={false}
55
- onClick={[Function]}
56
- >
57
- Sync now
58
- </Button>
13
+ <div
14
+ className="insights-cloud-sync-body"
15
+ >
16
+ <Connect(InsightsSettings) />
17
+ <p>
18
+ Insights synchronization process is used to provide Insights
19
+ recommendations output for hosts managed here
20
+ </p>
21
+ <p>
22
+ 1. Obtain an RHSM API token:
23
+ <a
24
+ href="https://access.redhat.com/management/api"
25
+ rel="noopener noreferrer"
26
+ target="_blank"
27
+ >
28
+ access.redhat.com
29
+ <Icon
30
+ name="external-link"
31
+ size="xs"
32
+ type="fa"
33
+ />
34
+ </a>
35
+ <br />
36
+ 2. Copy the token to 'Red Hat Cloud token' setting:
37
+ <a
38
+ href="www.example.com/settings"
39
+ rel="noopener noreferrer"
40
+ target="_blank"
41
+ >
42
+ Red Hat Cloud token
43
+ <Icon
44
+ name="external-link"
45
+ size="xs"
46
+ type="fa"
47
+ />
48
+ </a>
49
+ <br />
50
+ 3. Now you can synchronize recommendations manually using the "Sync now" button.
51
+ </p>
52
+ <div>
53
+ <Button
54
+ active={false}
55
+ block={false}
56
+ bsClass="btn"
57
+ bsStyle="primary"
58
+ disabled={false}
59
+ onClick={[Function]}
60
+ >
61
+ Sync now
62
+ </Button>
63
+ </div>
59
64
  </div>
60
65
  </div>
61
66
  </IntlProvider>
@@ -3,6 +3,7 @@ import { connect } from 'react-redux';
3
3
 
4
4
  import * as actions from './InsightsCloudSyncActions';
5
5
  import InsightsCloudSync from './InsightsCloudSync';
6
+ import insightsCloudSyncReducers from './InsightsCloudSyncReducers';
6
7
 
7
8
  // map state to props
8
9
  const mapStateToProps = state => ({});
@@ -11,7 +12,7 @@ const mapStateToProps = state => ({});
11
12
  const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch);
12
13
 
13
14
  // export reducers
14
- export const reducers = {};
15
+ export const reducers = insightsCloudSyncReducers;
15
16
 
16
17
  // export connected component
17
18
  export default connect(mapStateToProps, mapDispatchToProps)(InsightsCloudSync);
@@ -0,0 +1,5 @@
1
+ export const STATUS = {
2
+ PENDING: 'PENDING',
3
+ RESOLVED: 'RESOLVED',
4
+ ERROR: 'ERROR',
5
+ };
@@ -0,0 +1,8 @@
1
+ export const addToast = toast => ({
2
+ type: 'TOASTS_ADD',
3
+ payload: {
4
+ message: toast,
5
+ },
6
+ });
7
+
8
+ export default addToast;
@@ -6,7 +6,10 @@ import {
6
6
  selectInsightsCloudSync,
7
7
  } from '../ForemanRhCloudSelectors';
8
8
 
9
- const state = rhCloudStateWrapper({ inventoryReducersNamespaces: {} });
9
+ const state = rhCloudStateWrapper(
10
+ { inventoryChild: {} },
11
+ { insightsChild: {} }
12
+ );
10
13
 
11
14
  const fixtures = {
12
15
  'should return ForemanRhCloud': () => selectForemanRhCloud(state),
@@ -1,9 +1,19 @@
1
1
  import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
2
- import { rhCloudStateWrapper } from '../ForemanRhCloudTestHelpers';
2
+ import {
3
+ rhCloudStateWrapper,
4
+ inventoryStateWrapper,
5
+ insightsStateWrapper,
6
+ } from '../ForemanRhCloudTestHelpers';
3
7
 
4
8
  const fixtures = {
9
+ 'should return rhCloud wrapper': () =>
10
+ rhCloudStateWrapper({ inventoryChild: {} }, { insightsChild: {} }),
11
+
5
12
  'should return inventory wrapper': () =>
6
- rhCloudStateWrapper({ inventoryChildren: null }),
13
+ inventoryStateWrapper({ inventoryChild: {} }),
14
+
15
+ 'should return insights wrapper': () =>
16
+ insightsStateWrapper({ insightsChild: {} }),
7
17
  };
8
18
 
9
19
  describe('ForemanRhCloud helpers', () =>
@@ -1,24 +1,24 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`ForemanRhCloud selectors should return InsightsCloudSync 1`] = `
4
- Object {
5
- "inventoryReducersNamespaces": Object {},
6
- }
7
- `;
8
-
9
3
  exports[`ForemanRhCloud selectors should return ForemanInventoryUpload 1`] = `
10
4
  Object {
11
- "inventoryReducersNamespaces": Object {},
5
+ "inventoryChild": Object {},
12
6
  }
13
7
  `;
14
8
 
15
9
  exports[`ForemanRhCloud selectors should return ForemanRhCloud 1`] = `
16
10
  Object {
17
11
  "InsightsCloudSync": Object {
18
- "inventoryReducersNamespaces": Object {},
12
+ "insightsChild": Object {},
19
13
  },
20
14
  "inventoryUpload": Object {
21
- "inventoryReducersNamespaces": Object {},
15
+ "inventoryChild": Object {},
22
16
  },
23
17
  }
24
18
  `;
19
+
20
+ exports[`ForemanRhCloud selectors should return InsightsCloudSync 1`] = `
21
+ Object {
22
+ "insightsChild": Object {},
23
+ }
24
+ `;
@@ -1,13 +1,35 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`ForemanRhCloud helpers should return insights wrapper 1`] = `
4
+ Object {
5
+ "ForemanRhCloud": Object {
6
+ "InsightsCloudSync": Object {
7
+ "insightsChild": Object {},
8
+ },
9
+ "inventoryUpload": Object {},
10
+ },
11
+ }
12
+ `;
13
+
3
14
  exports[`ForemanRhCloud helpers should return inventory wrapper 1`] = `
15
+ Object {
16
+ "ForemanRhCloud": Object {
17
+ "InsightsCloudSync": Object {},
18
+ "inventoryUpload": Object {
19
+ "inventoryChild": Object {},
20
+ },
21
+ },
22
+ }
23
+ `;
24
+
25
+ exports[`ForemanRhCloud helpers should return rhCloud wrapper 1`] = `
4
26
  Object {
5
27
  "ForemanRhCloud": Object {
6
28
  "InsightsCloudSync": Object {
7
- "inventoryChildren": null,
29
+ "insightsChild": Object {},
8
30
  },
9
31
  "inventoryUpload": Object {
10
- "inventoryChildren": null,
32
+ "inventoryChild": Object {},
11
33
  },
12
34
  },
13
35
  }
data/webpack/index.js CHANGED
@@ -4,8 +4,7 @@
4
4
  import componentRegistry from 'foremanReact/components/componentRegistry';
5
5
  import { registerReducer } from 'foremanReact/common/MountingService';
6
6
  import reducers from './ForemanRhCloudReducers';
7
- import ForemanInventoryUpload from './ForemanInventoryUpload';
8
- import InsightsCloudSync from './InsightsCloudSync';
7
+ import pages from './ForemanRhCloudPages';
9
8
 
10
9
  // register reducers
11
10
  Object.entries(reducers).forEach(([key, reducer]) =>
@@ -13,13 +12,4 @@ Object.entries(reducers).forEach(([key, reducer]) =>
13
12
  );
14
13
 
15
14
  // register components
16
- componentRegistry.register({
17
- name: 'ForemanInventoryUpload',
18
- type: ForemanInventoryUpload,
19
- });
20
-
21
- // register components
22
- componentRegistry.register({
23
- name: 'InsightsCloudSync',
24
- type: InsightsCloudSync,
25
- });
15
+ pages.forEach(page => componentRegistry.register(page));
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_rh_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Red Hat Cloud team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-13 00:00:00.000000000 Z
11
+ date: 2020-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello
@@ -106,13 +106,16 @@ files:
106
106
  - Rakefile
107
107
  - app/controllers/foreman_inventory_upload/accounts_controller.rb
108
108
  - app/controllers/foreman_inventory_upload/reports_controller.rb
109
+ - app/controllers/foreman_inventory_upload/tasks_controller.rb
109
110
  - app/controllers/foreman_inventory_upload/uploads_controller.rb
110
111
  - app/controllers/foreman_rh_cloud/react_controller.rb
112
+ - app/controllers/insights_cloud/settings_controller.rb
111
113
  - app/controllers/insights_cloud/tasks_controller.rb
112
114
  - app/helpers/foreman_inventory_upload_helper.rb
113
115
  - app/helpers/foreman_inventory_upload_host_helper.rb
114
116
  - app/models/insights_facet.rb
115
117
  - app/models/insights_hit.rb
118
+ - app/models/inventory_sync/inventory_status.rb
116
119
  - app/models/setting/rh_cloud.rb
117
120
  - app/overrides/hosts_list.rb
118
121
  - app/views/foreman_rh_cloud/react/insights_cloud.html.erb
@@ -121,6 +124,7 @@ files:
121
124
  - config/routes.rb
122
125
  - db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb
123
126
  - db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb
127
+ - db/migrate/20200727111529_add_uuid_column_to_insights_facets.foreman_rh_cloud.rb
124
128
  - lib/foreman_inventory_upload.rb
125
129
  - lib/foreman_inventory_upload/async/async_helpers.rb
126
130
  - lib/foreman_inventory_upload/async/generate_all_reports_job.rb
@@ -142,6 +146,9 @@ files:
142
146
  - lib/foreman_rh_cloud/version.rb
143
147
  - lib/insights_cloud.rb
144
148
  - lib/insights_cloud/async/insights_full_sync.rb
149
+ - lib/insights_cloud/async/insights_scheduled_sync.rb
150
+ - lib/inventory_sync/async/host_result.rb
151
+ - lib/inventory_sync/async/inventory_full_sync.rb
145
152
  - lib/tasks/foreman_rh_cloud_tasks.rake
146
153
  - lib/tasks/generator.rake
147
154
  - locale/Makefile
@@ -150,13 +157,17 @@ files:
150
157
  - locale/gemspec.rb
151
158
  - package.json
152
159
  - test/controllers/accounts_controller_test.rb
160
+ - test/controllers/insights_sync/settings_controller_test.rb
153
161
  - test/controllers/reports_controller_test.rb
154
162
  - test/controllers/uploads_controller_test.rb
163
+ - test/factories/insights_factories.rb
155
164
  - test/factories/inventory_upload_factories.rb
156
165
  - test/jobs/insights_full_sync_test.rb
166
+ - test/jobs/inventory_full_sync_test.rb
157
167
  - test/test_plugin_helper.rb
158
168
  - test/unit/archived_report_generator_test.rb
159
169
  - test/unit/fact_helpers_test.rb
170
+ - test/unit/insights_facet_test.rb
160
171
  - test/unit/metadata_generator_test.rb
161
172
  - test/unit/shell_process_job_test.rb
162
173
  - test/unit/slice_generator_test.rb
@@ -313,6 +324,24 @@ files:
313
324
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js
314
325
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap
315
326
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/index.js
327
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js
328
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js
329
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonConstants.js
330
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonReducer.js
331
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonSelectors.js
332
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js
333
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonActions.test.js
334
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonFixtures.js
335
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
336
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
337
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap
338
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
339
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonReducer.test.js.snap
340
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap
341
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Modal.js
342
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
343
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/modal.scss
344
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
316
345
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js
317
346
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js
318
347
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap
@@ -394,9 +423,31 @@ files:
394
423
  - webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryUpload.test.js.snap
395
424
  - webpack/ForemanInventoryUpload/index.js
396
425
  - webpack/ForemanRhCloudHelpers.js
426
+ - webpack/ForemanRhCloudPages.js
397
427
  - webpack/ForemanRhCloudReducers.js
398
428
  - webpack/ForemanRhCloudSelectors.js
399
429
  - webpack/ForemanRhCloudTestHelpers.js
430
+ - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
431
+ - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js
432
+ - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsConstants.js
433
+ - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsReducer.js
434
+ - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsSelectors.js
435
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettings.test.js
436
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js
437
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
438
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
439
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettings.test.js.snap
440
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap
441
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap
442
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsSelectors.test.js.snap
443
+ - webpack/InsightsCloudSync/Components/InsightsSettings/index.js
444
+ - webpack/InsightsCloudSync/Components/InsightsSettings/insightsSettings.scss
445
+ - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.fixtures.js
446
+ - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.js
447
+ - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/InsightsSyncSwitcher.test.js
448
+ - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/__snapshots__/InsightsSyncSwitcher.test.js.snap
449
+ - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/index.js
450
+ - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/insightsSyncSwitcher.scss
400
451
  - webpack/InsightsCloudSync/InsightsCloudSync.js
401
452
  - webpack/InsightsCloudSync/InsightsCloudSync.test.js
402
453
  - webpack/InsightsCloudSync/InsightsCloudSyncActions.js
@@ -411,6 +462,8 @@ files:
411
462
  - webpack/__mocks__/foremanReact/common/I18n.js
412
463
  - webpack/__mocks__/foremanReact/common/helpers.js
413
464
  - webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js
465
+ - webpack/__mocks__/foremanReact/constants.js
466
+ - webpack/__mocks__/foremanReact/redux/actions/toasts.js
414
467
  - webpack/__tests__/ForemanRhCloudHelpers.test.js
415
468
  - webpack/__tests__/ForemanRhCloudSelectors.test.js
416
469
  - webpack/__tests__/ForemanRhCloudTestHelpers.test.js
@@ -451,13 +504,17 @@ specification_version: 4
451
504
  summary: Summary of ForemanRhCloud.
452
505
  test_files:
453
506
  - test/controllers/uploads_controller_test.rb
507
+ - test/controllers/insights_sync/settings_controller_test.rb
454
508
  - test/controllers/accounts_controller_test.rb
455
509
  - test/controllers/reports_controller_test.rb
456
510
  - test/test_plugin_helper.rb
457
511
  - test/jobs/insights_full_sync_test.rb
512
+ - test/jobs/inventory_full_sync_test.rb
458
513
  - test/factories/inventory_upload_factories.rb
514
+ - test/factories/insights_factories.rb
459
515
  - test/unit/shell_process_job_test.rb
460
516
  - test/unit/metadata_generator_test.rb
517
+ - test/unit/insights_facet_test.rb
461
518
  - test/unit/fact_helpers_test.rb
462
519
  - test/unit/archived_report_generator_test.rb
463
520
  - test/unit/slice_generator_test.rb