foreman_rh_cloud 2.0.10 → 2.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -2
  3. data/app/controllers/foreman_inventory_upload/accounts_controller.rb +2 -0
  4. data/app/controllers/foreman_inventory_upload/uploads_controller.rb +18 -0
  5. data/app/controllers/insights_cloud/hits_controller.rb +17 -0
  6. data/app/helpers/foreman_inventory_upload_host_helper.rb +2 -3
  7. data/app/models/concerns/rh_cloud_host.rb +15 -0
  8. data/app/models/insights_hit.rb +1 -1
  9. data/app/models/setting/rh_cloud.rb +2 -0
  10. data/app/overrides/hosts_list.rb +1 -1
  11. data/app/services/foreman_rh_cloud/cloud_auth.rb +28 -0
  12. data/app/views/foreman_rh_cloud/react/insights_cloud.html.erb +1 -6
  13. data/app/views/foreman_rh_cloud/react/inventory_upload.html.erb +1 -1
  14. data/app/views/hosts/_insights_tab.html.erb +9 -0
  15. data/app/views/layouts/foreman_rh_cloud/application.html.erb +0 -1
  16. data/config/routes.rb +3 -0
  17. data/db/migrate/20201007115752_add_hits_count_to_insights_facets_table.foreman_rh_cloud.rb +5 -0
  18. data/db/migrate/20201007121540_setup_hits_count_cache.foreman_rh_cloud.rb +10 -0
  19. data/lib/foreman_inventory_upload/async/generate_report_job.rb +1 -1
  20. data/lib/foreman_inventory_upload/async/shell_process.rb +15 -9
  21. data/lib/foreman_inventory_upload/async/upload_report_job.rb +21 -33
  22. data/lib/foreman_inventory_upload/generators/fact_helpers.rb +35 -0
  23. data/lib/foreman_inventory_upload/generators/json_stream.rb +7 -2
  24. data/lib/foreman_inventory_upload/generators/metadata.rb +3 -0
  25. data/lib/foreman_inventory_upload/generators/queries.rb +4 -4
  26. data/lib/foreman_inventory_upload/generators/slice.rb +27 -25
  27. data/lib/foreman_rh_cloud.rb +55 -0
  28. data/lib/foreman_rh_cloud/engine.rb +13 -2
  29. data/lib/foreman_rh_cloud/version.rb +1 -1
  30. data/lib/insights_cloud/async/insights_full_sync.rb +5 -24
  31. data/lib/inventory_sync/async/inventory_full_sync.rb +3 -22
  32. data/lib/tasks/insights.rake +15 -0
  33. data/lib/tasks/rh_cloud_inventory.rake +37 -0
  34. data/package.json +3 -1
  35. data/test/jobs/upload_report_job_test.rb +34 -0
  36. data/test/unit/fact_helpers_test.rb +22 -0
  37. data/test/unit/insights_facet_test.rb +7 -0
  38. data/test/unit/metadata_generator_test.rb +2 -0
  39. data/test/unit/rh_cloud_http_proxy_test.rb +65 -0
  40. data/test/unit/slice_generator_test.rb +164 -2
  41. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js +14 -1
  42. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListActions.js +22 -18
  43. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js +16 -0
  44. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js +6 -0
  45. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js +7 -0
  46. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js +12 -8
  47. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js +9 -0
  48. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListActions.test.js.snap +19 -0
  49. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListReducer.test.js.snap +11 -0
  50. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListSelectors.test.js.snap +6 -0
  51. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcher.fixtures.js +2 -0
  52. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcherActions.js +10 -11
  53. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcherConstants.js +0 -1
  54. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/AutoUploadSwitcherActions.test.js +12 -2
  55. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/__snapshots__/AutoUploadSwitcherActions.test.js.snap +17 -0
  56. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcher.fixtures.js +1 -0
  57. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcher.js +30 -0
  58. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcherActions.js +29 -0
  59. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcherConstants.js +1 -0
  60. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/ExcludePackagesSwitcher.test.js +13 -0
  61. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/ExcludePackagesSwitcherActions.test.js +21 -0
  62. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/ExcludePackagesSwitcher.test.js.snap +38 -0
  63. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/ExcludePackagesSwitcherActions.test.js.snap +31 -0
  64. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/integration.test.js.snap +41 -0
  65. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/integration.test.js +36 -0
  66. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/excludePackagesSwitcher.scss +3 -0
  67. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/index.js +20 -0
  68. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js +2 -1
  69. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js +1 -0
  70. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.scss +3 -0
  71. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js +10 -11
  72. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js +0 -2
  73. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js +12 -2
  74. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap +18 -1
  75. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterReducer.js +13 -2
  76. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js +10 -1
  77. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap +6 -0
  78. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap +3 -0
  79. data/webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js +4 -0
  80. data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap +2 -0
  81. data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.fixtures.js +1 -0
  82. data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.js +29 -0
  83. data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcherActions.js +29 -0
  84. data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcherConstants.js +1 -0
  85. data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/IpsObfuscationSwitcher.test.js +13 -0
  86. data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/IpsObfuscationSwitcherActions.test.js +21 -0
  87. data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/__snapshots__/IpsObfuscationSwitcher.test.js.snap +38 -0
  88. data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/__snapshots__/IpsObfuscationSwitcherActions.test.js.snap +31 -0
  89. data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/index.js +20 -0
  90. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js +8 -2
  91. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js +9 -11
  92. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonConstants.js +1 -1
  93. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonReducer.js +2 -2
  94. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonActions.test.js +18 -0
  95. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js +1 -8
  96. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap +62 -0
  97. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonReducer.test.js.snap +0 -7
  98. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Modal.js +2 -2
  99. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js +1 -1
  100. data/webpack/ForemanInventoryUpload/Components/StatusChart/StatusChart.js +1 -1
  101. data/webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/__snapshots__/StatusChart.test.js.snap +1 -1
  102. data/webpack/ForemanInventoryUpload/Components/TabContainer/tabContainer.scss +1 -1
  103. data/webpack/ForemanInventoryUpload/Components/TabHeader/TabHeader.js +6 -1
  104. data/webpack/ForemanInventoryUpload/Components/Terminal/Terminal.js +2 -4
  105. data/webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js +8 -0
  106. data/webpack/ForemanRhCloudPages.js +2 -0
  107. data/webpack/ForemanRhCloudReducers.js +2 -0
  108. data/webpack/ForemanRhCloudSelectors.js +5 -0
  109. data/webpack/ForemanRhCloudTestHelpers.js +6 -1
  110. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js +17 -20
  111. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsConstants.js +0 -6
  112. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsReducer.js +0 -4
  113. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js +16 -0
  114. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js +1 -24
  115. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap +38 -4
  116. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap +0 -14
  117. data/webpack/InsightsCloudSync/InsightsCloudSync.js +3 -5
  118. data/webpack/InsightsCloudSync/InsightsCloudSync.test.js +1 -3
  119. data/webpack/InsightsCloudSync/InsightsCloudSyncActions.js +10 -11
  120. data/webpack/InsightsCloudSync/InsightsCloudSyncConstants.js +0 -2
  121. data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +1 -1
  122. data/webpack/InsightsHostDetailsTab/InsightsTab.js +66 -0
  123. data/webpack/InsightsHostDetailsTab/InsightsTab.scss +86 -0
  124. data/webpack/InsightsHostDetailsTab/InsightsTabActions.js +31 -0
  125. data/webpack/InsightsHostDetailsTab/InsightsTabConstants.js +2 -0
  126. data/webpack/InsightsHostDetailsTab/InsightsTabReducer.js +19 -0
  127. data/webpack/InsightsHostDetailsTab/InsightsTabSelectors.js +3 -0
  128. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTab.fixtures.js +25 -0
  129. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTab.test.js +13 -0
  130. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js +19 -0
  131. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabIntegration.test.js +17 -0
  132. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js +26 -0
  133. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabSelectors.test.js +13 -0
  134. data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTab.test.js.snap +34 -0
  135. data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabActions.test.js.snap +58 -0
  136. data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabReducer.test.js.snap +34 -0
  137. data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabSelectors.test.js.snap +20 -0
  138. data/webpack/InsightsHostDetailsTab/components/ListItem/ListItem.js +69 -0
  139. data/webpack/InsightsHostDetailsTab/components/ListItem/index.js +1 -0
  140. data/webpack/InsightsHostDetailsTab/index.js +20 -0
  141. data/webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js +1 -0
  142. data/webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap +1 -0
  143. data/webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap +3 -0
  144. metadata +67 -16
  145. data/lib/tasks/generator.rake +0 -29
  146. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss +0 -0
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.10
4
+ version: 2.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Red Hat Cloud team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-04 00:00:00.000000000 Z
11
+ date: 2020-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello
@@ -109,22 +109,28 @@ files:
109
109
  - app/controllers/foreman_inventory_upload/tasks_controller.rb
