foreman_openscap 9.0.5 → 10.0.0

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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_openscap/locale/cs_CZ/foreman_openscap.js +0 -9
  3. data/app/assets/javascripts/foreman_openscap/locale/de/foreman_openscap.js +0 -9
  4. data/app/assets/javascripts/foreman_openscap/locale/en/foreman_openscap.js +0 -9
  5. data/app/assets/javascripts/foreman_openscap/locale/en_GB/foreman_openscap.js +0 -9
  6. data/app/assets/javascripts/foreman_openscap/locale/es/foreman_openscap.js +0 -9
  7. data/app/assets/javascripts/foreman_openscap/locale/fr/foreman_openscap.js +0 -9
  8. data/app/assets/javascripts/foreman_openscap/locale/gl/foreman_openscap.js +0 -9
  9. data/app/assets/javascripts/foreman_openscap/locale/it/foreman_openscap.js +0 -9
  10. data/app/assets/javascripts/foreman_openscap/locale/ja/foreman_openscap.js +0 -9
  11. data/app/assets/javascripts/foreman_openscap/locale/ka/foreman_openscap.js +0 -9
  12. data/app/assets/javascripts/foreman_openscap/locale/ko/foreman_openscap.js +0 -9
  13. data/app/assets/javascripts/foreman_openscap/locale/pt_BR/foreman_openscap.js +0 -9
  14. data/app/assets/javascripts/foreman_openscap/locale/ru/foreman_openscap.js +0 -9
  15. data/app/assets/javascripts/foreman_openscap/locale/sv_SE/foreman_openscap.js +0 -9
  16. data/app/assets/javascripts/foreman_openscap/locale/zh_CN/foreman_openscap.js +0 -9
  17. data/app/assets/javascripts/foreman_openscap/locale/zh_TW/foreman_openscap.js +0 -9
  18. data/app/controllers/api/v2/compliance/scap_contents_controller.rb +2 -0
  19. data/app/helpers/foreman_openscap_helper.rb +2 -18
  20. data/db/migrate/20201217161511_add_url_to_oval_content.rb +1 -1
  21. data/{app/services → lib}/foreman_openscap/bulk_upload.rb +7 -14
  22. data/lib/foreman_openscap/engine.rb +148 -155
  23. data/lib/foreman_openscap/version.rb +1 -1
  24. data/lib/tasks/foreman_openscap_tasks.rake +1 -0
  25. data/locale/cs_CZ/foreman_openscap.edit.po +1443 -0
  26. data/locale/cs_CZ/foreman_openscap.po +0 -9
  27. data/locale/cs_CZ/foreman_openscap.po.time_stamp +0 -0
  28. data/locale/de/LC_MESSAGES/foreman_openscap.mo +0 -0
  29. data/locale/de/foreman_openscap.edit.po +1468 -0
  30. data/locale/de/foreman_openscap.po +0 -9
  31. data/locale/de/foreman_openscap.po.time_stamp +0 -0
  32. data/locale/en/foreman_openscap.edit.po +1443 -0
  33. data/locale/en/foreman_openscap.po +0 -9
  34. data/locale/en/foreman_openscap.po.time_stamp +0 -0
  35. data/locale/en_GB/foreman_openscap.edit.po +1443 -0
  36. data/locale/en_GB/foreman_openscap.po +0 -9
  37. data/locale/en_GB/foreman_openscap.po.time_stamp +0 -0
  38. data/locale/es/LC_MESSAGES/foreman_openscap.mo +0 -0
  39. data/locale/es/foreman_openscap.edit.po +1463 -0
  40. data/locale/es/foreman_openscap.po +0 -9
  41. data/locale/es/foreman_openscap.po.time_stamp +0 -0
  42. data/locale/foreman_openscap.pot +47 -57
  43. data/locale/fr/LC_MESSAGES/foreman_openscap.mo +0 -0
  44. data/locale/fr/foreman_openscap.edit.po +1469 -0
  45. data/locale/fr/foreman_openscap.po +0 -9
  46. data/locale/fr/foreman_openscap.po.time_stamp +0 -0
  47. data/locale/gl/foreman_openscap.edit.po +1443 -0
  48. data/locale/gl/foreman_openscap.po +0 -9
  49. data/locale/gl/foreman_openscap.po.time_stamp +0 -0
  50. data/locale/it/foreman_openscap.edit.po +1445 -0
  51. data/locale/it/foreman_openscap.po +0 -9
  52. data/locale/it/foreman_openscap.po.time_stamp +0 -0
  53. data/locale/ja/LC_MESSAGES/foreman_openscap.mo +0 -0
  54. data/locale/ja/foreman_openscap.edit.po +1460 -0
  55. data/locale/ja/foreman_openscap.po +0 -9
  56. data/locale/ja/foreman_openscap.po.time_stamp +0 -0
  57. data/locale/ka/LC_MESSAGES/foreman_openscap.mo +0 -0
  58. data/locale/ka/foreman_openscap.edit.po +1449 -0
  59. data/locale/ka/foreman_openscap.po +0 -9
  60. data/locale/ka/foreman_openscap.po.time_stamp +0 -0
  61. data/locale/ko/foreman_openscap.edit.po +1443 -0
  62. data/locale/ko/foreman_openscap.po +0 -9
  63. data/locale/ko/foreman_openscap.po.time_stamp +0 -0
  64. data/locale/pt_BR/LC_MESSAGES/foreman_openscap.mo +0 -0
  65. data/locale/pt_BR/foreman_openscap.edit.po +1468 -0
  66. data/locale/pt_BR/foreman_openscap.po +0 -9
  67. data/locale/pt_BR/foreman_openscap.po.time_stamp +0 -0
  68. data/locale/ru/foreman_openscap.edit.po +1447 -0
  69. data/locale/ru/foreman_openscap.po +0 -9
  70. data/locale/ru/foreman_openscap.po.time_stamp +0 -0
  71. data/locale/sv_SE/foreman_openscap.edit.po +1443 -0
  72. data/locale/sv_SE/foreman_openscap.po +0 -9
  73. data/locale/sv_SE/foreman_openscap.po.time_stamp +0 -0
  74. data/locale/zh_CN/LC_MESSAGES/foreman_openscap.mo +0 -0
  75. data/locale/zh_CN/foreman_openscap.edit.po +1459 -0
  76. data/locale/zh_CN/foreman_openscap.po +0 -9
  77. data/locale/zh_CN/foreman_openscap.po.time_stamp +0 -0
  78. data/locale/zh_TW/foreman_openscap.edit.po +1444 -0
  79. data/locale/zh_TW/foreman_openscap.po +0 -9
  80. data/locale/zh_TW/foreman_openscap.po.time_stamp +0 -0
  81. data/test/lib/foreman_openscap/bulk_upload_test.rb +4 -3
  82. data/test/unit/message_cleaner_test.rb +1 -0
  83. metadata +36 -4
