foreman_rh_cloud 3.0.22 → 3.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/api/v2/rh_cloud/inventory_controller.rb +50 -0
- data/app/controllers/concerns/inventory_upload/report_actions.rb +26 -0
- data/app/controllers/concerns/inventory_upload/task_actions.rb +25 -0
- data/app/controllers/foreman_inventory_upload/reports_controller.rb +3 -1
- data/app/controllers/foreman_inventory_upload/tasks_controller.rb +5 -13
- data/app/controllers/foreman_inventory_upload/uploads_controller.rb +4 -4
- data/app/controllers/insights_cloud/api/machine_telemetries_controller.rb +1 -0
- data/app/controllers/insights_cloud/hits_controller.rb +7 -3
- data/app/helpers/foreman_insights_host_helper.rb +19 -0
- data/config/package-lock.json.plugin +32774 -0
- data/config/routes.rb +19 -0
- data/lib/foreman_rh_cloud/engine.rb +4 -0
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/inventory_sync/async/inventory_hosts_sync.rb +6 -2
- data/lib/inventory_sync/async/inventory_scheduled_sync.rb +4 -0
- data/lib/tasks/rh_cloud_inventory.rake +2 -1
- data/package.json +2 -2
- data/test/controllers/inventory_upload/api/inventory_controller_test.rb +53 -0
- data/test/jobs/inventory_hosts_sync_test.rb +265 -0
- data/test/jobs/inventory_scheduled_sync_test.rb +22 -0
- data/test/test_plugin_helper.rb +2 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js +11 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap +11 -0
- data/webpack/InsightsCloudSync/Components/__tests__/__snapshots__/NoTokenEmptyState.test.js.snap +20 -13
- data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +2 -2
- metadata +14 -3
|
@@ -31,6 +31,17 @@ export const PageDescription = () => (
|
|
|
31
31
|
About subscription watch
|
|
32
32
|
</a>
|
|
33
33
|
</p>
|
|
34
|
+
<p>
|
|
35
|
+
{__('For more information about Insights and Cloud Connector read')}
|
|
36
|
+
|
|
37
|
+
<a
|
|
38
|
+
href="https://console.redhat.com/security/insights/"
|
|
39
|
+
target="_blank"
|
|
40
|
+
rel="noopener noreferrer"
|
|
41
|
+
>
|
|
42
|
+
Red Hat Insights Data and Application Security
|
|
43
|
+
</a>
|
|
44
|
+
</p>
|
|
34
45
|
</div>
|
|
35
46
|
);
|
|
36
47
|
|
|
@@ -24,5 +24,16 @@ exports[`PageDescription rendering render without Props 1`] = `
|
|
|
24
24
|
About subscription watch
|
|
25
25
|
</a>
|
|
26
26
|
</p>
|
|
27
|
+
<p>
|
|
28
|
+
For more information about Insights and Cloud Connector read
|
|
29
|
+
|
|
30
|
+
<a
|
|
31
|
+
href="https://console.redhat.com/security/insights/"
|
|
32
|
+
rel="noopener noreferrer"
|
|
33
|
+
target="_blank"
|
|
34
|
+
>
|
|
35
|
+
Red Hat Insights Data and Application Security
|
|
36
|
+
</a>
|
|
37
|
+
</p>
|
|
27
38
|
</div>
|
|
28
39
|
`;
|
data/webpack/InsightsCloudSync/Components/__tests__/__snapshots__/NoTokenEmptyState.test.js.snap
CHANGED
|
@@ -190,21 +190,28 @@ exports[`NoTokenEmptyState render 1`] = `
|
|
|
190
190
|
onClick={[Function]}
|
|
191
191
|
variant="primary"
|
|
192
192
|
>
|
|
193
|
-
<
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
className="pf-c-button pf-m-primary pf-m-disabled"
|
|
197
|
-
data-ouia-component-id="OUIA-Generated-Button-primary-1"
|
|
198
|
-
data-ouia-component-type="PF4/Button"
|
|
199
|
-
data-ouia-safe={true}
|
|
200
|
-
disabled={true}
|
|
193
|
+
<ButtonBase
|
|
194
|
+
innerRef={null}
|
|
195
|
+
isDisabled={true}
|
|
201
196
|
onClick={[Function]}
|
|
202
|
-
|
|
203
|
-
tabIndex={null}
|
|
204
|
-
type="button"
|
|
197
|
+
variant="primary"
|
|
205
198
|
>
|
|
206
|
-
|
|
207
|
-
|
|
199
|
+
<button
|
|
200
|
+
aria-disabled={true}
|
|
201
|
+
aria-label={null}
|
|
202
|
+
className="pf-c-button pf-m-primary pf-m-disabled"
|
|
203
|
+
data-ouia-component-id="OUIA-Generated-Button-primary-1"
|
|
204
|
+
data-ouia-component-type="PF4/Button"
|
|
205
|
+
data-ouia-safe={true}
|
|
206
|
+
disabled={true}
|
|
207
|
+
onClick={[Function]}
|
|
208
|
+
role={null}
|
|
209
|
+
tabIndex={null}
|
|
210
|
+
type="button"
|
|
211
|
+
>
|
|
212
|
+
Save setting and sync recommendations
|
|
213
|
+
</button>
|
|
214
|
+
</ButtonBase>
|
|
208
215
|
</Button>
|
|
209
216
|
</div>
|
|
210
217
|
</div>
|
|
@@ -29,12 +29,12 @@ exports[`InsightsCloudSync render 1`] = `
|
|
|
29
29
|
toolbarButtons={
|
|
30
30
|
<React.Fragment>
|
|
31
31
|
<UNDEFINED />
|
|
32
|
-
<
|
|
32
|
+
<ForwardRef
|
|
33
33
|
onClick={[Function]}
|
|
34
34
|
variant="secondary"
|
|
35
35
|
>
|
|
36
36
|
Start recommendations sync
|
|
37
|
-
</
|
|
37
|
+
</ForwardRef>
|
|
38
38
|
</React.Fragment>
|
|
39
39
|
}
|
|
40
40
|
>
|
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.
|
|
4
|
+
version: 3.0.23
|
|
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: 2021-06-
|
|
11
|
+
date: 2021-06-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: katello
|
|
@@ -146,8 +146,11 @@ files:
|
|
|
146
146
|
- LICENSE
|
|
147
147
|
- README.md
|
|
148
148
|
- Rakefile
|
|
149
|
+
- app/controllers/api/v2/rh_cloud/inventory_controller.rb
|
|
149
150
|
- app/controllers/concerns/insights_cloud/candlepin_cache.rb
|
|
150
151
|
- app/controllers/concerns/insights_cloud/client_authentication.rb
|
|
152
|
+
- app/controllers/concerns/inventory_upload/report_actions.rb
|
|
153
|
+
- app/controllers/concerns/inventory_upload/task_actions.rb
|
|
151
154
|
- app/controllers/foreman_inventory_upload/accounts_controller.rb
|
|
152
155
|
- app/controllers/foreman_inventory_upload/reports_controller.rb
|
|
153
156
|
- app/controllers/foreman_inventory_upload/tasks_controller.rb
|
|
@@ -157,6 +160,7 @@ files:
|
|
|
157
160
|
- app/controllers/insights_cloud/hits_controller.rb
|
|
158
161
|
- app/controllers/insights_cloud/settings_controller.rb
|
|
159
162
|
- app/controllers/insights_cloud/tasks_controller.rb
|
|
163
|
+
- app/helpers/foreman_insights_host_helper.rb
|
|
160
164
|
- app/helpers/foreman_inventory_upload_helper.rb
|
|
161
165
|
- app/helpers/foreman_inventory_upload_host_helper.rb
|
|
162
166
|
- app/models/concerns/rh_cloud_host.rb
|
|
@@ -183,6 +187,7 @@ files:
|
|
|
183
187
|
- config/Gemfile.lock.gh_test
|
|
184
188
|
- config/database.yml.example
|
|
185
189
|
- config/package-lock.json.gh_test
|
|
190
|
+
- config/package-lock.json.plugin
|
|
186
191
|
- config/routes.rb
|
|
187
192
|
- db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb
|
|
188
193
|
- db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb
|
|
@@ -238,6 +243,7 @@ files:
|
|
|
238
243
|
- test/controllers/accounts_controller_test.rb
|
|
239
244
|
- test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb
|
|
240
245
|
- test/controllers/insights_sync/settings_controller_test.rb
|
|
246
|
+
- test/controllers/inventory_upload/api/inventory_controller_test.rb
|
|
241
247
|
- test/controllers/reports_controller_test.rb
|
|
242
248
|
- test/controllers/uploads_controller_test.rb
|
|
243
249
|
- test/controllers/uploads_settings_controller_test.rb
|
|
@@ -247,6 +253,8 @@ files:
|
|
|
247
253
|
- test/jobs/insights_resolutions_sync_test.rb
|
|
248
254
|
- test/jobs/insights_rules_sync_test.rb
|
|
249
255
|
- test/jobs/inventory_full_sync_test.rb
|
|
256
|
+
- test/jobs/inventory_hosts_sync_test.rb
|
|
257
|
+
- test/jobs/inventory_scheduled_sync_test.rb
|
|
250
258
|
- test/jobs/upload_report_job_test.rb
|
|
251
259
|
- test/models/insights_client_report_status_test.rb
|
|
252
260
|
- test/test_plugin_helper.rb
|
|
@@ -655,7 +663,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
655
663
|
- !ruby/object:Gem::Version
|
|
656
664
|
version: '0'
|
|
657
665
|
requirements: []
|
|
658
|
-
rubygems_version: 3.2.
|
|
666
|
+
rubygems_version: 3.2.15
|
|
659
667
|
signing_key:
|
|
660
668
|
specification_version: 4
|
|
661
669
|
summary: Summary of ForemanRhCloud.
|
|
@@ -663,6 +671,7 @@ test_files:
|
|
|
663
671
|
- test/controllers/accounts_controller_test.rb
|
|
664
672
|
- test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb
|
|
665
673
|
- test/controllers/insights_sync/settings_controller_test.rb
|
|
674
|
+
- test/controllers/inventory_upload/api/inventory_controller_test.rb
|
|
666
675
|
- test/controllers/reports_controller_test.rb
|
|
667
676
|
- test/controllers/uploads_controller_test.rb
|
|
668
677
|
- test/controllers/uploads_settings_controller_test.rb
|
|
@@ -672,6 +681,8 @@ test_files:
|
|
|
672
681
|
- test/jobs/insights_resolutions_sync_test.rb
|
|
673
682
|
- test/jobs/insights_rules_sync_test.rb
|
|
674
683
|
- test/jobs/inventory_full_sync_test.rb
|
|
684
|
+
- test/jobs/inventory_hosts_sync_test.rb
|
|
685
|
+
- test/jobs/inventory_scheduled_sync_test.rb
|
|
675
686
|
- test/jobs/upload_report_job_test.rb
|
|
676
687
|
- test/models/insights_client_report_status_test.rb
|
|
677
688
|
- test/test_plugin_helper.rb
|