110
110
  - app/controllers/foreman_inventory_upload/uploads_controller.rb
111
111
  - app/controllers/foreman_rh_cloud/react_controller.rb
112
+ - app/controllers/insights_cloud/hits_controller.rb
112
113
  - app/controllers/insights_cloud/settings_controller.rb
113
114
  - app/controllers/insights_cloud/tasks_controller.rb
114
115
  - app/helpers/foreman_inventory_upload_helper.rb
115
116
  - app/helpers/foreman_inventory_upload_host_helper.rb
117
+ - app/models/concerns/rh_cloud_host.rb
116
118
  - app/models/insights_facet.rb
117
119
  - app/models/insights_hit.rb
118
120
  - app/models/inventory_sync/inventory_status.rb
119
121
  - app/models/setting/rh_cloud.rb
120
122
  - app/overrides/hosts_list.rb
123
+ - app/services/foreman_rh_cloud/cloud_auth.rb
121
124
  - app/views/foreman_rh_cloud/react/insights_cloud.html.erb
122
125
  - app/views/foreman_rh_cloud/react/inventory_upload.html.erb
126
+ - app/views/hosts/_insights_tab.html.erb
123
127
  - app/views/layouts/foreman_rh_cloud/application.html.erb
124
128
  - config/routes.rb
