foreman_rh_cloud 3.0.14 → 3.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -0
  3. data/app/controllers/foreman_inventory_upload/uploads_controller.rb +11 -0
  4. data/app/controllers/insights_cloud/hits_controller.rb +24 -0
  5. data/app/controllers/insights_cloud/settings_controller.rb +8 -0
  6. data/app/models/insights_hit.rb +5 -1
  7. data/app/models/setting/rh_cloud.rb +8 -6
  8. data/app/overrides/layouts/base/styles.html.erb.deface +2 -0
  9. data/app/services/foreman_rh_cloud/cloud_connector.rb +59 -0
  10. data/app/views/layouts/foreman_rh_cloud/application.html.erb +0 -4
  11. data/config/Gemfile.lock.gh_test +830 -0
  12. data/config/database.yml.example +17 -0
  13. data/config/package-lock.json.gh_test +35653 -0
  14. data/config/routes.rb +12 -3
  15. data/lib/foreman_inventory_upload.rb +1 -1
  16. data/lib/foreman_inventory_upload/generators/archived_report.rb +1 -1
  17. data/lib/foreman_rh_cloud/engine.rb +15 -5
  18. data/lib/foreman_rh_cloud/version.rb +1 -1
  19. data/lib/tasks/rh_cloud_inventory.rake +23 -0
  20. data/package.json +18 -17
  21. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.js +3 -2
  22. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListActions.js +1 -1
  23. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItem.js +33 -15
  24. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/__snapshots__/ListItem.test.js.snap +43 -43
  25. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/ListItemStatus.js +6 -7
  26. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/ListItemStatusHelper.js +5 -4
  27. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/__snapshots__/ListItemStatus.test.js.snap +19 -34
  28. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js +2 -2
  29. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountList.test.js.snap +3 -3
  30. data/webpack/ForemanInventoryUpload/Components/AccountList/accountList.scss +28 -5
  31. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcher.js +6 -9
  32. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcherActions.js +1 -1
  33. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/AutoUploadSwitcherActions.test.js +2 -2
  34. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/__snapshots__/AutoUploadSwitcher.test.js.snap +5 -28
  35. data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardActions.js +1 -1
  36. data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardActions.test.js +2 -2
  37. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcher.js +6 -9
  38. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcherActions.js +1 -1
  39. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/ExcludePackagesSwitcherActions.test.js +2 -2
  40. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/ExcludePackagesSwitcher.test.js.snap +5 -28
  41. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/integration.test.js.snap +5 -0
  42. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/integration.test.js +2 -2
  43. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js +6 -9
  44. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js +1 -1
  45. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js +2 -2
  46. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcher.test.js.snap +5 -28
  47. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterReducer.js +6 -3
  48. data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap +5 -0
  49. data/webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js +2 -2
  50. data/webpack/ForemanInventoryUpload/Components/InventorySettings/{inventorySettings.scss → InventorySettings.scss} +2 -5
  51. data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap +1 -1
  52. data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.js +6 -8
  53. data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcherActions.js +1 -1
  54. data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/IpsObfuscationSwitcherActions.test.js +2 -2
  55. data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/__snapshots__/IpsObfuscationSwitcher.test.js.snap +5 -28
  56. data/webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js +10 -18
  57. data/webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.scss +19 -0
  58. data/webpack/ForemanInventoryUpload/Components/PageHeader/PageTitle.js +53 -0
  59. data/webpack/ForemanInventoryUpload/Components/PageHeader/{components/DocsButton/__tests__/DocsButton.test.js → __tests__/PageTitle.test.js} +3 -3
  60. data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap +12 -38
  61. data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageTitle.test.js.snap +43 -0
  62. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorActions.js +27 -0
  63. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorButton.js +51 -0
  64. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorConstants.js +6 -0
  65. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorSelectors.js +14 -0
  66. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorActions.test.js +9 -0
  67. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js +22 -0
  68. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/__snapshots__/CloudConnectorActions.test.js.snap +11 -0
  69. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/__snapshots__/CloudConnectorButton.test.js.snap +48 -0
  70. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js +27 -0
  71. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js +7 -9
  72. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js +1 -1
  73. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonActions.test.js +2 -2
  74. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap +7 -9
  75. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js +2 -4
  76. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap +1 -2
  77. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss +1 -2
  78. data/webpack/ForemanInventoryUpload/Components/Terminal/terminal.scss +1 -0
  79. data/webpack/ForemanInventoryUpload/ForemanInventoryConstants.js +2 -2
  80. data/webpack/ForemanInventoryUpload/ForemanInventoryUpload.js +8 -14
  81. data/webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryUpload.test.js.snap +7 -10
  82. data/webpack/ForemanRhCloudPages.js +19 -0
  83. data/webpack/InsightsCloudSync/Components/InsightsHeader/InsightsHeader.scss +4 -0
  84. data/webpack/InsightsCloudSync/Components/InsightsHeader/index.js +16 -0
  85. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js +1 -1
  86. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js +2 -2
  87. data/webpack/InsightsCloudSync/Components/InsightsSettings/insightsSettings.scss +1 -0
  88. data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTable.js +121 -0
  89. data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableActions.js +129 -0
  90. data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableConstants.js +55 -0
  91. data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableHelpers.js +31 -0
  92. data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableReducer.js +28 -0
  93. data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableSelectors.js +74 -0
  94. data/webpack/InsightsCloudSync/Components/InsightsTable/SelectAllAlert.js +65 -0
  95. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTable.test.js +13 -0
  96. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTableSelectors.test.js +58 -0
  97. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTable.test.js.snap +168 -0
  98. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableSelectors.test.js.snap +88 -0
  99. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/fixtures.js +104 -0
  100. data/webpack/InsightsCloudSync/Components/InsightsTable/components/EmptyState.js +53 -0
  101. data/webpack/InsightsCloudSync/Components/InsightsTable/index.js +45 -0
  102. data/webpack/InsightsCloudSync/Components/InsightsTable/table.scss +1 -0
  103. data/webpack/InsightsCloudSync/Components/NoTokenEmptyState.js +79 -0
  104. data/webpack/InsightsCloudSync/Components/__tests__/InsightsHeader.test.js +10 -0
  105. data/webpack/InsightsCloudSync/Components/__tests__/NoTokenEmptyState.test.js +19 -0
  106. data/webpack/InsightsCloudSync/Components/__tests__/__snapshots__/InsightsHeader.test.js.snap +13 -0
  107. data/webpack/InsightsCloudSync/Components/__tests__/__snapshots__/NoTokenEmptyState.test.js.snap +214 -0
  108. data/webpack/InsightsCloudSync/InsightsCloudSync.js +45 -44
  109. data/webpack/InsightsCloudSync/InsightsCloudSync.test.js +10 -2
  110. data/webpack/InsightsCloudSync/InsightsCloudSyncActions.js +1 -1
  111. data/webpack/InsightsCloudSync/InsightsCloudSyncConstants.js +15 -1
  112. data/webpack/InsightsCloudSync/InsightsCloudSyncHelpers.js +7 -0
  113. data/webpack/InsightsCloudSync/InsightsCloudSyncReducers.js +2 -0
  114. data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +45 -62
  115. data/webpack/InsightsCloudSync/index.js +11 -3
  116. data/webpack/InsightsHostDetailsTab/InsightsTabActions.js +1 -1
  117. data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js +2 -2
  118. data/webpack/__mocks__/foremanReact/Root/Context/ForemanContext.js +1 -0
  119. data/webpack/__mocks__/foremanReact/constants.js +19 -0
  120. data/webpack/__mocks__/foremanReact/redux/API/APISelectors.js +24 -0
  121. data/webpack/__mocks__/foremanReact/redux/API/index.js +11 -0
  122. data/webpack/__mocks__/foremanReact/routes/RouterSelector.js +2 -0
  123. data/webpack/__mocks__/foremanReact/routes/common/PageLayout/PageLayout.js +10 -0
  124. data/webpack/common/Switcher/HelpLabel.js +30 -0
  125. data/webpack/common/Switcher/SwitcherPF4.js +36 -0
  126. data/webpack/common/Switcher/SwitcherPF4.scss +10 -0
  127. data/webpack/common/Switcher/__tests__/HelpLabel.test.js +13 -0
  128. data/webpack/common/Switcher/__tests__/SwitcherPF4.test.js +14 -0
  129. data/webpack/common/Switcher/__tests__/__snapshots__/HelpLabel.test.js.snap +20 -0
  130. data/webpack/common/Switcher/__tests__/__snapshots__/SwitcherPF4.test.js.snap +22 -0
  131. data/webpack/global_index.js +2 -0
  132. metadata +96 -34
  133. data/app/controllers/foreman_rh_cloud/react_controller.rb +0 -11
  134. data/app/views/foreman_rh_cloud/react/insights_cloud.html.erb +0 -1
  135. data/app/views/foreman_rh_cloud/react/inventory_upload.html.erb +0 -1
  136. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/listItem.scss +0 -0
  137. data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/listItemStatus.scss +0 -16
  138. data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/autoUploadSwitcher.scss +0 -3
  139. data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/excludePackagesSwitcher.scss +0 -3
  140. data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.scss +0 -3
  141. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/DocsButton.js +0 -18
  142. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/__snapshots__/DocsButton.test.js.snap +0 -21
  143. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/index.js +0 -1
  144. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/HistoryButton.js +0 -19
  145. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/HistoryButton.test.js +0 -12
  146. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/__snapshots__/HistoryButton.test.js.snap +0 -22
  147. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/index.js +0 -1
  148. data/webpack/ForemanInventoryUpload/Components/PageHeader/pageHeader.scss +0 -3
  149. data/webpack/__mocks__/foremanReact/API.js +0 -7