@@ -914,12 +914,6 @@ msgstr ""
914
914
  msgid "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding."
915
915
  msgstr ""
916
916
 
917
- msgid "The following Smart Proxies need to be updated to unlock the feature: %s. "
918
- msgstr ""
919
-
920
- msgid "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions."
921
- msgstr ""
922
-
923
917
  msgid "The identifier of the host"
924
918
  msgstr ""
925
919
 
@@ -938,9 +932,6 @@ msgstr ""
938
932
  msgid "There's no available report for this host"
939
933
  msgstr ""
940
934
 
941
- msgid "This feature is temporarily disabled. "
942
- msgstr ""
943
-
944
935
  msgid "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports."
945
936
  msgstr ""
946
937
 
File without changes
@@ -2,6 +2,7 @@ require 'test_plugin_helper'
2
2
 
3
3
  class BulkUploadTest < ActiveSupport::TestCase
4
4
  setup do
5
+ require 'foreman_openscap/bulk_upload'
5
6
  ForemanOpenscap::ScapContent.all.map(&:destroy)
6
7
  end
7
8
 
@@ -47,14 +48,14 @@ class BulkUploadTest < ActiveSupport::TestCase
47
48
 
48
49
  test 'should handle case when scap security guide is not installed' do
49
50
  upload = ForemanOpenscap::BulkUpload.new
