foreman_rh_cloud 0.9.5 → 0.9.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/foreman_inventory_upload/accounts_controller.rb +4 -6
  3. data/app/controllers/foreman_inventory_upload/tasks_controller.rb +25 -0
  4. data/app/controllers/foreman_inventory_upload/uploads_controller.rb +22 -3
  5. data/app/controllers/foreman_rh_cloud/react_controller.rb +11 -0
  6. data/app/controllers/insights_cloud/settings_controller.rb +24 -0
  7. data/app/controllers/insights_cloud/tasks_controller.rb +7 -0
  8. data/app/helpers/foreman_inventory_upload_host_helper.rb +20 -0
  9. data/app/models/insights_facet.rb +7 -0
  10. data/app/models/insights_hit.rb +6 -0
  11. data/app/models/inventory_sync/inventory_status.rb +30 -0
  12. data/app/models/setting/rh_cloud.rb +4 -1
  13. data/app/overrides/hosts_list.rb +13 -0
  14. data/app/views/foreman_rh_cloud/react/insights_cloud.html.erb +6 -0
  15. data/app/views/foreman_rh_cloud/react/inventory_upload.html.erb +1 -0
  16. data/app/views/{foreman_inventory_upload/layouts/react.html.erb → layouts/foreman_rh_cloud/application.html.erb} +2 -2
  17. data/config/routes.rb +14 -1
  18. data/db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb +14 -0
  19. data/db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb +7 -0
  20. data/db/migrate/20200727111529_add_uuid_column_to_insights_facets.foreman_rh_cloud.rb +5 -0
  21. data/lib/foreman_inventory_upload.rb +4 -0
  22. data/lib/foreman_inventory_upload/async/async_helpers.rb +13 -0
  23. data/lib/foreman_inventory_upload/async/shell_process.rb +3 -1
  24. data/lib/foreman_inventory_upload/generators/fact_helpers.rb +56 -0
  25. data/lib/foreman_inventory_upload/generators/json_stream.rb +10 -0
  26. data/lib/foreman_inventory_upload/generators/queries.rb +6 -0
  27. data/lib/foreman_inventory_upload/generators/slice.rb +54 -22
  28. data/lib/foreman_inventory_upload/notifications/manifest_import_success_notification_override.rb +19 -0
  29. data/lib/foreman_rh_cloud.rb +13 -0
  30. data/lib/foreman_rh_cloud/engine.rb +32 -5
  31. data/lib/foreman_rh_cloud/version.rb +1 -1
  32. data/lib/insights_cloud.rb +15 -0
  33. data/lib/insights_cloud/async/insights_full_sync.rb +103 -0
  34. data/lib/insights_cloud/async/insights_scheduled_sync.rb +23 -0
  35. data/lib/inventory_sync/async/host_result.rb +50 -0
  36. data/lib/inventory_sync/async/inventory_full_sync.rb +99 -0
  37. data/test/controllers/insights_sync/settings_controller_test.rb +30 -0
  38. data/test/factories/insights_factories.rb +31 -0
  39. data/test/jobs/insights_full_sync_test.rb +94 -0
  40. data/test/jobs/inventory_full_sync_test.rb +91 -0
  41. data/test/unit/archived_report_generator_test.rb +1 -0
  42. data/test/unit/fact_helpers_test.rb +29 -0
  43. data/test/unit/insights_facet_test.rb +16 -0
  44. data/test/unit/slice_generator_test.rb +252 -25
  45. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js +14 -2
  46. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.js +13 -10
  47. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListActions.js +6 -3
  48. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListHelper.js +10 -0
  49. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js +11 -1
  50. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js +10 -1
  51. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/EmptyResults.js +15 -0
  52. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js +13 -0
  53. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap +18 -0
  54. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/emptyResults.scss +7 -0
  55. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/index.js +1 -0
  56. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItem.js +1 -4
  57. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js +1 -0
  58. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js +8 -1
  59. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js +12 -0
  60. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js +1 -1
  61. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js +13 -0
  62. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js +12 -8
  63. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountList.test.js.snap +2 -3
  64. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListActions.test.js.snap +21 -2
  65. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListReducer.test.js.snap +11 -0
  66. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListSelectors.test.js.snap +3 -0
  67. data/webpack/ForemanInventoryUpload/Components/AccountList/index.js +2 -0
  68. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcher.js +6 -6
  69. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcherActions.js +4 -1
  70. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/__snapshots__/AutoUploadSwitcher.test.js.snap +9 -9
  71. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/autoUploadSwitcher.scss +1 -1
  72. data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardActions.js +4 -3
  73. data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardSelectors.js +1 -1
  74. data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardActions.test.js +2 -3
  75. data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardIntegration.test.js +1 -1
  76. data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js +3 -2
  77. data/webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js +5 -1
  78. data/webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/__snapshots__/FullScreenModal.test.js.snap +1 -0
  79. data/webpack/ForemanInventoryUpload/Components/FullScreenModal/fullScreenModal.scss +15 -13
  80. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js +1 -0
  81. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js +29 -0
  82. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js +30 -0
  83. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js +3 -0
  84. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcher.test.js +14 -0
  85. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js +14 -0
  86. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcher.test.js.snap +38 -0
  87. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap +14 -0
  88. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss +0 -0
  89. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/index.js +20 -0
  90. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js +26 -0
  91. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js +1 -0
  92. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.fixtures.js +2 -0
  93. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.js +39 -0
  94. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterActions.js +16 -0
  95. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterConstants.js +3 -0
  96. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterReducer.js +36 -0
  97. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterSelectors.js +7 -0
  98. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilter.test.js +14 -0
  99. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterActions.test.js +14 -0
  100. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js +35 -0
  101. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js +21 -0
  102. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilter.test.js.snap +25 -0
  103. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterActions.test.js.snap +17 -0
  104. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap +25 -0
  105. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterSelectors.test.js.snap +9 -0
  106. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap +37 -0
  107. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js +18 -0
  108. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js +17 -0
  109. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss +28 -0
  110. data/webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js +15 -0
  111. data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettings.test.js +13 -0
  112. data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap +13 -0
  113. data/webpack/ForemanInventoryUpload/Components/InventorySettings/index.js +1 -0
  114. data/webpack/ForemanInventoryUpload/Components/InventorySettings/inventorySettings.scss +15 -0
  115. data/webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js +25 -6
  116. data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap +33 -5
  117. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/DocsButton.js +18 -0
  118. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/DocsButton.test.js +13 -0
  119. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/__snapshots__/DocsButton.test.js.snap +21 -0
  120. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/index.js +1 -0
  121. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/HistoryButton.js +19 -0
  122. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/HistoryButton.test.js +14 -0
  123. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/__snapshots__/HistoryButton.test.js.snap +22 -0
  124. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/index.js +1 -0
  125. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js +24 -0
  126. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js +11 -0
  127. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap +17 -0
  128. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/index.js +1 -0
  129. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js +52 -0
  130. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js +59 -0
  131. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonConstants.js +3 -0
  132. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonReducer.js +36 -0
  133. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonSelectors.js +13 -0
  134. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js +13 -0
  135. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonActions.test.js +13 -0
  136. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonFixtures.js +9 -0
  137. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js +33 -0
  138. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js +36 -0
  139. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap +26 -0
  140. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap +36 -0
  141. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonReducer.test.js.snap +25 -0
  142. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap +18 -0
  143. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Modal.js +63 -0
  144. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js +41 -0
  145. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/modal.scss +20 -0
  146. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js +22 -0
  147. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js +15 -0
  148. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js +12 -0
  149. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap +11 -0
  150. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/index.js +1 -0
  151. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss +12 -0
  152. data/webpack/ForemanInventoryUpload/Components/PageHeader/pageHeader.scss +3 -0
  153. data/webpack/ForemanInventoryUpload/ForemanInventoryConstants.js +9 -0
  154. data/webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js +12 -0
  155. data/webpack/ForemanInventoryUpload/ForemanInventoryUpload.js +16 -8
  156. data/webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js +6 -4
  157. data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/SubscriptionsPageExtensionActions.js +34 -0
  158. data/webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js +12 -0
  159. data/webpack/ForemanInventoryUpload/{ForemanInventoryUpload.test.js → __tests__/ForemanInventoryUpload.test.js} +1 -1
  160. data/webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap +5 -0
  161. data/webpack/ForemanInventoryUpload/{__snapshots__ → __tests__/__snapshots__}/ForemanInventoryUpload.test.js.snap +0 -0
  162. data/webpack/ForemanRhCloudHelpers.js +6 -0
  163. data/webpack/ForemanRhCloudPages.js +7 -0
  164. data/webpack/ForemanRhCloudReducers.js +10 -0
  165. data/webpack/ForemanRhCloudSelectors.js +5 -0
  166. data/webpack/ForemanRhCloudTestHelpers.js +15 -0
  167. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js +33 -0
  168. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js +60 -0
  169. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsConstants.js +10 -0
  170. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsReducer.js +28 -0
  171. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsSelectors.js +6 -0
  172. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettings.test.js +18 -0
  173. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js +46 -0
  174. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js +56 -0
  175. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js +21 -0
  176. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettings.test.js.snap +15 -0
  177. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap +31 -0
  178. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap +33 -0
  179. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsSelectors.test.js.snap +9 -0
  180. data/webpack/InsightsCloudSync/Components/InsightsSettings/index.js +21 -0
  181. data/webpack/InsightsCloudSync/Components/InsightsSettings/insightsSettings.scss +16 -0
  182. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.fixtures.js +1 -0
  183. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.js +45 -0
  184. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/InsightsSyncSwitcher.test.js +17 -0
  185. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/__snapshots__/InsightsSyncSwitcher.test.js.snap +38 -0
  186. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/index.js +1 -0
  187. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/insightsSyncSwitcher.scss +3 -0
  188. data/webpack/InsightsCloudSync/InsightsCloudSync.js +59 -0
  189. data/webpack/InsightsCloudSync/InsightsCloudSync.test.js +16 -0
  190. data/webpack/InsightsCloudSync/InsightsCloudSyncActions.js +23 -0
  191. data/webpack/InsightsCloudSync/InsightsCloudSyncConstants.js +6 -0
  192. data/webpack/InsightsCloudSync/InsightsCloudSyncHelpers.js +3 -0
  193. data/webpack/InsightsCloudSync/InsightsCloudSyncReducers.js +8 -0
  194. data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +65 -0
  195. data/webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js +11 -0
  196. data/webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap +3 -0
  197. data/webpack/InsightsCloudSync/index.js +18 -0
  198. data/webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js +1 -0
  199. data/webpack/__mocks__/foremanReact/constants.js +5 -0
  200. data/webpack/__mocks__/foremanReact/redux/actions/toasts.js +8 -0
  201. data/webpack/__tests__/ForemanRhCloudHelpers.test.js +11 -0
  202. data/webpack/__tests__/ForemanRhCloudSelectors.test.js +22 -0
  203. data/webpack/__tests__/ForemanRhCloudTestHelpers.test.js +20 -0
  204. data/webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap +3 -0
  205. data/webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap +24 -0
  206. data/webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap +36 -0
  207. data/webpack/index.js +3 -6
  208. data/webpack/subscriptions_extension_index.js +8 -0
  209. metadata +166 -7
  210. data/app/controllers/foreman_inventory_upload/react_controller.rb +0 -7
  211. data/webpack/ForemanInventoryUpload/ForemanInventoryUploadSelectors.js +0 -4
