foreman_rh_cloud 5.0.32 → 5.0.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/api/v2/rh_cloud/cloud_request_controller.rb +83 -0
  3. data/app/controllers/foreman_inventory_upload/uploads_controller.rb +7 -0
  4. data/app/models/setting/rh_cloud.rb +2 -1
  5. data/app/services/foreman_rh_cloud/cloud_presence.rb +124 -0
  6. data/app/services/foreman_rh_cloud/cloud_request.rb +8 -1
  7. data/app/services/foreman_rh_cloud/hit_remediations_retriever.rb +67 -0
  8. data/app/services/foreman_rh_cloud/remediations_retriever.rb +16 -45
  9. data/app/services/foreman_rh_cloud/template_renderer_helper.rb +13 -1
  10. data/app/services/foreman_rh_cloud/url_remediations_retriever.rb +37 -0
  11. data/app/views/job_templates/rh_cloud_download_playbook.erb +26 -0
  12. data/config/routes.rb +2 -0
  13. data/lib/foreman_rh_cloud/engine.rb +13 -2
  14. data/lib/foreman_rh_cloud/version.rb +1 -1
  15. data/lib/foreman_rh_cloud.rb +4 -0
  16. data/lib/insights_cloud/async/connector_playbook_execution_reporter_task.rb +193 -0
  17. data/lib/insights_cloud/generators/playbook_progress_generator.rb +49 -0
  18. data/lib/tasks/insights.rake +13 -0
  19. data/package.json +1 -1
  20. data/test/controllers/insights_cloud/api/cloud_request_controller_test.rb +78 -0
  21. data/test/jobs/connector_playbook_execution_reporter_task_test.rb +207 -0
  22. data/test/unit/playbook_progress_generator_test.rb +75 -0
  23. data/test/unit/services/foreman_rh_cloud/{remediations_retriever_test.rb → hit_remediations_retriever_test.rb} +3 -3
  24. data/test/unit/services/foreman_rh_cloud/url_remediations_retriever_test.rb +27 -0
  25. metadata +19 -4
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: 5.0.32
4
+ version: 5.0.33
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: 2022-03-10 00:00:00.000000000 Z
11
+ date: 2022-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello
@@ -132,6 +132,7 @@ files:
132
132
  - LICENSE
133
133
  - README.md
134
134
  - Rakefile
135
+ - app/controllers/api/v2/rh_cloud/cloud_request_controller.rb
135
136
  - app/controllers/api/v2/rh_cloud/inventory_controller.rb
136
137
  - app/controllers/concerns/insights_cloud/candlepin_cache.rb
137
138
  - app/controllers/concerns/insights_cloud/client_authentication.rb
@@ -166,12 +167,16 @@ files:
166
167
  - app/services/foreman_rh_cloud/cloud_auth.rb
167
168
  - app/services/foreman_rh_cloud/cloud_connector.rb
168
169
  - app/services/foreman_rh_cloud/cloud_ping_service.rb
170
+ - app/services/foreman_rh_cloud/cloud_presence.rb
169
171
  - app/services/foreman_rh_cloud/cloud_request.rb
170
172
  - app/services/foreman_rh_cloud/cloud_request_forwarder.rb
173
+ - app/services/foreman_rh_cloud/hit_remediations_retriever.rb
171
174
  - app/services/foreman_rh_cloud/insights_status_cleaner.rb
172
175
  - app/services/foreman_rh_cloud/remediations_retriever.rb
173
176
  - app/services/foreman_rh_cloud/template_renderer_helper.rb
177
+ - app/services/foreman_rh_cloud/url_remediations_retriever.rb
174
178
  - app/views/hosts/_insights_tab.html.erb
179
+ - app/views/job_templates/rh_cloud_download_playbook.erb
175
180
  - app/views/job_templates/rh_cloud_remediations.erb
176
181
  - app/views/layouts/foreman_rh_cloud/application.html.erb
177
182
  - config/Gemfile.lock.gh_test
@@ -215,6 +220,7 @@ files:
215
220
  - lib/foreman_rh_cloud/engine.rb
216
221
  - lib/foreman_rh_cloud/version.rb
217
222
  - lib/insights_cloud.rb
223
+ - lib/insights_cloud/async/connector_playbook_execution_reporter_task.rb
218
224
  - lib/insights_cloud/async/insights_client_status_aging.rb
219
225
  - lib/insights_cloud/async/insights_full_sync.rb
220
226
  - lib/insights_cloud/async/insights_generate_notifications.rb
@@ -222,6 +228,7 @@ files:
222
228
  - lib/insights_cloud/async/insights_rules_sync.rb
223
229
  - lib/insights_cloud/async/insights_scheduled_sync.rb
