foreman_rh_cloud 2.0.5 → 2.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -0
  3. data/app/controllers/foreman_inventory_upload/accounts_controller.rb +4 -6
  4. data/app/controllers/foreman_inventory_upload/tasks_controller.rb +25 -0
  5. data/app/controllers/foreman_inventory_upload/uploads_controller.rb +22 -3
  6. data/app/controllers/foreman_rh_cloud/react_controller.rb +11 -0
  7. data/app/controllers/insights_cloud/settings_controller.rb +24 -0
  8. data/app/controllers/insights_cloud/tasks_controller.rb +7 -0
  9. data/app/helpers/foreman_inventory_upload_host_helper.rb +20 -0
  10. data/app/models/insights_facet.rb +7 -0
  11. data/app/models/insights_hit.rb +6 -0
  12. data/app/models/inventory_sync/inventory_status.rb +30 -0
  13. data/app/models/setting/rh_cloud.rb +4 -1
  14. data/app/overrides/hosts_list.rb +13 -0
  15. data/app/views/foreman_rh_cloud/react/insights_cloud.html.erb +6 -0
  16. data/app/views/foreman_rh_cloud/react/inventory_upload.html.erb +1 -0
  17. data/app/views/{foreman_inventory_upload/layouts/react.html.erb → layouts/foreman_rh_cloud/application.html.erb} +2 -2
  18. data/config/routes.rb +14 -1
  19. data/db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb +14 -0
  20. data/db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb +7 -0
  21. data/db/migrate/20200727111529_add_uuid_column_to_insights_facets.foreman_rh_cloud.rb +5 -0
  22. data/lib/foreman_inventory_upload.rb +4 -0
  23. data/lib/foreman_inventory_upload/async/async_helpers.rb +13 -0
  24. data/lib/foreman_inventory_upload/async/shell_process.rb +9 -1
  25. data/lib/foreman_inventory_upload/async/upload_report_job.rb +30 -2
  26. data/lib/foreman_inventory_upload/generators/fact_helpers.rb +56 -0
  27. data/lib/foreman_inventory_upload/generators/json_stream.rb +10 -0
  28. data/lib/foreman_inventory_upload/generators/queries.rb +6 -0
  29. data/lib/foreman_inventory_upload/generators/slice.rb +54 -22
  30. data/lib/foreman_inventory_upload/notifications/manifest_import_success_notification_override.rb +19 -0
  31. data/lib/foreman_inventory_upload/scripts/uploader.sh.erb +1 -1
  32. data/lib/foreman_rh_cloud.rb +13 -0
  33. data/lib/foreman_rh_cloud/engine.rb +34 -5
  34. data/lib/foreman_rh_cloud/version.rb +1 -1
  35. data/lib/insights_cloud.rb +15 -0
  36. data/lib/insights_cloud/async/insights_full_sync.rb +103 -0
  37. data/lib/insights_cloud/async/insights_scheduled_sync.rb +23 -0
  38. data/lib/inventory_sync/async/host_result.rb +50 -0
  39. data/lib/inventory_sync/async/inventory_full_sync.rb +99 -0
  40. data/test/controllers/insights_sync/settings_controller_test.rb +30 -0
  41. data/test/factories/insights_factories.rb +31 -0
  42. data/test/jobs/insights_full_sync_test.rb +94 -0
  43. data/test/jobs/inventory_full_sync_test.rb +91 -0
  44. data/test/unit/archived_report_generator_test.rb +1 -0
  45. data/test/unit/fact_helpers_test.rb +29 -0
  46. data/test/unit/insights_facet_test.rb +16 -0
  47. data/test/unit/slice_generator_test.rb +252 -25
  48. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js +14 -2
  49. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.js +13 -10
  50. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListActions.js +6 -3
  51. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListHelper.js +10 -0
  52. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js +11 -1
  53. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js +10 -1
  54. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/EmptyResults.js +15 -0
  55. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js +13 -0
  56. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap +18 -0
  57. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/emptyResults.scss +7 -0
  58. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/index.js +1 -0
  59. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItem.js +1 -4
  60. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js +1 -0
  61. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js +8 -1
  62. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js +12 -0
  63. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js +1 -1
  64. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js +13 -0
  65. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js +12 -8
  66. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountList.test.js.snap +2 -3
  67. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListActions.test.js.snap +21 -2
  68. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListReducer.test.js.snap +11 -0
  69. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListSelectors.test.js.snap +3 -0
  70. data/webpack/ForemanInventoryUpload/Components/AccountList/index.js +2 -0
  71. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcher.js +6 -6
  72. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcherActions.js +4 -1
  73. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/__snapshots__/AutoUploadSwitcher.test.js.snap +9 -9
  74. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/autoUploadSwitcher.scss +1 -1
  75. data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardActions.js +4 -3
  76. data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardSelectors.js +1 -1
  77. data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardActions.test.js +2 -3
  78. data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardIntegration.test.js +1 -1
  79. data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js +3 -2
  80. data/webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js +5 -1
  81. data/webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/__snapshots__/FullScreenModal.test.js.snap +1 -0
  82. data/webpack/ForemanInventoryUpload/Components/FullScreenModal/fullScreenModal.scss +15 -13
  83. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js +1 -0
  84. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js +29 -0
  85. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js +30 -0
  86. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js +3 -0
  87. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcher.test.js +14 -0
  88. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js +14 -0
  89. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcher.test.js.snap +38 -0
  90. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap +14 -0
  91. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss +0 -0
  92. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/index.js +20 -0
  93. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js +26 -0
  94. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js +1 -0
  95. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.fixtures.js +2 -0
  96. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.js +39 -0
  97. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterActions.js +16 -0
  98. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterConstants.js +3 -0
  99. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterReducer.js +36 -0
  100. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterSelectors.js +7 -0
  101. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilter.test.js +14 -0
  102. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterActions.test.js +14 -0
  103. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js +35 -0
  104. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js +21 -0
  105. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilter.test.js.snap +25 -0
  106. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterActions.test.js.snap +17 -0
  107. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap +25 -0
  108. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterSelectors.test.js.snap +9 -0
  109. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap +37 -0
  110. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js +18 -0
  111. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js +17 -0
  112. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss +28 -0
  113. data/webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js +15 -0
  114. data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettings.test.js +13 -0
  115. data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap +13 -0
  116. data/webpack/ForemanInventoryUpload/Components/InventorySettings/index.js +1 -0
  117. data/webpack/ForemanInventoryUpload/Components/InventorySettings/inventorySettings.scss +15 -0
  118. data/webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js +25 -6
  119. data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap +33 -5
  120. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/DocsButton.js +18 -0
  121. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/DocsButton.test.js +12 -0
  122. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/__snapshots__/DocsButton.test.js.snap +21 -0
  123. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/index.js +1 -0
  124. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/HistoryButton.js +19 -0
  125. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/HistoryButton.test.js +12 -0
  126. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/__snapshots__/HistoryButton.test.js.snap +22 -0
  127. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/index.js +1 -0
  128. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js +24 -0
  129. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js +11 -0
  130. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap +17 -0
  131. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/index.js +1 -0
  132. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js +52 -0
  133. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js +59 -0
  134. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonConstants.js +3 -0
  135. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonReducer.js +36 -0
  136. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonSelectors.js +13 -0
  137. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js +13 -0
  138. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonActions.test.js +13 -0
  139. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonFixtures.js +9 -0
  140. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js +33 -0
  141. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js +36 -0
  142. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap +26 -0
  143. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap +36 -0
  144. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonReducer.test.js.snap +25 -0
  145. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap +18 -0
  146. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Modal.js +63 -0
  147. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js +41 -0
  148. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/modal.scss +20 -0
  149. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js +22 -0
  150. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js +15 -0
  151. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js +12 -0
  152. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap +11 -0
  153. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/index.js +1 -0
  154. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss +12 -0
  155. data/webpack/ForemanInventoryUpload/Components/PageHeader/pageHeader.scss +3 -0
  156. data/webpack/ForemanInventoryUpload/ForemanInventoryConstants.js +9 -0
  157. data/webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js +17 -0
  158. data/webpack/ForemanInventoryUpload/ForemanInventoryUpload.js +16 -8
  159. data/webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js +6 -4
  160. data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/SubscriptionsPageExtensionActions.js +34 -0
  161. data/webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js +10 -0
  162. data/webpack/ForemanInventoryUpload/{ForemanInventoryUpload.test.js → __tests__/ForemanInventoryUpload.test.js} +1 -1
  163. data/webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap +5 -0
  164. data/webpack/ForemanInventoryUpload/{__snapshots__ → __tests__/__snapshots__}/ForemanInventoryUpload.test.js.snap +0 -0
  165. data/webpack/ForemanRhCloudHelpers.js +6 -0
  166. data/webpack/ForemanRhCloudPages.js +7 -0
  167. data/webpack/ForemanRhCloudReducers.js +10 -0
  168. data/webpack/ForemanRhCloudSelectors.js +5 -0
  169. data/webpack/ForemanRhCloudTestHelpers.js +15 -0
  170. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js +33 -0
  171. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js +60 -0
  172. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsConstants.js +10 -0
  173. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsReducer.js +28 -0
  174. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsSelectors.js +6 -0
  175. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettings.test.js +18 -0
  176. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js +46 -0
  177. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js +56 -0
  178. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js +21 -0
  179. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettings.test.js.snap +15 -0
  180. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap +31 -0
  181. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap +33 -0
  182. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsSelectors.test.js.snap +9 -0
  183. data/webpack/InsightsCloudSync/Components/InsightsSettings/index.js +21 -0
  184. data/webpack/InsightsCloudSync/Components/InsightsSettings/insightsSettings.scss +16 -0
  185. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.fixtures.js +1 -0
  186. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.js +45 -0
  187. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/InsightsSyncSwitcher.test.js +17 -0
  188. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/__snapshots__/InsightsSyncSwitcher.test.js.snap +38 -0
  189. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/index.js +1 -0
  190. data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/insightsSyncSwitcher.scss +3 -0
  191. data/webpack/InsightsCloudSync/InsightsCloudSync.js +59 -0
  192. data/webpack/InsightsCloudSync/InsightsCloudSync.test.js +16 -0
  193. data/webpack/InsightsCloudSync/InsightsCloudSyncActions.js +23 -0
  194. data/webpack/InsightsCloudSync/InsightsCloudSyncConstants.js +6 -0
  195. data/webpack/InsightsCloudSync/InsightsCloudSyncHelpers.js +3 -0
  196. data/webpack/InsightsCloudSync/InsightsCloudSyncReducers.js +8 -0
  197. data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +67 -0
  198. data/webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js +9 -0
  199. data/webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap +3 -0
  200. data/webpack/InsightsCloudSync/index.js +18 -0
  201. data/webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js +1 -0
  202. data/webpack/__mocks__/foremanReact/constants.js +5 -0
  203. data/webpack/__mocks__/foremanReact/redux/actions/toasts.js +8 -0
  204. data/webpack/__tests__/ForemanRhCloudHelpers.test.js +11 -0
  205. data/webpack/__tests__/ForemanRhCloudSelectors.test.js +22 -0
  206. data/webpack/__tests__/ForemanRhCloudTestHelpers.test.js +20 -0
  207. data/webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap +3 -0
  208. data/webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap +24 -0
  209. data/webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap +36 -0
  210. data/webpack/index.js +3 -6
  211. data/webpack/subscriptions_extension_index.js +8 -0
  212. metadata +166 -7
  213. data/app/controllers/foreman_inventory_upload/react_controller.rb +0 -7
  214. data/webpack/ForemanInventoryUpload/ForemanInventoryUploadSelectors.js +0 -4