@@ -0,0 +1,22 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`InsightsCloudSync helpers should return insights cloud Url 1`] = `
4
+ <Switch
5
+ aria-label=""
6
+ className="foreman-switcher"
7
+ id="rh-cloud-switcher-some-id"
8
+ isChecked={true}
9
+ isDisabled={false}
10
+ label={
11
+ <div>
12
+ some-label
13
+ <HelpLabel
14
+ className="switcher-help-label"
15
+ id="some-id"
16
+ text="some-text"
17
+ />
18
+ </div>
19
+ }
20
+ onChange={[MockFunction]}
21
+ />
22
+ `;
@@ -1,5 +1,7 @@
1
1
  import { registerReducers } from './ForemanRhCloudReducers';
2
2
  import { registerFills } from './ForemanRhCloudFills';
3
+ import { registerRoutes } from './ForemanRhCloudPages';
3
4
 
4
5
  registerReducers();
5
6
  registerFills();
7
+ registerRoutes();
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: 3.0.14
4
+ version: 3.0.15
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-11-26 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello
@@ -38,6 +38,34 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: foreman_ansible
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: foreman_ansible_core
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: rdoc
43
71
  requirement: !ruby/object:Gem::Requirement
@@ -108,7 +136,6 @@ files:
108
136
  - app/controllers/foreman_inventory_upload/reports_controller.rb