224
230
  - lib/insights_cloud/async/rules_result.rb
231
+ - lib/insights_cloud/generators/playbook_progress_generator.rb
225
232
  - lib/inventory_sync/async/host_result.rb
226
233
  - lib/inventory_sync/async/inventory_full_sync.rb
227
234
  - lib/inventory_sync/async/inventory_hosts_sync.rb
@@ -237,6 +244,7 @@ files:
237
244
  - locale/gemspec.rb
238
245
  - package.json
239
246
  - test/controllers/accounts_controller_test.rb
247
+ - test/controllers/insights_cloud/api/cloud_request_controller_test.rb
240
248
  - test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb
241
249
  - test/controllers/insights_sync/settings_controller_test.rb
242
250
  - test/controllers/inventory_upload/api/inventory_controller_test.rb
@@ -246,6 +254,7 @@ files:
246
254
  - test/controllers/uploads_settings_controller_test.rb
247
255
  - test/factories/insights_factories.rb
248
256
  - test/factories/inventory_upload_factories.rb
257
+ - test/jobs/connector_playbook_execution_reporter_task_test.rb
249
258
  - test/jobs/insights_client_status_aging_test.rb
250
259
  - test/jobs/insights_full_sync_test.rb
251
260
  - test/jobs/insights_resolutions_sync_test.rb
@@ -262,14 +271,16 @@ files:
262
271
  - test/unit/foreman_rh_cloud_self_host_test.rb
263
272
  - test/unit/insights_facet_test.rb
264
273
  - test/unit/metadata_generator_test.rb
274
+ - test/unit/playbook_progress_generator_test.rb
265
275
  - test/unit/rh_cloud_http_proxy_test.rb
266
276
  - test/unit/rh_cloud_permissions_test.rb
267
277
  - test/unit/services/foreman_rh_cloud/branch_info_test.rb
268
278
  - test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb
269
279
  - test/unit/services/foreman_rh_cloud/cloud_status_service_test.rb
280
+ - test/unit/services/foreman_rh_cloud/hit_remediations_retriever_test.rb
270
281
  - test/unit/services/foreman_rh_cloud/insights_status_cleaner_test.rb
271
- - test/unit/services/foreman_rh_cloud/remediations_retriever_test.rb
272
282
  - test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb
283
+ - test/unit/services/foreman_rh_cloud/url_remediations_retriever_test.rb
273
284
  - test/unit/shell_process_job_test.rb
274
285
  - test/unit/slice_generator_test.rb
275
286
  - test/unit/tags_generator_test.rb
@@ -672,6 +683,7 @@ specification_version: 4
672
683
  summary: Summary of ForemanRhCloud.
673
684
  test_files:
674
685
  - test/controllers/accounts_controller_test.rb
686
+ - test/controllers/insights_cloud/api/cloud_request_controller_test.rb
675
687
  - test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb
676
688
  - test/controllers/insights_sync/settings_controller_test.rb
677
689
  - test/controllers/inventory_upload/api/inventory_controller_test.rb
@@ -681,6 +693,7 @@ test_files:
681
693
  - test/controllers/uploads_settings_controller_test.rb
682
694
  - test/factories/insights_factories.rb
683
695
  - test/factories/inventory_upload_factories.rb
696
+ - test/jobs/connector_playbook_execution_reporter_task_test.rb
684
697
  - test/jobs/insights_client_status_aging_test.rb
685
698
  - test/jobs/insights_full_sync_test.rb
686
699
  - test/jobs/insights_resolutions_sync_test.rb
@@ -697,14 +710,16 @@ test_files:
697
710
  - test/unit/foreman_rh_cloud_self_host_test.rb
698
711
  - test/unit/insights_facet_test.rb
699
712
  - test/unit/metadata_generator_test.rb
713
+ - test/unit/playbook_progress_generator_test.rb
700
714
  - test/unit/rh_cloud_http_proxy_test.rb
701
715
  - test/unit/rh_cloud_permissions_test.rb
702
716
  - test/unit/services/foreman_rh_cloud/branch_info_test.rb
703
717
  - test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb
704
718
  - test/unit/services/foreman_rh_cloud/cloud_status_service_test.rb
719
+ - test/unit/services/foreman_rh_cloud/hit_remediations_retriever_test.rb
705
720
  - test/unit/services/foreman_rh_cloud/insights_status_cleaner_test.rb
706
- - test/unit/services/foreman_rh_cloud/remediations_retriever_test.rb
707
721
  - test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb
722
+ - test/unit/services/foreman_rh_cloud/url_remediations_retriever_test.rb
708
723
  - test/unit/shell_process_job_test.rb
709
724
  - test/unit/slice_generator_test.rb
710
725
  - test/unit/tags_generator_test.rb