foreman_openscap 13.1.1 → 13.1.3

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 (64) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_openscap/locale/cs_CZ/foreman_openscap.js +67 -17
  3. data/app/assets/javascripts/foreman_openscap/locale/de/foreman_openscap.js +67 -17
  4. data/app/assets/javascripts/foreman_openscap/locale/en/foreman_openscap.js +68 -18
  5. data/app/assets/javascripts/foreman_openscap/locale/en_GB/foreman_openscap.js +67 -17
  6. data/app/assets/javascripts/foreman_openscap/locale/es/foreman_openscap.js +67 -17
  7. data/app/assets/javascripts/foreman_openscap/locale/fr/foreman_openscap.js +70 -18
  8. data/app/assets/javascripts/foreman_openscap/locale/gl/foreman_openscap.js +67 -17
  9. data/app/assets/javascripts/foreman_openscap/locale/it/foreman_openscap.js +67 -17
  10. data/app/assets/javascripts/foreman_openscap/locale/ja/foreman_openscap.js +70 -22
  11. data/app/assets/javascripts/foreman_openscap/locale/ka/foreman_openscap.js +88 -38
  12. data/app/assets/javascripts/foreman_openscap/locale/ko/foreman_openscap.js +70 -22
  13. data/app/assets/javascripts/foreman_openscap/locale/pt_BR/foreman_openscap.js +67 -17
  14. data/app/assets/javascripts/foreman_openscap/locale/ru/foreman_openscap.js +67 -17
  15. data/app/assets/javascripts/foreman_openscap/locale/sv_SE/foreman_openscap.js +67 -17
  16. data/app/assets/javascripts/foreman_openscap/locale/zh_CN/foreman_openscap.js +66 -18
  17. data/app/assets/javascripts/foreman_openscap/locale/zh_TW/foreman_openscap.js +67 -17
  18. data/app/models/concerns/foreman_openscap/host_extensions.rb +10 -4
  19. data/app/models/concerns/foreman_openscap/hostgroup_extensions.rb +7 -0
  20. data/app/models/foreman_openscap/asset.rb +21 -1
  21. data/app/models/foreman_openscap/compliance_status.rb +19 -7
  22. data/app/models/foreman_openscap/policy.rb +43 -3
  23. data/app/services/foreman_openscap/compliance_status_resetter.rb +26 -0
  24. data/lib/foreman_openscap/version.rb +1 -1
  25. data/locale/cs_CZ/LC_MESSAGES/foreman_openscap.mo +0 -0
  26. data/locale/cs_CZ/foreman_openscap.po +69 -17
  27. data/locale/de/LC_MESSAGES/foreman_openscap.mo +0 -0
  28. data/locale/de/foreman_openscap.po +69 -17
  29. data/locale/en/LC_MESSAGES/foreman_openscap.mo +0 -0
  30. data/locale/en/foreman_openscap.po +70 -18
  31. data/locale/en_GB/LC_MESSAGES/foreman_openscap.mo +0 -0
  32. data/locale/en_GB/foreman_openscap.po +69 -17
  33. data/locale/es/LC_MESSAGES/foreman_openscap.mo +0 -0
  34. data/locale/es/foreman_openscap.po +69 -17
  35. data/locale/foreman_openscap.pot +154 -70
  36. data/locale/fr/LC_MESSAGES/foreman_openscap.mo +0 -0
  37. data/locale/fr/foreman_openscap.po +72 -18
  38. data/locale/gl/LC_MESSAGES/foreman_openscap.mo +0 -0
  39. data/locale/gl/foreman_openscap.po +69 -17
  40. data/locale/it/LC_MESSAGES/foreman_openscap.mo +0 -0
  41. data/locale/it/foreman_openscap.po +69 -17
  42. data/locale/ja/LC_MESSAGES/foreman_openscap.mo +0 -0
  43. data/locale/ja/foreman_openscap.po +72 -22
  44. data/locale/ka/LC_MESSAGES/foreman_openscap.mo +0 -0
  45. data/locale/ka/foreman_openscap.po +90 -38
  46. data/locale/ko/LC_MESSAGES/foreman_openscap.mo +0 -0
  47. data/locale/ko/foreman_openscap.po +72 -22
  48. data/locale/pt_BR/LC_MESSAGES/foreman_openscap.mo +0 -0
  49. data/locale/pt_BR/foreman_openscap.po +69 -17
  50. data/locale/ru/LC_MESSAGES/foreman_openscap.mo +0 -0
  51. data/locale/ru/foreman_openscap.po +69 -17
  52. data/locale/sv_SE/LC_MESSAGES/foreman_openscap.mo +0 -0
  53. data/locale/sv_SE/foreman_openscap.po +69 -17
  54. data/locale/zh_CN/LC_MESSAGES/foreman_openscap.mo +0 -0
  55. data/locale/zh_CN/foreman_openscap.po +68 -18
  56. data/locale/zh_TW/LC_MESSAGES/foreman_openscap.mo +0 -0
  57. data/locale/zh_TW/foreman_openscap.po +69 -17
  58. data/test/test_plugin_helper.rb +7 -0
  59. data/test/unit/compliance_status_resetter_test.rb +48 -0
  60. data/test/unit/compliance_status_test.rb +53 -4
  61. data/test/unit/concerns/host_extensions_test.rb +55 -0
  62. data/test/unit/concerns/hostgroup_extensions_test.rb +64 -0
  63. data/test/unit/policy_test.rb +90 -0
  64. metadata +4 -1
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_openscap": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_openscap 12.0.1",
6
+ "Project-Id-Version": "foreman_openscap 13.1.1",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2016-04-14 07:48+0000",
9
9
  "Last-Translator": "FULL NAME <EMAIL@ADDRESS>",