@@ -0,0 +1,67 @@
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
+ 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>
64
+ </div>
65
+ </div>
66
+ </IntlProvider>
67
+ `;
@@ -0,0 +1,9 @@
1
+ import { testSelectorsSnapshotWithFixtures } from '@theforeman/test';
2
+ import { insightsCloudUrl } from '../InsightsCloudSyncHelpers';
3
+
4
+ const fixtures = {
5
+ 'should return insights cloud Url': () => insightsCloudUrl('test_path'),
6
+ };
7
+
8
+ describe('InsightsCloudSync helpers', () =>
9
+ 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 '@theforeman/test';
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 '@theforeman/test';
2
+ import { rhCloudStateWrapper } from '../ForemanRhCloudTestHelpers';
3
+ import {
4
+ selectForemanRhCloud,
5
+ selectForemanInventoryUpload,
6
+ selectInsightsCloudSync,
7
+ } from '../ForemanRhCloudSelectors';
8
+
9
+ const state = rhCloudStateWrapper(
10
+ { inventoryChild: {} },
11
+ { insightsChild: {} }
12
+ );
13
+
14
+ const fixtures = {
15
+ 'should return ForemanRhCloud': () => selectForemanRhCloud(state),
16
+ 'should return ForemanInventoryUpload': () =>
17
+ selectForemanInventoryUpload(state),
18
+ 'should return InsightsCloudSync': () => selectInsightsCloudSync(state),
19
+ };
20
+
21
+ describe('ForemanRhCloud selectors', () =>
22
+ testSelectorsSnapshotWithFixtures(fixtures));
@@ -0,0 +1,20 @@
1
+ import { testSelectorsSnapshotWithFixtures } from '@theforeman/test';
2
+ import {
3
+ rhCloudStateWrapper,
4
+ inventoryStateWrapper,
5
+ insightsStateWrapper,
6
+ } from '../ForemanRhCloudTestHelpers';
7
+
8
+ const fixtures = {
9
+ 'should return rhCloud wrapper': () =>
10
+ rhCloudStateWrapper({ inventoryChild: {} }, { insightsChild: {} }),
11
+
12
+ 'should return inventory wrapper': () =>
13
+ inventoryStateWrapper({ inventoryChild: {} }),
14
+
15
+ 'should return insights wrapper': () =>
16
+ insightsStateWrapper({ insightsChild: {} }),
17
+ };
18
+
19
+ describe('ForemanRhCloud helpers', () =>
20
+ testSelectorsSnapshotWithFixtures(fixtures));
@@ -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: 2.0.5
4
+ version: 2.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-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
@@ -105,14 +105,28 @@ files:
105
105
  - README.md
106
106
  - Rakefile
107
107
  - app/controllers/foreman_inventory_upload/accounts_controller.rb
108
- - app/controllers/foreman_inventory_upload/react_controller.rb
109
108
  - app/controllers/foreman_inventory_upload/reports_controller.rb
109
+ - app/controllers/foreman_inventory_upload/tasks_controller.rb
110
110
  - app/controllers/foreman_inventory_upload/uploads_controller.rb
111
+ - app/controllers/foreman_rh_cloud/react_controller.rb
112
+ - app/controllers/insights_cloud/settings_controller.rb
113
+ - app/controllers/insights_cloud/tasks_controller.rb
111
114
  - app/helpers/foreman_inventory_upload_helper.rb
115
+ - app/helpers/foreman_inventory_upload_host_helper.rb
116
+ - app/models/insights_facet.rb
117
+ - app/models/insights_hit.rb
118
+ - app/models/inventory_sync/inventory_status.rb
112
119
  - app/models/setting/rh_cloud.rb
113
- - app/views/foreman_inventory_upload/layouts/react.html.erb
120
+ - app/overrides/hosts_list.rb
121
+ - app/views/foreman_rh_cloud/react/insights_cloud.html.erb
122
+ - app/views/foreman_rh_cloud/react/inventory_upload.html.erb
123
+ - app/views/layouts/foreman_rh_cloud/application.html.erb
114
124
  - config/routes.rb
125
+ - db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb
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
115
128
  - lib/foreman_inventory_upload.rb
129
+ - lib/foreman_inventory_upload/async/async_helpers.rb
116
130
  - lib/foreman_inventory_upload/async/generate_all_reports_job.rb
117
131
  - lib/foreman_inventory_upload/async/generate_report_job.rb
118
132
  - lib/foreman_inventory_upload/async/progress_output.rb
@@ -125,10 +139,16 @@ files:
125
139
  - lib/foreman_inventory_upload/generators/metadata.rb
126
140
  - lib/foreman_inventory_upload/generators/queries.rb
127
141
  - lib/foreman_inventory_upload/generators/slice.rb
142
+ - lib/foreman_inventory_upload/notifications/manifest_import_success_notification_override.rb
128
143
  - lib/foreman_inventory_upload/scripts/uploader.sh.erb
129
144
  - lib/foreman_rh_cloud.rb
130
145
  - lib/foreman_rh_cloud/engine.rb
131
146
  - lib/foreman_rh_cloud/version.rb
147
+ - lib/insights_cloud.rb
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
132
152
  - lib/tasks/foreman_rh_cloud_tasks.rake
133
153
  - lib/tasks/generator.rake
134
154
  - locale/Makefile
@@ -137,11 +157,17 @@ files:
137
157
  - locale/gemspec.rb
138
158
  - package.json
139
159
  - test/controllers/accounts_controller_test.rb
160
+ - test/controllers/insights_sync/settings_controller_test.rb
140
161
  - test/controllers/reports_controller_test.rb
141
162
  - test/controllers/uploads_controller_test.rb
163
+ - test/factories/insights_factories.rb
142
164
  - test/factories/inventory_upload_factories.rb
165
+ - test/jobs/insights_full_sync_test.rb
166
+ - test/jobs/inventory_full_sync_test.rb
143
167
  - test/test_plugin_helper.rb
144
168
  - test/unit/archived_report_generator_test.rb
169
+ - test/unit/fact_helpers_test.rb
170
+ - test/unit/insights_facet_test.rb
145
171
  - test/unit/metadata_generator_test.rb
146
172
  - test/unit/shell_process_job_test.rb
147
173
  - test/unit/slice_generator_test.rb
@@ -153,6 +179,11 @@ files:
153
179
  - webpack/ForemanInventoryUpload/Components/AccountList/AccountListHelper.js
154
180
  - webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js
155
181
  - webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js
182
+ - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/EmptyResults.js
183
+ - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js
184
+ - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap
185
+ - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/emptyResults.scss
186
+ - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/index.js
156
187
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.fixtures.js
157
188
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.js
158
189
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyStateHelper.js
@@ -183,6 +214,7 @@ files:
183
214
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/listItemStatus.scss
184
215
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js
185
216
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js
217
+ - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
186
218
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js
187
219
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js
188
220
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
@@ -235,6 +267,41 @@ files:
235
267
  - webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/__snapshots__/FullScreenModal.test.js.snap
236
268
  - webpack/ForemanInventoryUpload/Components/FullScreenModal/fullScreenModal.scss
237
269
  - webpack/ForemanInventoryUpload/Components/FullScreenModal/index.js
270
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js
271
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
272
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js
273
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js
274
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcher.test.js
275
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js
276
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcher.test.js.snap
277
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap
278
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss
279
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/index.js
280
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
281
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js
282
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.fixtures.js
283
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.js
284
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterActions.js
285
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterConstants.js
286
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterReducer.js
287
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterSelectors.js
288
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilter.test.js
289
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterActions.test.js
290
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
291
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js
292
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilter.test.js.snap
293
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterActions.test.js.snap
294
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap
295
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterSelectors.test.js.snap
296
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap
297
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js
298
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js
299
+ - webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss
300
+ - webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js
301
+ - webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettings.test.js
302
+ - webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap
303
+ - webpack/ForemanInventoryUpload/Components/InventorySettings/index.js
304
+ - webpack/ForemanInventoryUpload/Components/InventorySettings/inventorySettings.scss
238
305
  - webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js
239
306
  - webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js
240
307
  - webpack/ForemanInventoryUpload/Components/NavContainer/NavContainerHelper.js
@@ -245,7 +312,43 @@ files:
245
312
  - webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js
246
313
  - webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageHeader.test.js
247
314
  - webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap
315
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/DocsButton.js
316
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/DocsButton.test.js
317
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/__snapshots__/DocsButton.test.js.snap
318
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/index.js
319
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/HistoryButton.js
320
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/HistoryButton.test.js
321
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/__snapshots__/HistoryButton.test.js.snap
322
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/index.js
323
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js
324
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js
325
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap
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
345
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js
346
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js
347
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap
348
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/index.js
349
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss
248
350
  - webpack/ForemanInventoryUpload/Components/PageHeader/index.js
351
+ - webpack/ForemanInventoryUpload/Components/PageHeader/pageHeader.scss
249
352
  - webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.fixtures.js
250
353
  - webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
251
354
  - webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerateHelper.js
@@ -309,16 +412,66 @@ files:
309
412
  - webpack/ForemanInventoryUpload/Components/Terminal/__tests__/__snapshots__/Terminal.test.js.snap
310
413
  - webpack/ForemanInventoryUpload/Components/Terminal/index.js
311
414
  - webpack/ForemanInventoryUpload/Components/Terminal/terminal.scss
415
+ - webpack/ForemanInventoryUpload/ForemanInventoryConstants.js
416
+ - webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
312
417
  - webpack/ForemanInventoryUpload/ForemanInventoryUpload.js
313
- - webpack/ForemanInventoryUpload/ForemanInventoryUpload.test.js
314
418
  - webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js
315
- - webpack/ForemanInventoryUpload/ForemanInventoryUploadSelectors.js
316
- - webpack/ForemanInventoryUpload/__snapshots__/ForemanInventoryUpload.test.js.snap
419
+ - webpack/ForemanInventoryUpload/SubscriptionsPageExtension/SubscriptionsPageExtensionActions.js
420
+ - webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js
421
+ - webpack/ForemanInventoryUpload/__tests__/ForemanInventoryUpload.test.js
422
+ - webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap
423
+ - webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryUpload.test.js.snap
317
424
  - webpack/ForemanInventoryUpload/index.js
425
+ - webpack/ForemanRhCloudHelpers.js
426
+ - webpack/ForemanRhCloudPages.js
427
+ - webpack/ForemanRhCloudReducers.js
428
+ - webpack/ForemanRhCloudSelectors.js
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
451
+ - webpack/InsightsCloudSync/InsightsCloudSync.js
452
+ - webpack/InsightsCloudSync/InsightsCloudSync.test.js
453
+ - webpack/InsightsCloudSync/InsightsCloudSyncActions.js
454
+ - webpack/InsightsCloudSync/InsightsCloudSyncConstants.js
455
+ - webpack/InsightsCloudSync/InsightsCloudSyncHelpers.js
456
+ - webpack/InsightsCloudSync/InsightsCloudSyncReducers.js
457
+ - webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap
458
+ - webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js
459
+ - webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap
460
+ - webpack/InsightsCloudSync/index.js
318
461
  - webpack/__mocks__/foremanReact/API.js
319
462
  - webpack/__mocks__/foremanReact/common/I18n.js
320
463
  - webpack/__mocks__/foremanReact/common/helpers.js
464
+ - webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js
465
+ - webpack/__mocks__/foremanReact/constants.js
466
+ - webpack/__mocks__/foremanReact/redux/actions/toasts.js
467
+ - webpack/__tests__/ForemanRhCloudHelpers.test.js
468
+ - webpack/__tests__/ForemanRhCloudSelectors.test.js
469
+ - webpack/__tests__/ForemanRhCloudTestHelpers.test.js
470
+ - webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap
471
+ - webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap
472
+ - webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap
321
473
  - webpack/index.js
474
+ - webpack/subscriptions_extension_index.js
322
475
  homepage: https://github.com/theforeman/foreman_rh_cloud
323
476
  licenses:
324
477
  - GPL-3.0
@@ -344,11 +497,17 @@ specification_version: 4
344
497
  summary: Summary of ForemanRhCloud.
345
498
  test_files:
346
499
  - test/controllers/uploads_controller_test.rb
500
+ - test/controllers/insights_sync/settings_controller_test.rb
347
501
  - test/controllers/accounts_controller_test.rb
348
502
  - test/controllers/reports_controller_test.rb
349
503
  - test/test_plugin_helper.rb
504
+ - test/jobs/insights_full_sync_test.rb
505
+ - test/jobs/inventory_full_sync_test.rb
350
506
  - test/factories/inventory_upload_factories.rb
507
+ - test/factories/insights_factories.rb
351
508
  - test/unit/shell_process_job_test.rb
352
509
  - test/unit/metadata_generator_test.rb
510
+ - test/unit/insights_facet_test.rb
511
+ - test/unit/fact_helpers_test.rb
353
512
  - test/unit/archived_report_generator_test.rb
354
513
  - test/unit/slice_generator_test.rb