109
137
  - app/controllers/foreman_inventory_upload/tasks_controller.rb
110
138
  - app/controllers/foreman_inventory_upload/uploads_controller.rb
111
- - app/controllers/foreman_rh_cloud/react_controller.rb
112
139
  - app/controllers/insights_cloud/hits_controller.rb
113
140
  - app/controllers/insights_cloud/settings_controller.rb
114
141
  - app/controllers/insights_cloud/tasks_controller.rb
@@ -120,11 +147,14 @@ files:
120
147
  - app/models/inventory_sync/inventory_status.rb
121
148
  - app/models/setting/rh_cloud.rb
122
149
  - app/overrides/hosts_list.rb
150
+ - app/overrides/layouts/base/styles.html.erb.deface
123
151
  - app/services/foreman_rh_cloud/cloud_auth.rb
124
- - app/views/foreman_rh_cloud/react/insights_cloud.html.erb
125
- - app/views/foreman_rh_cloud/react/inventory_upload.html.erb
152
+ - app/services/foreman_rh_cloud/cloud_connector.rb
126
153
  - app/views/hosts/_insights_tab.html.erb
127
154
  - app/views/layouts/foreman_rh_cloud/application.html.erb
155
+ - config/Gemfile.lock.gh_test
156
+ - config/database.yml.example
157
+ - config/package-lock.json.gh_test
128
158
  - config/routes.rb