@@ -45,6 +45,9 @@
45
45
  "%s reports over time": [
46
46
  ""
47
47
  ],
48
+ "%s selected hosts.": [
49
+ ""
50
+ ],
48
51
  "%s spool errors detected, inspect the appropriate file directly on proxy": [
49
52
  ""
50
53
  ],
@@ -63,6 +66,9 @@
63
66
  "A summary of reports for OpenSCAP policies": [
64
67
  ""
65
68
  ],
69
+ "ALL selected hosts.": [
70
+ ""
71
+ ],
66
72
  "Actions": [
67
73
  "Accións"
68
74
  ],
@@ -81,12 +87,21 @@
81
87
  "Apply policy to hosts": [
82
88
  ""
83
89
  ],
84
- "Are you sure you want to delete %s?": [
90
+ "Assign": [
85
91
  ""
86
92
  ],
87
93
  "Assign Compliance Policy": [
88
94
  ""
89
95
  ],
96
+ "Assign OpenSCAP Proxy": [
97
+ ""
98
+ ],
99
+ "Assign OpenSCAP Proxy for ": [
100
+ ""
101
+ ],
102
+ "Assign OpenSCAP Proxy to multiple hosts": [
103
+ ""
104
+ ],
90
105
  "Back": [
91
106
  "Atrás"
92
107
  ],
@@ -162,9 +177,6 @@
162
177
  "Compliant with the policy": [
163
178
  ""
164
179
  ],
165
- "Confirm": [
166
- ""
167
- ],
168
180
  "Content": [
169
181
  ""
170
182
  ],
@@ -306,6 +318,10 @@
306
318
  "Failed saving %s:": [
307
319
  ""
308
320
  ],
321
+ "Failed to assign OpenSCAP Proxy to %{failed} of %{total} host.": [
322
+ "",
323
+ ""
324
+ ],
309
325
  "Failed to delete %s compliance reports": [
310
326
  ""
311
327
  ],
@@ -393,12 +409,21 @@
393
409
  "Hosts passing this rule": [
394
410
  ""
395
411
  ],
412
+ "Hosts to explicitly exclude in the action. All other hosts will be included in the action, unless an included parameter is passed as well.": [
413
+ ""
414
+ ],
415
+ "Hosts to include in the action": [
416
+ ""
417
+ ],
396
418
  "How the policy should be deployed": [
397
419
  ""
398
420
  ],
399
421
  "ID of OpenSCAP Proxy": [
400
422
  ""
401
423
  ],
424
+ "ID of the OpenSCAP Proxy to assign to the hosts": [
425
+ ""
426
+ ],
402
427
  "In Foreman, a compliance policy checklist is defined via %s.": [
403
428
  ""
404
429
  ],
@@ -432,6 +457,9 @@
432
457
  "Latest reports for policy: %s": [
433
458
  ""
434
459
  ],
460
+ "Line chart": [
461
+ ""
462
+ ],
435
463
  "List ARF reports": [
436
464
  ""
437
465
  ],
@@ -447,6 +475,15 @@
447
475
  "List Tailoring files": [
448
476
  ""
449
477
  ],
478
+ "List of host ids to exclude and not perform the action on": [
479
+ ""
480
+ ],
481
+ "List of host ids to perform the action on": [
482
+ ""
483
+ ],
484
+ "Loading": [
485
+ "Cargando"
486
+ ],
450
487
  "Loading...": [
451
488
  ""
452
489
  ],
@@ -492,6 +529,9 @@
492
529
  "No ARF reports for this policy": [
493
530
  ""
494
531
  ],
532
+ "No OpenSCAP Proxies available. Please configure a Smart Proxy with the OpenSCAP feature.": [
533
+ ""
534
+ ],
495
535
  "No OpenSCAP Proxy selected.": [
496
536
  ""
497
537
  ],
@@ -513,6 +553,9 @@
513
553
  "No compliance reports were found.": [
514
554
  ""
515
555
  ],
556
+ "No data available": [
557
+ ""
558
+ ],
516
559
  "No hosts selected": [
517
560
  "Ningún equipo seleccionado"
518
561
  ],
@@ -576,9 +619,15 @@
576
619
  "OpenSCAP Proxy": [
577
620
  ""
578
621
  ],
622
+ "OpenSCAP Proxy is set to %s": [
623
+ ""
624
+ ],
579
625
  "OpenSCAP Proxy to use for fetching SCAP content and uploading ARF reports. Leave blank and override appropriate parameters when using proxy load balancer.": [
580
626
  ""
581
627
  ],
628
+ "OpenSCAP Proxy with id %s not found": [
629
+ ""
630
+ ],
582
631
  "Openscap Proxy": [
583
632
  ""
584
633
  ],
@@ -606,9 +655,6 @@
606
655
  "Passed|P": [
607
656
  ""
608
657
  ],
609
- "Permission denied": [
610
- "Permiso denegado"
611
- ],
612
658
  "Please Confirm": [
613
659
  "Confirme, por favor"
614
660
  ],
@@ -714,9 +760,6 @@
714
760
  "Reports": [
715
761
  "Informes"
716
762
  ],
717
- "Request the following permissions from administrator: %s.": [
718
- ""
719
- ],
720
763
  "Request timed out. Please try increasing Settings -> proxy_request_timeout": [
721
764
  ""
722
765
  ],
@@ -786,6 +829,9 @@
786
829
  "Schedule": [
787
830
  ""
788
831
  ],
832
+ "Search string describing which hosts to perform the action on": [
833
+ ""
834
+ ],
789
835
  "Select Action": [
790
836
  "Selecciona unha Acción"
791
837
  ],
@@ -867,6 +913,10 @@
867
913
  "Successfully deleted ARF report.": [
868
914
  ""
869
915
  ],
916
+ "Successfully updated %{success} host.": [
917
+ "",
918
+ ""
919
+ ],
870
920
  "Summary from %{time} ago to now": [
871
921
  ""
872
922
  ],
@@ -909,13 +959,13 @@
909
959
  "The job has started on selected host(s), you can check the status on the job details page.": [
910
960
  ""
911
961
  ],
912
- "There are significant differences in deployment options.": [
962
+ "The selected OpenSCAP Proxy does not have the OpenSCAP feature enabled.": [
913
963
  ""
914
964
  ],
915
- "There is no job to remediate with. Please remediate manually.": [
965
+ "There are significant differences in deployment options.": [
916
966
  ""
917
967
  ],
918
- "There was a following error when deleting %(name)s: %(error)s": [
968
+ "There is no job to remediate with. Please remediate manually.": [
919
969
  ""
920
970
  ],
921
971
  "There's no available report for this host": [
@@ -927,6 +977,9 @@
927
977
  "This profile will be used to override the one from scap content": [
928
978
  ""
929
979
  ],
980
+ "This will change previous proxy assignments on the selected hosts.": [
981
+ ""
982
+ ],
930
983
  "Title": [
931
984
  ""
932
985
  ],
@@ -1021,9 +1074,6 @@
1021
1074
  "Yes": [
1022
1075
  ""
1023
1076
  ],
1024
- "You are not authorized to view the page. ": [
1025
- ""
1026
- ],
1027
1077
  "You can remediate by running a remote job or you can display a snippet for manual remediation.": [
1028
1078
  ""
1029
1079
  ],
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_openscap": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_openscap 12.0.1",
6
+ "Project-Id-Version": "foreman_openscap 13.1.1",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2016-04-14 07:48+0000",
9
9
  "Last-Translator": "FIRST AUTHOR <EMAIL@ADDRESS>, 2016",
@@ -45,6 +45,9 @@
45
45
  "%s reports over time": [
46
46
  ""
47
47
  ],
48
+ "%s selected hosts.": [
49
+ ""
50
+ ],
48
51
  "%s spool errors detected, inspect the appropriate file directly on proxy": [
49
52
  ""
50
53
  ],
@@ -63,6 +66,9 @@
63
66
  "A summary of reports for OpenSCAP policies": [
64
67
  ""
65
68
  ],
69
+ "ALL selected hosts.": [
70
+ ""
71
+ ],
66
72
  "Actions": [
67
73
  "Azioni"
68
74
  ],
@@ -81,12 +87,21 @@
81
87
  "Apply policy to hosts": [
82
88
  ""
83
89
  ],
84
- "Are you sure you want to delete %s?": [
90
+ "Assign": [
85
91
  ""
86
92
  ],
87
93
  "Assign Compliance Policy": [
88
94
  ""
89
95
  ],
96
+ "Assign OpenSCAP Proxy": [
97
+ ""
98
+ ],
99
+ "Assign OpenSCAP Proxy for ": [
100
+ ""
101
+ ],
102
+ "Assign OpenSCAP Proxy to multiple hosts": [
103
+ ""
104
+ ],
90
105
  "Back": [
91
106
  "Indietro"
92
107
  ],
@@ -162,9 +177,6 @@
162
177
  "Compliant with the policy": [
163
178
  ""
164
179
  ],
165
- "Confirm": [
166
- ""
167
- ],
168
180
  "Content": [
169
181
  "Contenuto"
170
182
  ],
@@ -306,6 +318,10 @@
306
318
  "Failed saving %s:": [
307
319
  ""
308
320
  ],
321
+ "Failed to assign OpenSCAP Proxy to %{failed} of %{total} host.": [
322
+ "",
323
+ ""
324
+ ],
309
325
  "Failed to delete %s compliance reports": [
310
326
  ""
311
327
  ],
@@ -393,12 +409,21 @@
393
409
  "Hosts passing this rule": [
394
410
  ""
395
411
  ],
412
+ "Hosts to explicitly exclude in the action. All other hosts will be included in the action, unless an included parameter is passed as well.": [
413
+ ""
414
+ ],
415
+ "Hosts to include in the action": [
416
+ ""
417
+ ],
396
418
  "How the policy should be deployed": [
397
419
  ""
398
420
  ],
399
421
  "ID of OpenSCAP Proxy": [
400
422
  ""
401
423
  ],
424
+ "ID of the OpenSCAP Proxy to assign to the hosts": [
425
+ ""
426
+ ],
402
427
  "In Foreman, a compliance policy checklist is defined via %s.": [
403
428
  ""
404
429
  ],
@@ -432,6 +457,9 @@
432
457
  "Latest reports for policy: %s": [
433
458
  ""
434
459
  ],
460
+ "Line chart": [
461
+ ""
462
+ ],
435
463
  "List ARF reports": [
436
464
  ""
437
465
  ],
@@ -447,6 +475,15 @@
447
475
  "List Tailoring files": [
448
476
  ""
449
477
  ],
478
+ "List of host ids to exclude and not perform the action on": [
479
+ ""
480
+ ],
481
+ "List of host ids to perform the action on": [
482
+ ""
483
+ ],
484
+ "Loading": [
485
+ "Caricamento in corso"
486
+ ],
450
487
  "Loading...": [
451
488
  "Caricamento..."
452
489
  ],
@@ -492,6 +529,9 @@
492
529
  "No ARF reports for this policy": [
493
530
  ""
494
531
  ],
532
+ "No OpenSCAP Proxies available. Please configure a Smart Proxy with the OpenSCAP feature.": [
533
+ ""
534
+ ],
495
535
  "No OpenSCAP Proxy selected.": [
496
536
  ""
497
537
  ],
@@ -513,6 +553,9 @@
513
553
  "No compliance reports were found.": [
514
554
  ""
515
555
  ],
556
+ "No data available": [
557
+ ""
558
+ ],
516
559
  "No hosts selected": [
517
560
  "Nessun host selezionato"
518
561
  ],
@@ -576,9 +619,15 @@
576
619
  "OpenSCAP Proxy": [
577
620
  ""
578
621
  ],
622
+ "OpenSCAP Proxy is set to %s": [
623
+ ""
624
+ ],
579
625
  "OpenSCAP Proxy to use for fetching SCAP content and uploading ARF reports. Leave blank and override appropriate parameters when using proxy load balancer.": [
580
626
  ""
581
627
  ],
628
+ "OpenSCAP Proxy with id %s not found": [
629
+ ""
630
+ ],
582
631
  "Openscap Proxy": [
583
632
  ""
584
633
  ],
@@ -606,9 +655,6 @@
606
655
  "Passed|P": [
607
656
  ""
608
657
  ],
609
- "Permission denied": [
610
- "Permessi negati"
611
- ],
612
658
  "Please Confirm": [
613
659
  "Conferma"
614
660
  ],
@@ -714,9 +760,6 @@
714
760
  "Reports": [
715
761
  "Notifiche"
716
762
  ],
717
- "Request the following permissions from administrator: %s.": [
718
- ""
719
- ],
720
763
  "Request timed out. Please try increasing Settings -> proxy_request_timeout": [
721
764
  ""
722
765
  ],
@@ -786,6 +829,9 @@
786
829
  "Schedule": [
787
830
  "Programmazione"
788
831
  ],
832
+ "Search string describing which hosts to perform the action on": [
833
+ ""
834
+ ],
789
835
  "Select Action": [
790
836
  "Seleziona azione"
791
837
  ],
@@ -867,6 +913,10 @@
867
913
  "Successfully deleted ARF report.": [
868
914
  ""
869
915
  ],
916
+ "Successfully updated %{success} host.": [
917
+ "",
918
+ ""
919
+ ],
870
920
  "Summary from %{time} ago to now": [
871
921
  ""
872
922
  ],
@@ -909,13 +959,13 @@
909
959
  "The job has started on selected host(s), you can check the status on the job details page.": [
910
960
  ""
911
961
  ],
912
- "There are significant differences in deployment options.": [
962
+ "The selected OpenSCAP Proxy does not have the OpenSCAP feature enabled.": [
913
963
  ""
914
964
  ],
915
- "There is no job to remediate with. Please remediate manually.": [
965
+ "There are significant differences in deployment options.": [
916
966
  ""
917
967
  ],
918
- "There was a following error when deleting %(name)s: %(error)s": [
968
+ "There is no job to remediate with. Please remediate manually.": [
919
969
  ""
920
970
  ],
921
971
  "There's no available report for this host": [
@@ -927,6 +977,9 @@
927
977
  "This profile will be used to override the one from scap content": [
928
978
  ""
929
979
  ],
980
+ "This will change previous proxy assignments on the selected hosts.": [
981
+ ""
982
+ ],
930
983
  "Title": [
931
984
  "Qualifica"
932
985
  ],
@@ -1021,9 +1074,6 @@
1021
1074
  "Yes": [
1022
1075
  "Sì"
1023
1076
  ],
1024
- "You are not authorized to view the page. ": [
1025
- ""
1026
- ],
1027
1077
  "You can remediate by running a remote job or you can display a snippet for manual remediation.": [
1028
1078
  ""
1029
1079
  ],