125
129
  - db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb
126
130
  - db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb
127
131
  - db/migrate/20200727111529_add_uuid_column_to_insights_facets.foreman_rh_cloud.rb
132
+ - db/migrate/20201007115752_add_hits_count_to_insights_facets_table.foreman_rh_cloud.rb
133
+ - db/migrate/20201007121540_setup_hits_count_cache.foreman_rh_cloud.rb
128
134
  - lib/foreman_inventory_upload.rb
129
135
  - lib/foreman_inventory_upload/async/async_helpers.rb
130
136
  - lib/foreman_inventory_upload/async/generate_all_reports_job.rb
@@ -150,7 +156,8 @@ files:
150
156
  - lib/inventory_sync/async/host_result.rb
151
157
  - lib/inventory_sync/async/inventory_full_sync.rb
152
158
  - lib/tasks/foreman_rh_cloud_tasks.rake
153
- - lib/tasks/generator.rake
159
+ - lib/tasks/insights.rake
160
+ - lib/tasks/rh_cloud_inventory.rake
154
161
  - locale/Makefile
155
162
  - locale/en/foreman_rh_cloud.po
156
163
  - locale/foreman_rh_cloud.pot
@@ -164,11 +171,13 @@ files:
164
171
  - test/factories/inventory_upload_factories.rb
165
172
  - test/jobs/insights_full_sync_test.rb
166
173
  - test/jobs/inventory_full_sync_test.rb
174
+ - test/jobs/upload_report_job_test.rb
167
175
  - test/test_plugin_helper.rb
168
176
  - test/unit/archived_report_generator_test.rb
169
177
  - test/unit/fact_helpers_test.rb