129
159
  - db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb
130
160
  - db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb
@@ -213,14 +243,12 @@ files:
213
243
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/ListItem.test.js
214
244
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/__snapshots__/ListItem.test.js.snap
215
245
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/index.js
216
- - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/listItem.scss
217
246
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/ListItemStatus.fixtures.js
218
247
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/ListItemStatus.js
219
248
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/ListItemStatusHelper.js
220
249
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/ListItemStatus.test.js
221
250
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/__snapshots__/ListItemStatus.test.js.snap
222
251
  - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/index.js
223
- - webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/listItemStatus.scss
224
252
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js
225
253
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js
226
254
  - webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
@@ -241,7 +269,6 @@ files:
241
269
  - webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/AutoUploadSwitcherActions.test.js
242
270
  - webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/__snapshots__/AutoUploadSwitcher.test.js.snap
243
271
  - webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/__snapshots__/AutoUploadSwitcherActions.test.js.snap
244
- - webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/autoUploadSwitcher.scss
245
272
  - webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/index.js
246
273
  - webpack/ForemanInventoryUpload/Components/Dashboard/Dashboard.fixtures.js
247
274
  - webpack/ForemanInventoryUpload/Components/Dashboard/Dashboard.js
@@ -272,7 +299,6 @@ files:
272
299
  - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/ExcludePackagesSwitcherActions.test.js.snap
273
300
  - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/integration.test.js.snap
274
301
  - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/integration.test.js
275
- - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/excludePackagesSwitcher.scss
276
302
  - webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/index.js
277
303
  - webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.fixtures.js
278
304
  - webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
@@ -290,7 +316,6 @@ files:
290
316
  - webpack/ForemanInventoryUpload/Components/FullScreenModal/index.js
291
317
  - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js
292
318
  - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
293
- - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.scss
294
319
  - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js
295
320
  - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js
296
321
  - webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcher.test.js
@@ -319,10 +344,10 @@ files:
319
344
  - webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js
320
345
  - webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss
321
346
  - webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js
347
+ - webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.scss
322
348
  - webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettings.test.js
323
349
  - webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap
324
350
  - webpack/ForemanInventoryUpload/Components/InventorySettings/index.js
325
- - webpack/ForemanInventoryUpload/Components/InventorySettings/inventorySettings.scss
326
351
  - webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.fixtures.js
327
352
  - webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.js
328
353
  - webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcherActions.js
@@ -340,16 +365,21 @@ files:
340
365
  - webpack/ForemanInventoryUpload/Components/NavContainer/index.js
341
366
  - webpack/ForemanInventoryUpload/Components/NavContainer/navContainer.scss
342
367
  - webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js
368
+ - webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.scss
369
+ - webpack/ForemanInventoryUpload/Components/PageHeader/PageTitle.js
343
370
  - webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageHeader.test.js
371
+ - webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageTitle.test.js
344
372
  - webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap
345
- - webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/DocsButton.js
346
- - webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/DocsButton.test.js
347
- - webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/__snapshots__/DocsButton.test.js.snap
348
- - webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/index.js
349
- - webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/HistoryButton.js
350
- - webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/HistoryButton.test.js
351
- - webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/__snapshots__/HistoryButton.test.js.snap
352
- - webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/index.js
373
+ - webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageTitle.test.js.snap
374
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorActions.js
375
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorButton.js
376
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorConstants.js
377
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorSelectors.js
378
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorActions.test.js
379
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
380
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/__snapshots__/CloudConnectorActions.test.js.snap
381
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/__snapshots__/CloudConnectorButton.test.js.snap
382
+ - webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
353
383
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js
354
384
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js
355
385
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap
@@ -378,7 +408,6 @@ files:
378
408
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/index.js
379
409
  - webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss
380
410
  - webpack/ForemanInventoryUpload/Components/PageHeader/index.js
381
- - webpack/ForemanInventoryUpload/Components/PageHeader/pageHeader.scss
382
411
  - webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.fixtures.js
383
412
  - webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
384
413
  - webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerateHelper.js
@@ -463,6 +492,8 @@ files:
463
492
  - webpack/ForemanRhCloudReducers.js
464
493
  - webpack/ForemanRhCloudSelectors.js
465
494
  - webpack/ForemanRhCloudTestHelpers.js
495
+ - webpack/InsightsCloudSync/Components/InsightsHeader/InsightsHeader.scss
496
+ - webpack/InsightsCloudSync/Components/InsightsHeader/index.js
466
497
  - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
467
498
  - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js
468
499
  - webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsConstants.js
@@ -484,6 +515,26 @@ files:
484
515
  - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/__snapshots__/InsightsSyncSwitcher.test.js.snap
485
516
  - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/index.js
486
517
  - webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/insightsSyncSwitcher.scss
518
+ - webpack/InsightsCloudSync/Components/InsightsTable/InsightsTable.js
519
+ - webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableActions.js
520
+ - webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableConstants.js
521
+ - webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableHelpers.js
522
+ - webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableReducer.js
523
+ - webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableSelectors.js
524
+ - webpack/InsightsCloudSync/Components/InsightsTable/SelectAllAlert.js
525
+ - webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTable.test.js
526
+ - webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTableSelectors.test.js
527
+ - webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTable.test.js.snap
528
+ - webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableSelectors.test.js.snap
529
+ - webpack/InsightsCloudSync/Components/InsightsTable/__tests__/fixtures.js
530
+ - webpack/InsightsCloudSync/Components/InsightsTable/components/EmptyState.js
531
+ - webpack/InsightsCloudSync/Components/InsightsTable/index.js
532
+ - webpack/InsightsCloudSync/Components/InsightsTable/table.scss
533
+ - webpack/InsightsCloudSync/Components/NoTokenEmptyState.js
534
+ - webpack/InsightsCloudSync/Components/__tests__/InsightsHeader.test.js
535
+ - webpack/InsightsCloudSync/Components/__tests__/NoTokenEmptyState.test.js
536
+ - webpack/InsightsCloudSync/Components/__tests__/__snapshots__/InsightsHeader.test.js.snap
537
+ - webpack/InsightsCloudSync/Components/__tests__/__snapshots__/NoTokenEmptyState.test.js.snap
487
538
  - webpack/InsightsCloudSync/InsightsCloudSync.js
488
539
  - webpack/InsightsCloudSync/InsightsCloudSync.test.js
489
540
  - webpack/InsightsCloudSync/InsightsCloudSyncActions.js
@@ -513,19 +564,30 @@ files:
513
564
  - webpack/InsightsHostDetailsTab/components/ListItem/ListItem.js
514
565
  - webpack/InsightsHostDetailsTab/components/ListItem/index.js
515
566
  - webpack/InsightsHostDetailsTab/index.js
516
- - webpack/__mocks__/foremanReact/API.js
567
+ - webpack/__mocks__/foremanReact/Root/Context/ForemanContext.js
517
568
  - webpack/__mocks__/foremanReact/common/I18n.js
518
569
  - webpack/__mocks__/foremanReact/common/MountingService.js
519
570
  - webpack/__mocks__/foremanReact/common/helpers.js
520
571
  - webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js
521
572
  - webpack/__mocks__/foremanReact/constants.js
573
+ - webpack/__mocks__/foremanReact/redux/API/APISelectors.js
574
+ - webpack/__mocks__/foremanReact/redux/API/index.js
522
575
  - webpack/__mocks__/foremanReact/redux/actions/toasts.js