50
- upload.stubs(:package_installed?).returns(false)
51
+ upload.stubs(:scap_guide_installed?).returns(false)
51
52
  res = upload.upload_from_scap_guide
52
- assert_equal "Can't find scap-security-guide RPM(s), are you sure it is installed on your server?", res.errors.first
53
+ assert_equal "Can't find scap-security-guide RPM, are you sure it is installed on your server?", res.errors.first
53
54
  end
54
55
 
55
56
  test 'should upload files from guide' do
56
57
  upload = ForemanOpenscap::BulkUpload.new
57
- upload.stubs(:package_installed?).returns(true)
58
+ upload.stubs(:scap_guide_installed?).returns(true)
58
59
  upload.stubs(:files_from_guide).returns(["#{ForemanOpenscap::Engine.root}/test/files/scap_contents/ssg-fedora-ds.xml"])
59
60
  assert_difference('ForemanOpenscap::ScapContent.count', 1) do
60
61
  upload.upload_from_scap_guide
@@ -1,4 +1,5 @@
1
1
  require 'test_plugin_helper'
2
+ require 'foreman_openscap/message_cleaner'
2
3
 
3
4
  class MessageCleanerTest < ActiveSupport::TestCase
4
5
  setup do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_openscap
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.5
4
+ version: 10.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - slukasik@redhat.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-08 00:00:00.000000000 Z
11
+ date: 2024-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -116,7 +116,6 @@ files:
116
116
  - app/models/foreman_openscap/scap_content_profile.rb
117
117
  - app/models/foreman_openscap/tailoring_file.rb
118
118
  - app/services/foreman_openscap/arf_report_status_calculator.rb
119
- - app/services/foreman_openscap/bulk_upload.rb
120
119
  - app/services/foreman_openscap/client_config/ansible.rb
121
120
  - app/services/foreman_openscap/client_config/base.rb
122
121
  - app/services/foreman_openscap/client_config/manual.rb
@@ -287,6 +286,7 @@ files:
287
286
  - db/seeds.d/openscap_feature.rb
288
287
  - db/seeds.d/openscap_policy_notification.rb
289
288
  - lib/foreman_openscap.rb
289
+ - lib/foreman_openscap/bulk_upload.rb
290
290
  - lib/foreman_openscap/data_migration.rb
291
291
  - lib/foreman_openscap/engine.rb
292
292
  - lib/foreman_openscap/helper.rb
@@ -296,39 +296,71 @@ files:
296
296
  - locale/Makefile
297
297
  - locale/action_names.rb
298
298
  - locale/cs_CZ/LC_MESSAGES/foreman_openscap.mo
299
+ - locale/cs_CZ/foreman_openscap.edit.po
299
300
  - locale/cs_CZ/foreman_openscap.po
301
+ - locale/cs_CZ/foreman_openscap.po.time_stamp
300
302
  - locale/de/LC_MESSAGES/foreman_openscap.mo
303
+ - locale/de/foreman_openscap.edit.po
301
304
  - locale/de/foreman_openscap.po
305
+ - locale/de/foreman_openscap.po.time_stamp
302
306
  - locale/en/LC_MESSAGES/foreman_openscap.mo
307
+ - locale/en/foreman_openscap.edit.po
303
308
  - locale/en/foreman_openscap.po
309
+ - locale/en/foreman_openscap.po.time_stamp
304
310
  - locale/en_GB/LC_MESSAGES/foreman_openscap.mo
311
+ - locale/en_GB/foreman_openscap.edit.po
305
312
  - locale/en_GB/foreman_openscap.po