170
178
  - test/unit/insights_facet_test.rb
171
179
  - test/unit/metadata_generator_test.rb
180
+ - test/unit/rh_cloud_http_proxy_test.rb
172
181
  - test/unit/shell_process_job_test.rb
173
182
  - test/unit/slice_generator_test.rb
174
183
  - webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js
@@ -253,6 +262,18 @@ files:
253
262
  - webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/__snapshots__/DashboardSelectors.test.js.snap
254
263
  - webpack/ForemanInventoryUpload/Components/Dashboard/dashboard.scss
255
264
  - webpack/ForemanInventoryUpload/Components/Dashboard/index.js
265
+ - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcher.fixtures.js
266
+ - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcher.js
267
+ - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcherActions.js
268
+ - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcherConstants.js
269
+ - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/ExcludePackagesSwitcher.test.js
270
+ - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/ExcludePackagesSwitcherActions.test.js
271
+ - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/ExcludePackagesSwitcher.test.js.snap
272
+ - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/ExcludePackagesSwitcherActions.test.js.snap
273
+ - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/integration.test.js.snap
274
+ - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/integration.test.js
275
+ - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/excludePackagesSwitcher.scss
276
+ - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/index.js
256
277
  - webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.fixtures.js
257
278
  - webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
258
279
  - webpack/ForemanInventoryUpload/Components/FileDownload/FileDownloadHelper.js
@@ -269,13 +290,13 @@ files:
269
290
  - webpack/ForemanInventoryUpload/Components/FullScreenModal/index.js
270
291
  - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js
271
292
  - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
293
+ - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.scss
272
294
  - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js
273
295
  - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js
274
296
  - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcher.test.js
275
297
  - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js
276
298
  - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcher.test.js.snap
277
299
  - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap
278
- - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss
279
300
  - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/index.js
280
301
  - webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
281
302
  - webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js
@@ -302,6 +323,15 @@ files:
302
323
  - webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap
303
324
  - webpack/ForemanInventoryUpload/Components/InventorySettings/index.js
304
325
  - webpack/ForemanInventoryUpload/Components/InventorySettings/inventorySettings.scss
326
+ - webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.fixtures.js
327
+ - webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.js
328
+ - webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcherActions.js
329
+ - webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcherConstants.js
330
+ - webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/IpsObfuscationSwitcher.test.js
331
+ - webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/IpsObfuscationSwitcherActions.test.js
332
+ - webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/__snapshots__/IpsObfuscationSwitcher.test.js.snap
333
+ - webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/__snapshots__/IpsObfuscationSwitcherActions.test.js.snap
334
+ - webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/index.js
305
335
  - webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js
306
336
  - webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js
307
337
  - webpack/ForemanInventoryUpload/Components/NavContainer/NavContainerHelper.js
@@ -458,6 +488,25 @@ files:
458
488
  - webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js
459
489
  - webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap
460
490
  - webpack/InsightsCloudSync/index.js
491
+ - webpack/InsightsHostDetailsTab/InsightsTab.js
492
+ - webpack/InsightsHostDetailsTab/InsightsTab.scss
493
+ - webpack/InsightsHostDetailsTab/InsightsTabActions.js
494
+ - webpack/InsightsHostDetailsTab/InsightsTabConstants.js
495
+ - webpack/InsightsHostDetailsTab/InsightsTabReducer.js
496
+ - webpack/InsightsHostDetailsTab/InsightsTabSelectors.js
497
+ - webpack/InsightsHostDetailsTab/__tests__/InsightsTab.fixtures.js
498
+ - webpack/InsightsHostDetailsTab/__tests__/InsightsTab.test.js
499
+ - webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js
500
+ - webpack/InsightsHostDetailsTab/__tests__/InsightsTabIntegration.test.js
501
+ - webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
502
+ - webpack/InsightsHostDetailsTab/__tests__/InsightsTabSelectors.test.js
503
+ - webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTab.test.js.snap
504
+ - webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabActions.test.js.snap
505
+ - webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabReducer.test.js.snap
506
+ - webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabSelectors.test.js.snap
507
+ - webpack/InsightsHostDetailsTab/components/ListItem/ListItem.js
508
+ - webpack/InsightsHostDetailsTab/components/ListItem/index.js
509
+ - webpack/InsightsHostDetailsTab/index.js
461
510
  - webpack/__mocks__/foremanReact/API.js