576
+ - webpack/__mocks__/foremanReact/routes/RouterSelector.js
577
+ - webpack/__mocks__/foremanReact/routes/common/PageLayout/PageLayout.js
523
578
  - webpack/__tests__/ForemanRhCloudHelpers.test.js
524
579
  - webpack/__tests__/ForemanRhCloudSelectors.test.js
525
580
  - webpack/__tests__/ForemanRhCloudTestHelpers.test.js
526
581
  - webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap
527
582
  - webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap
528
583
  - webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap
584
+ - webpack/common/Switcher/HelpLabel.js
585
+ - webpack/common/Switcher/SwitcherPF4.js
586
+ - webpack/common/Switcher/SwitcherPF4.scss
587
+ - webpack/common/Switcher/__tests__/HelpLabel.test.js
588
+ - webpack/common/Switcher/__tests__/SwitcherPF4.test.js
589
+ - webpack/common/Switcher/__tests__/__snapshots__/HelpLabel.test.js.snap
590
+ - webpack/common/Switcher/__tests__/__snapshots__/SwitcherPF4.test.js.snap
529
591
  - webpack/common/Switcher/index.js
530
592
  - webpack/global_index.js
531
593
  - webpack/index.js
@@ -533,7 +595,7 @@ homepage: https://github.com/theforeman/foreman_rh_cloud
533
595
  licenses:
534
596
  - GPL-3.0
535
597
  metadata: {}
536
- post_install_message:
598
+ post_install_message:
537
599
  rdoc_options: []
538
600
  require_paths:
539
601
  - lib
@@ -548,25 +610,25 @@ required_rubygems_version: !ruby/object:Gem::Requirement
548
610
  - !ruby/object:Gem::Version
549
611
  version: '0'
550
612
  requirements: []
551
- rubygems_version: 3.1.4
552
- signing_key:
613
+ rubygems_version: 3.0.6
614
+ signing_key:
553
615
  specification_version: 4
554
616
  summary: Summary of ForemanRhCloud.
555
617
  test_files:
556
- - test/controllers/accounts_controller_test.rb
618
+ - test/controllers/uploads_controller_test.rb
557
619
  - test/controllers/insights_sync/settings_controller_test.rb
620
+ - test/controllers/accounts_controller_test.rb
558
621
  - test/controllers/reports_controller_test.rb
559
- - test/controllers/uploads_controller_test.rb
560
- - test/factories/insights_factories.rb
561
- - test/factories/inventory_upload_factories.rb
622
+ - test/test_plugin_helper.rb
623
+ - test/jobs/upload_report_job_test.rb
562
624
  - test/jobs/insights_full_sync_test.rb
563
625
  - test/jobs/inventory_full_sync_test.rb
564
- - test/jobs/upload_report_job_test.rb
565
- - test/test_plugin_helper.rb
566
- - test/unit/archived_report_generator_test.rb
567
- - test/unit/metadata_generator_test.rb
626
+ - test/factories/inventory_upload_factories.rb
627
+ - test/factories/insights_factories.rb
568
628
  - test/unit/shell_process_job_test.rb
569
- - test/unit/fact_helpers_test.rb
629
+ - test/unit/metadata_generator_test.rb
570
630
  - test/unit/insights_facet_test.rb
571
631
  - test/unit/rh_cloud_http_proxy_test.rb
632
+ - test/unit/fact_helpers_test.rb
633
+ - test/unit/archived_report_generator_test.rb
572
634
  - test/unit/slice_generator_test.rb