313
+ - locale/en_GB/foreman_openscap.po.time_stamp
306
314
  - locale/es/LC_MESSAGES/foreman_openscap.mo
315
+ - locale/es/foreman_openscap.edit.po
307
316
  - locale/es/foreman_openscap.po
317
+ - locale/es/foreman_openscap.po.time_stamp
308
318
  - locale/foreman_openscap.pot
309
319
  - locale/fr/LC_MESSAGES/foreman_openscap.mo
320
+ - locale/fr/foreman_openscap.edit.po
310
321
  - locale/fr/foreman_openscap.po
322
+ - locale/fr/foreman_openscap.po.time_stamp
311
323
  - locale/gl/LC_MESSAGES/foreman_openscap.mo
324
+ - locale/gl/foreman_openscap.edit.po
312
325
  - locale/gl/foreman_openscap.po
326
+ - locale/gl/foreman_openscap.po.time_stamp
313
327
  - locale/it/LC_MESSAGES/foreman_openscap.mo
328
+ - locale/it/foreman_openscap.edit.po
314
329
  - locale/it/foreman_openscap.po
330
+ - locale/it/foreman_openscap.po.time_stamp
315
331
  - locale/ja/LC_MESSAGES/foreman_openscap.mo
332
+ - locale/ja/foreman_openscap.edit.po
316
333
  - locale/ja/foreman_openscap.po
334
+ - locale/ja/foreman_openscap.po.time_stamp
317
335
  - locale/ka/LC_MESSAGES/foreman_openscap.mo
336
+ - locale/ka/foreman_openscap.edit.po
318
337
  - locale/ka/foreman_openscap.po
338
+ - locale/ka/foreman_openscap.po.time_stamp
319
339
  - locale/ko/LC_MESSAGES/foreman_openscap.mo
340
+ - locale/ko/foreman_openscap.edit.po
320
341
  - locale/ko/foreman_openscap.po
342
+ - locale/ko/foreman_openscap.po.time_stamp
321
343
  - locale/pt_BR/LC_MESSAGES/foreman_openscap.mo
344
+ - locale/pt_BR/foreman_openscap.edit.po
322
345
  - locale/pt_BR/foreman_openscap.po
346
+ - locale/pt_BR/foreman_openscap.po.time_stamp
323
347
  - locale/ru/LC_MESSAGES/foreman_openscap.mo
348
+ - locale/ru/foreman_openscap.edit.po
324
349
  - locale/ru/foreman_openscap.po
350
+ - locale/ru/foreman_openscap.po.time_stamp
325
351
  - locale/sv_SE/LC_MESSAGES/foreman_openscap.mo
352
+ - locale/sv_SE/foreman_openscap.edit.po
326
353
  - locale/sv_SE/foreman_openscap.po
354
+ - locale/sv_SE/foreman_openscap.po.time_stamp
327
355
  - locale/zanata.xml
328
356
  - locale/zh_CN/LC_MESSAGES/foreman_openscap.mo
357
+ - locale/zh_CN/foreman_openscap.edit.po
329
358
  - locale/zh_CN/foreman_openscap.po
359
+ - locale/zh_CN/foreman_openscap.po.time_stamp
330
360
  - locale/zh_TW/LC_MESSAGES/foreman_openscap.mo
361
+ - locale/zh_TW/foreman_openscap.edit.po
331
362
  - locale/zh_TW/foreman_openscap.po
363
+ - locale/zh_TW/foreman_openscap.po.time_stamp
332
364
  - package.json
333
365
  - test/factories/arf_report_factory.rb
334
366
  - test/factories/asset_factory.rb
@@ -441,7 +473,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
441
473
  - !ruby/object:Gem::Version
442
474
  version: '0'
443
475
  requirements: []
444
- rubygems_version: 3.3.27
476
+ rubygems_version: 3.2.33
445
477
  signing_key:
446
478
  specification_version: 4
447
479
  summary: Foreman plug-in for displaying OpenSCAP audit reports