462
511
  - webpack/__mocks__/foremanReact/common/I18n.js
463
512
  - webpack/__mocks__/foremanReact/common/helpers.js
@@ -476,7 +525,7 @@ homepage: https://github.com/theforeman/foreman_rh_cloud
476
525
  licenses:
477
526
  - GPL-3.0
478
527
  metadata: {}
479
- post_install_message:
528
+ post_install_message:
480
529
  rdoc_options: []
481
530
  require_paths:
482
531
  - lib
@@ -491,23 +540,25 @@ required_rubygems_version: !ruby/object:Gem::Requirement
491
540
  - !ruby/object:Gem::Version
492
541
  version: '0'
493
542
  requirements: []
494
- rubygems_version: 3.0.6
495
- signing_key:
543
+ rubygems_version: 3.1.4
544
+ signing_key:
496
545
  specification_version: 4
497
546
  summary: Summary of ForemanRhCloud.
498
547
  test_files:
499
- - test/controllers/uploads_controller_test.rb
500
- - test/controllers/insights_sync/settings_controller_test.rb
501
548
  - test/controllers/accounts_controller_test.rb
549
+ - test/controllers/insights_sync/settings_controller_test.rb
502
550
  - test/controllers/reports_controller_test.rb
503
- - test/test_plugin_helper.rb
551
+ - test/controllers/uploads_controller_test.rb
552
+ - test/factories/insights_factories.rb
553
+ - test/factories/inventory_upload_factories.rb
504
554
  - test/jobs/insights_full_sync_test.rb
505
555
  - test/jobs/inventory_full_sync_test.rb
506
- - test/factories/inventory_upload_factories.rb
507
- - test/factories/insights_factories.rb
508
- - test/unit/shell_process_job_test.rb
556
+ - test/jobs/upload_report_job_test.rb
557
+ - test/test_plugin_helper.rb
558
+ - test/unit/archived_report_generator_test.rb
509
559
  - test/unit/metadata_generator_test.rb
510
- - test/unit/insights_facet_test.rb
560
+ - test/unit/shell_process_job_test.rb
511
561
  - test/unit/fact_helpers_test.rb
512
- - test/unit/archived_report_generator_test.rb
562
+ - test/unit/insights_facet_test.rb
563
+ - test/unit/rh_cloud_http_proxy_test.rb
513
564
  - test/unit/slice_generator_test.rb
@@ -1,29 +0,0 @@
1
- require 'tempfile'
2
-
3
- namespace :foreman_inventory_upload do
4
- namespace :report do
5
- desc 'Generate inventory report to be sent to Red Hat cloud'
6
- task generate: :environment do
7
- portal_user = ENV['portal_user']
8
- organizations = [ENV['organization_id']]
9
- base_folder = ENV['target'] || Dir.pwd
10
-
11
- unless portal_user || organizations.empty?
12
- puts "Must specify either portal_user or organization_id"
13
- end
14
-
15
- if portal_user
16
- puts "Generating report for all organizations associated with #{portal_user}"
17
- base_folder = File.join(base_folder, portal_user)
18
- organizations = ForemanInventoryUpload::Generators::Queries.organizations_for_user(portal_user).pluck(:id)
19
- end
20
-
21
- organizations.each do |organization|
22
- target = File.join(base_folder, ForemanInventoryUpload.facts_archive_name(organization))
23
- archived_report_generator = ForemanInventoryUpload::Generators::ArchivedReport.new(target, Logger.new(STDOUT))
24
- archived_report_generator.render(organization: organization)
25
- puts "Successfully generated #{target} for organization id #{organization}"
26
- end
27
- end
28
- end
29
- end