@@ -1,11 +0,0 @@
1
- module ForemanRhCloud
2
- class ReactController < ::ApplicationController
3
- layout "foreman_rh_cloud/application"
4
-
5
- def inventory_upload
6
- end
7
-
8
- def insights_cloud
9
- end
10
- end
11
- end
@@ -1 +0,0 @@
1
- <%= react_component('InsightsCloudSync', { settingsUrl: settings_url(search: 'name = rh_cloud_token') }) %>
@@ -1 +0,0 @@
1
- <%= react_component('ForemanInventoryUpload') %>
@@ -1,16 +0,0 @@
1
- .status {
2
- max-width: 250px;
3
-
4
- .item {
5
- text-align: center;
6
- font-weight: 600;
7
-
8
- p {
9
- margin: auto;
10
- }
11
- }
12
-
13
- .spinner {
14
- float: none;
15
- }
16
- }
@@ -1,3 +0,0 @@
1
- .auto_upload_switcher {
2
- margin-bottom: 5px;
3
- }
@@ -1,3 +0,0 @@
1
- .exclude_packages_switcher {
2
- margin-bottom: 5px;
3
- }
@@ -1,3 +0,0 @@
1
- .host_obfuscation_switcher {
2
- margin-bottom: 5px;
3
- }
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { Button, Icon } from 'patternfly-react';
3
- import { DOCS_BUTTON_TEXT } from '../../../../ForemanInventoryConstants';
4
- import { getInventoryDocsUrl } from '../../../../ForemanInventoryHelpers';
5
-
6
- const DocsButton = () => (
7
- <Button
8
- href={getInventoryDocsUrl()}
9
- target="_blank"
10
- rel="noopener noreferrer"
11
- bsSize="lg"
12
- >
13
- <Icon type="pf" name="help" />
14
- {DOCS_BUTTON_TEXT}
15
- </Button>
16
- );
17
-
18
- export default DocsButton;
@@ -1,21 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`DocsButton rendering render without Props 1`] = `
4
- <Button
5
- active={false}
6
- block={false}
7
- bsClass="btn"
8
- bsSize="lg"
9
- bsStyle="default"
10
- disabled={false}
11
- href="/links/manual/+?root_url=https%3A%2F%2Faccess.redhat.com%2Fproducts%2Fsubscription-central"
12
- rel="noopener noreferrer"
13
- target="_blank"
14
- >
15
- <Icon
16
- name="help"
17
- type="pf"
18
- />
19
- Documentation
20
- </Button>
21
- `;
@@ -1 +0,0 @@
1
- export { default } from './DocsButton';
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { Button, Icon } from 'patternfly-react';
3
- import { ACTIONS_HISTORY_BUTTON_TEXT } from '../../../../ForemanInventoryConstants';
4
- import { getActionsHistoryUrl } from '../../../../ForemanInventoryHelpers';
5
-
6
- const HistoryButton = () => (
7
- <Button
8
- className="tasks_history_button"
9
- href={getActionsHistoryUrl()}
10
- target="_blank"
11
- rel="noopener noreferrer"
12
- bsSize="lg"
13
- >
14
- <Icon name="history" />
15
- {ACTIONS_HISTORY_BUTTON_TEXT}
16
- </Button>
17
- );
18
-
19
- export default HistoryButton;
@@ -1,12 +0,0 @@
1
- import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
2
-
3
- import HistoryButton from '../HistoryButton';
4
-
5
- const fixtures = {
6
- 'render without Props': {},
7
- };
8
-
9
- describe('HistoryButton', () => {
10
- describe('rendering', () =>
11
- testComponentSnapshotsWithFixtures(HistoryButton, fixtures));
12
- });
@@ -1,22 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`HistoryButton rendering render without Props 1`] = `
4
- <Button
5
- active={false}
6
- block={false}
7
- bsClass="btn"
8
- bsSize="lg"
9
- bsStyle="default"
10
- className="tasks_history_button"
11
- disabled={false}
12
- href="/foreman_tasks/tasks?search=action++%3D++ForemanInventoryUpload%3A%3AAsync%3A%3AGenerateReportJob+or+action++%3D++ForemanInventoryUpload%3A%3AAsync%3A%3AGenerateAllReportsJob&page=1"
13
- rel="noopener noreferrer"
14
- target="_blank"
15
- >
16
- <Icon
17
- name="history"
18
- type="fa"
19
- />
20
- Actions history
21
- </Button>
22
- `;