@@ -0,0 +1,65 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`InsightsCloudSync render 1`] = `
4
+ <IntlProvider
5
+ locale="en-US"
6
+ >
7
+ <div
8
+ className="insights-cloud-sync"
9
+ >
10
+ <h1>
11
+ Red Hat Insights Sync
12
+ </h1>
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
+ type="fa"
32
+ />
33
+ </a>
34
+ <br />
35
+ 2. Copy the token to 'Red Hat Cloud token' setting:
36
+ <a
37
+ href="www.example.com/settings"
38
+ rel="noopener noreferrer"
39
+ target="_blank"
40
+ >
41
+ Red Hat Cloud token
42
+ <Icon
43
+ name="external-link"
44
+ type="fa"
45
+ />
46
+ </a>
47
+ <br />
48
+ 3. Now you can synchronize recommendations manually using the "Sync now" button.
49
+ </p>
50
+ <div>
51
+ <Button
52
+ active={false}
53
+ block={false}
54
+ bsClass="btn"
55
+ bsStyle="primary"
56
+ disabled={false}
57
+ onClick={[Function]}
58
+ >
59
+ Sync now
60
+ </Button>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </IntlProvider>
65
+ `;
@@ -0,0 +1,11 @@
1
+ import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
2
+ import { insightsCloudUrl } from '../InsightsCloudSyncHelpers';
3
+
4
+ global.URL_PREFIX = '';
5
+
6
+ const fixtures = {
7
+ 'should return insights cloud Url': () => insightsCloudUrl('test_path'),
8
+ };
9
+
10
+ describe('InsightsCloudSync helpers', () =>
11
+ testSelectorsSnapshotWithFixtures(fixtures));
@@ -0,0 +1,3 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`InsightsCloudSync helpers should return insights cloud Url 1`] = `"/insights_cloud/test_path"`;
@@ -0,0 +1,18 @@
1
+ import { bindActionCreators } from 'redux';
2
+ import { connect } from 'react-redux';
3
+
4
+ import * as actions from './InsightsCloudSyncActions';
5
+ import InsightsCloudSync from './InsightsCloudSync';
6
+ import insightsCloudSyncReducers from './InsightsCloudSyncReducers';
7
+
8
+ // map state to props
9
+ const mapStateToProps = state => ({});
10
+
11
+ // map action dispatchers to props
12
+ const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch);
13
+
14
+ // export reducers
15
+ export const reducers = insightsCloudSyncReducers;
16
+
17
+ // export connected component
18
+ export default connect(mapStateToProps, mapDispatchToProps)(InsightsCloudSync);
@@ -0,0 +1 @@
1
+ export const LAYOUT_CHANGE_ORG = 'LAYOUT_CHANGE_ORG';
@@ -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;
@@ -0,0 +1,11 @@
1
+ import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
2
+ import { foremanUrl } from '../ForemanRhCloudHelpers';
3
+
4
+ global.URL_PREFIX = 'MY_TEST_URL_PREFIX.example.com';
5
+
6
+ const fixtures = {
7
+ 'should return foreman Url': () => foremanUrl('/test_path'),
8
+ };
9
+
10
+ describe('ForemanRhCloud helpers', () =>
11
+ testSelectorsSnapshotWithFixtures(fixtures));
@@ -0,0 +1,22 @@
1
+ import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
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));
@@ -0,0 +1,20 @@
1
+ import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
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));
@@ -0,0 +1,3 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`ForemanRhCloud helpers should return foreman Url 1`] = `"MY_TEST_URL_PREFIX.example.com/test_path"`;
@@ -0,0 +1,24 @@
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
+ "inventoryUpload": Object {
15
+ "inventoryChild": Object {},
16
+ },
17
+ }
18
+ `;
19
+
20
+ exports[`ForemanRhCloud selectors should return InsightsCloudSync 1`] = `
21
+ Object {
22
+ "insightsChild": Object {},
23
+ }
24
+ `;
@@ -0,0 +1,36 @@
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
+ "inventoryUpload": Object {},
10
+ },
11
+ }
12
+ `;
13
+
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`] = `
26
+ Object {
27
+ "ForemanRhCloud": Object {
28
+ "InsightsCloudSync": Object {
29
+ "insightsChild": Object {},
30
+ },
31
+ "inventoryUpload": Object {
32
+ "inventoryChild": Object {},
33
+ },
34
+ },
35
+ }
36
+ `;
@@ -3,8 +3,8 @@
3
3
  /* eslint-disable import/extensions */
4
4
  import componentRegistry from 'foremanReact/components/componentRegistry';
5
5
  import { registerReducer } from 'foremanReact/common/MountingService';
6
- import reducers from './ForemanInventoryUpload/ForemanInventoryUploadReducers';
7
- import ForemanInventoryUpload from './ForemanInventoryUpload';
6
+ import reducers from './ForemanRhCloudReducers';
7
+ import pages from './ForemanRhCloudPages';
8
8
 
9
9
  // register reducers
10
10
  Object.entries(reducers).forEach(([key, reducer]) =>
@@ -12,7 +12,4 @@ Object.entries(reducers).forEach(([key, reducer]) =>
12
12
  );
13
13
 
14
14
  // register components
15
- componentRegistry.register({
16
- name: 'ForemanInventoryUpload',
17
- type: ForemanInventoryUpload,
18
- });
15
+ pages.forEach(page => componentRegistry.register(page));
@@ -0,0 +1,8 @@
1
+ import { subscriptionCountListener } from './ForemanInventoryUpload/SubscriptionsPageExtension/SubscriptionsPageExtensionActions';
2
+
3
+ if (window.location.pathname === '/subscriptions') {
4
+ window.tfm.store.observeStore(
5
+ 'katello.subscriptions.itemCount',
6
+ subscriptionCountListener
7
+ );
8
+ }
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: 0.9.5
4
+ version: 0.9.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-04-07 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
@@ -77,14 +77,28 @@ files:
77
77
  - README.md
78
78
  - Rakefile
79
79
  - app/controllers/foreman_inventory_upload/accounts_controller.rb
80
- - app/controllers/foreman_inventory_upload/react_controller.rb
81
80
  - app/controllers/foreman_inventory_upload/reports_controller.rb
81
+ - app/controllers/foreman_inventory_upload/tasks_controller.rb
82
82
  - app/controllers/foreman_inventory_upload/uploads_controller.rb
83
+ - app/controllers/foreman_rh_cloud/react_controller.rb
84
+ - app/controllers/insights_cloud/settings_controller.rb
85
+ - app/controllers/insights_cloud/tasks_controller.rb
83
86
  - app/helpers/foreman_inventory_upload_helper.rb
87
+ - app/helpers/foreman_inventory_upload_host_helper.rb
88
+ - app/models/insights_facet.rb
89
+ - app/models/insights_hit.rb
90
+ - app/models/inventory_sync/inventory_status.rb
84
91
  - app/models/setting/rh_cloud.rb
85
- - app/views/foreman_inventory_upload/layouts/react.html.erb
92
+ - app/overrides/hosts_list.rb
93
+ - app/views/foreman_rh_cloud/react/insights_cloud.html.erb
94
+ - app/views/foreman_rh_cloud/react/inventory_upload.html.erb
95
+ - app/views/layouts/foreman_rh_cloud/application.html.erb
86
96
  - config/routes.rb
97
+ - db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb
98
+ - db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb
99
+ - db/migrate/20200727111529_add_uuid_column_to_insights_facets.foreman_rh_cloud.rb
87
100
  - lib/foreman_inventory_upload.rb
101
+ - lib/foreman_inventory_upload/async/async_helpers.rb
88
102
  - lib/foreman_inventory_upload/async/generate_all_reports_job.rb
89
103
  - lib/foreman_inventory_upload/async/generate_report_job.rb
90
104
  - lib/foreman_inventory_upload/async/progress_output.rb
@@ -97,10 +111,16 @@ files:
97
111
  - lib/foreman_inventory_upload/generators/metadata.rb
98
112
  - lib/foreman_inventory_upload/generators/queries.rb
99
113
  - lib/foreman_inventory_upload/generators/slice.rb
114
+ - lib/foreman_inventory_upload/notifications/manifest_import_success_notification_override.rb
100
115
  - lib/foreman_inventory_upload/scripts/uploader.sh.erb
101
116
  - lib/foreman_rh_cloud.rb
102
117
  - lib/foreman_rh_cloud/engine.rb
103
118
  - lib/foreman_rh_cloud/version.rb
119
+ - lib/insights_cloud.rb
120
+ - lib/insights_cloud/async/insights_full_sync.rb
121
+ - lib/insights_cloud/async/insights_scheduled_sync.rb
122
+ - lib/inventory_sync/async/host_result.rb
123
+ - lib/inventory_sync/async/inventory_full_sync.rb
104
124
  - lib/tasks/foreman_rh_cloud_tasks.rake
105
125
  - lib/tasks/generator.rake
106
126
  - locale/Makefile
@@ -109,11 +129,17 @@ files:
109
129
  - locale/gemspec.rb
110
130
  - package.json
111
131
  - test/controllers/accounts_controller_test.rb
132
+ - test/controllers/insights_sync/settings_controller_test.rb
112
133
  - test/controllers/reports_controller_test.rb
113
134
  - test/controllers/uploads_controller_test.rb
135
+ - test/factories/insights_factories.rb
114
136
  - test/factories/inventory_upload_factories.rb
137
+ - test/jobs/insights_full_sync_test.rb
138
+ - test/jobs/inventory_full_sync_test.rb
115
139
  - test/test_plugin_helper.rb
116
140
  - test/unit/archived_report_generator_test.rb
141
+ - test/unit/fact_helpers_test.rb
142
+ - test/unit/insights_facet_test.rb
117
143
  - test/unit/metadata_generator_test.rb
118
144
  - test/unit/shell_process_job_test.rb
119
145
  - test/unit/slice_generator_test.rb
@@ -125,6 +151,11 @@ files:
125
151
  - webpack/ForemanInventoryUpload/Components/AccountList/AccountListHelper.js
126
152
  - webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js
127
153
  - webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js
154
+ - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/EmptyResults.js
155
+ - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js
156
+ - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap
157
+ - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/emptyResults.scss
158
+ - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/index.js
128
159
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.fixtures.js
129
160
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.js
130
161
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyStateHelper.js
@@ -155,6 +186,7 @@ files:
155
186
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/listItemStatus.scss
156
187
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js
157
188
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js
189
+ - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
158
190
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js
159
191
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js
160
192
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
@@ -207,6 +239,41 @@ files:
207
239
  - webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/__snapshots__/FullScreenModal.test.js.snap
208
240
  - webpack/ForemanInventoryUpload/Components/FullScreenModal/fullScreenModal.scss
209
241
  - webpack/ForemanInventoryUpload/Components/FullScreenModal/index.js
242
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js
243
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
244
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js
245
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js
246
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcher.test.js
247
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js
248
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcher.test.js.snap
249
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap
250
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss
251
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/index.js
252
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
253
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js
254
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.fixtures.js
255
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.js
256
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterActions.js
257
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterConstants.js
258
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterReducer.js
259
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterSelectors.js
260
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilter.test.js
261
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterActions.test.js
262
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
263
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js
264
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilter.test.js.snap
265
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterActions.test.js.snap
266
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap
267
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterSelectors.test.js.snap
268
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap
269
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js
270
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js
271
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss
272
+ - webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js
273
+ - webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettings.test.js
274
+ - webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap
275
+ - webpack/ForemanInventoryUpload/Components/InventorySettings/index.js
276
+ - webpack/ForemanInventoryUpload/Components/InventorySettings/inventorySettings.scss
210
277
  - webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js
211
278
  - webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js
212
279
  - webpack/ForemanInventoryUpload/Components/NavContainer/NavContainerHelper.js
@@ -217,7 +284,43 @@ files:
217
284
  - webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js
218
285
  - webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageHeader.test.js
219
286
  - webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap
287
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/DocsButton.js
288
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/DocsButton.test.js
289
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/__snapshots__/DocsButton.test.js.snap
290
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/index.js
291
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/HistoryButton.js
292
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/HistoryButton.test.js
293
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/__snapshots__/HistoryButton.test.js.snap
294
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/index.js
295
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js
296
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js
297
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap
298
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/index.js
299
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js
300
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js
301
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonConstants.js
302
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonReducer.js
303
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonSelectors.js
304
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js
305
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonActions.test.js
306
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonFixtures.js
307
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
308
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
309
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap
310
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
311
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonReducer.test.js.snap
312
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap
313
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Modal.js
314
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
315
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/modal.scss
316
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
317
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js
318
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js
319
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap
320
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/index.js
321
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss
220
322
  - webpack/ForemanInventoryUpload/Components/PageHeader/index.js
323
+ - webpack/ForemanInventoryUpload/Components/PageHeader/pageHeader.scss
221
324
  - webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.fixtures.js
222
325
  - webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
223
326
  - webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerateHelper.js
@@ -281,15 +384,64 @@ files:
281
384
  - webpack/ForemanInventoryUpload/Components/Terminal/__tests__/__snapshots__/Terminal.test.js.snap
282
385
  - webpack/ForemanInventoryUpload/Components/Terminal/index.js
283
386
  - webpack/ForemanInventoryUpload/Components/Terminal/terminal.scss
387
+ - webpack/ForemanInventoryUpload/ForemanInventoryConstants.js
388
+ - webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
284
389
  - webpack/ForemanInventoryUpload/ForemanInventoryUpload.js
285
- - webpack/ForemanInventoryUpload/ForemanInventoryUpload.test.js
286
390
  - webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js
287
- - webpack/ForemanInventoryUpload/ForemanInventoryUploadSelectors.js
288
- - webpack/ForemanInventoryUpload/__snapshots__/ForemanInventoryUpload.test.js.snap
391
+ - webpack/ForemanInventoryUpload/SubscriptionsPageExtension/SubscriptionsPageExtensionActions.js
392
+ - webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js
393
+ - webpack/ForemanInventoryUpload/__tests__/ForemanInventoryUpload.test.js
394
+ - webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap
395
+ - webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryUpload.test.js.snap
289
396
  - webpack/ForemanInventoryUpload/index.js
397
+ - webpack/ForemanRhCloudHelpers.js
398
+ - webpack/ForemanRhCloudPages.js
399
+ - webpack/ForemanRhCloudReducers.js
400
+ - webpack/ForemanRhCloudSelectors.js
401
+ - webpack/ForemanRhCloudTestHelpers.js
402
+ - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
403
+ - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js
404
+ - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsConstants.js
405
+ - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsReducer.js
406
+ - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsSelectors.js
407
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettings.test.js
408
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js
409
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
410
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
411
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettings.test.js.snap
412
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap
413
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap
414
+ - webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsSelectors.test.js.snap
415
+ - webpack/InsightsCloudSync/Components/InsightsSettings/index.js
416
+ - webpack/InsightsCloudSync/Components/InsightsSettings/insightsSettings.scss
417
+ - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.fixtures.js
418
+ - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.js
419
+ - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/InsightsSyncSwitcher.test.js
420
+ - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/__snapshots__/InsightsSyncSwitcher.test.js.snap
421
+ - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/index.js
422
+ - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/insightsSyncSwitcher.scss
423
+ - webpack/InsightsCloudSync/InsightsCloudSync.js
424
+ - webpack/InsightsCloudSync/InsightsCloudSync.test.js
425
+ - webpack/InsightsCloudSync/InsightsCloudSyncActions.js
426
+ - webpack/InsightsCloudSync/InsightsCloudSyncConstants.js
427
+ - webpack/InsightsCloudSync/InsightsCloudSyncHelpers.js
428
+ - webpack/InsightsCloudSync/InsightsCloudSyncReducers.js
429
+ - webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap
430
+ - webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js
431
+ - webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap
432
+ - webpack/InsightsCloudSync/index.js
290
433
  - webpack/__mocks__/foremanReact/API.js
291
434
  - webpack/__mocks__/foremanReact/common/I18n.js
292
435
  - webpack/__mocks__/foremanReact/common/helpers.js
436
+ - webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js
437
+ - webpack/__mocks__/foremanReact/constants.js
438
+ - webpack/__mocks__/foremanReact/redux/actions/toasts.js
439
+ - webpack/__tests__/ForemanRhCloudHelpers.test.js
440
+ - webpack/__tests__/ForemanRhCloudSelectors.test.js
441
+ - webpack/__tests__/ForemanRhCloudTestHelpers.test.js
442
+ - webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap
443
+ - webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap
444
+ - webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap
293
445
  - webpack/index.js
294
446
  - webpack/stories/ForemanInventoryUploadReducers.js
295
447
  - webpack/stories/configureStore.js
@@ -297,6 +449,7 @@ files:
297
449
  - webpack/stories/decorators/withCardsDecorator.js
298
450
  - webpack/stories/index.js
299
451
  - webpack/stories/index.scss
452
+ - webpack/subscriptions_extension_index.js
300
453
  - webpack/test_setup.js
301
454
  homepage: https://github.com/theforeman/foreman_rh_cloud
302
455
  licenses:
@@ -323,11 +476,17 @@ specification_version: 4
323
476
  summary: Summary of ForemanRhCloud.
324
477
  test_files:
325
478
  - test/controllers/uploads_controller_test.rb
479
+ - test/controllers/insights_sync/settings_controller_test.rb
326
480
  - test/controllers/accounts_controller_test.rb
327
481
  - test/controllers/reports_controller_test.rb
328
482
  - test/test_plugin_helper.rb
483
+ - test/jobs/insights_full_sync_test.rb
484
+ - test/jobs/inventory_full_sync_test.rb
329
485
  - test/factories/inventory_upload_factories.rb
486
+ - test/factories/insights_factories.rb
330
487
  - test/unit/shell_process_job_test.rb
331
488
  - test/unit/metadata_generator_test.rb
489
+ - test/unit/insights_facet_test.rb
490
+ - test/unit/fact_helpers_test.rb
332
491
  - test/unit/archived_report_generator_test.rb
333
492
  - test/unit/slice_generator_test.rb