foreman_openscap 10.0.3 → 10.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_openscap/arf_reports.js +3 -3
- data/app/assets/javascripts/foreman_openscap/load_report.js +1 -1
- data/app/assets/javascripts/foreman_openscap/locale/cs_CZ/foreman_openscap.js +2 -2
- data/app/assets/javascripts/foreman_openscap/locale/de/foreman_openscap.js +2 -2
- data/app/assets/javascripts/foreman_openscap/locale/en/foreman_openscap.js +2 -2
- data/app/assets/javascripts/foreman_openscap/locale/en_GB/foreman_openscap.js +2 -2
- data/app/assets/javascripts/foreman_openscap/locale/es/foreman_openscap.js +2 -2
- data/app/assets/javascripts/foreman_openscap/locale/fr/foreman_openscap.js +3 -3
- data/app/assets/javascripts/foreman_openscap/locale/gl/foreman_openscap.js +2 -2
- data/app/assets/javascripts/foreman_openscap/locale/it/foreman_openscap.js +2 -2
- data/app/assets/javascripts/foreman_openscap/locale/ja/foreman_openscap.js +3 -3
- data/app/assets/javascripts/foreman_openscap/locale/ka/foreman_openscap.js +3 -3
- data/app/assets/javascripts/foreman_openscap/locale/ko/foreman_openscap.js +208 -210
- data/app/assets/javascripts/foreman_openscap/locale/pt_BR/foreman_openscap.js +2 -2
- data/app/assets/javascripts/foreman_openscap/locale/ru/foreman_openscap.js +2 -2
- data/app/assets/javascripts/foreman_openscap/locale/sv_SE/foreman_openscap.js +2 -2
- data/app/assets/javascripts/foreman_openscap/locale/zh_CN/foreman_openscap.js +3 -3
- data/app/assets/javascripts/foreman_openscap/locale/zh_TW/foreman_openscap.js +2 -2
- data/app/assets/javascripts/foreman_openscap/policy_edit.js +1 -1
- data/app/assets/javascripts/foreman_openscap/reports.js +1 -1
- data/app/controllers/api/v2/compliance/scap_contents_controller.rb +0 -2
- data/app/controllers/arf_reports_controller.rb +8 -2
- data/app/models/concerns/foreman_openscap/scap_file_content.rb +1 -1
- data/{lib → app/services}/foreman_openscap/bulk_upload.rb +17 -11
- data/app/views/arf_reports/_list.html.erb +1 -1
- data/lib/foreman_openscap/engine.rb +1 -1
- data/lib/foreman_openscap/version.rb +1 -1
- data/lib/tasks/foreman_openscap_tasks.rake +0 -1
- data/locale/cs_CZ/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/cs_CZ/foreman_openscap.po +2 -2
- data/locale/de/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/de/foreman_openscap.po +2 -2
- data/locale/en/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/en/foreman_openscap.po +2 -2
- data/locale/en_GB/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/en_GB/foreman_openscap.po +2 -2
- data/locale/es/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/es/foreman_openscap.po +2 -2
- data/locale/foreman_openscap.pot +60 -62
- data/locale/fr/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/fr/foreman_openscap.po +3 -3
- data/locale/gl/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/gl/foreman_openscap.po +2 -2
- data/locale/it/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/it/foreman_openscap.po +2 -2
- data/locale/ja/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/ja/foreman_openscap.po +3 -3
- data/locale/ka/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/ka/foreman_openscap.po +3 -3
- data/locale/ko/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/ko/foreman_openscap.po +208 -210
- data/locale/pt_BR/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/pt_BR/foreman_openscap.po +2 -2
- data/locale/ru/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/ru/foreman_openscap.po +2 -2
- data/locale/sv_SE/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/sv_SE/foreman_openscap.po +2 -2
- data/locale/zh_CN/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/zh_CN/foreman_openscap.po +3 -3
- data/locale/zh_TW/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/zh_TW/foreman_openscap.po +2 -2
- data/test/files/scap_contents/cs9-new/ssg-cs9-ds.xml +38 -0
- data/test/files/scap_contents/cs9-old/ssg-cs9-ds.xml +38 -0
- data/test/lib/foreman_openscap/bulk_upload_test.rb +19 -4
- metadata +21 -3
Binary file
|
@@ -6,7 +6,7 @@
|
|
6
6
|
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: foreman_openscap 10.0
|
9
|
+
"Project-Id-Version: foreman_openscap 10.1.0\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
11
|
"PO-Revision-Date: 2016-04-14 07:48+0000\n"
|
12
12
|
"Last-Translator: FIRST AUTHOR <EMAIL@ADDRESS>, 2016\n"
|
@@ -97,7 +97,7 @@ msgstr "Retornar"
|
|
97
97
|
msgid "By default, remediation is applied to the current host. Optionally, remediate any additional hosts that fail the rule."
|
98
98
|
msgstr ""
|
99
99
|
|
100
|
-
msgid "Can't find
|
100
|
+
msgid "Can't find %{packages} RPM(s), are you sure it is installed on your server?"
|
101
101
|
msgstr ""
|
102
102
|
|
103
103
|
msgid "Cancel"
|
Binary file
|
@@ -7,7 +7,7 @@
|
|
7
7
|
# Yulia <yulia.poyarkova@redhat.com>, 2016
|
8
8
|
msgid ""
|
9
9
|
msgstr ""
|
10
|
-
"Project-Id-Version: foreman_openscap 10.0
|
10
|
+
"Project-Id-Version: foreman_openscap 10.1.0\n"
|
11
11
|
"Report-Msgid-Bugs-To: \n"
|
12
12
|
"PO-Revision-Date: 2016-04-14 07:48+0000\n"
|
13
13
|
"Last-Translator: FIRST AUTHOR <EMAIL@ADDRESS>, 2016\n"
|
@@ -98,7 +98,7 @@ msgstr "Назад"
|
|
98
98
|
msgid "By default, remediation is applied to the current host. Optionally, remediate any additional hosts that fail the rule."
|
99
99
|
msgstr ""
|
100
100
|
|
101
|
-
msgid "Can't find
|
101
|
+
msgid "Can't find %{packages} RPM(s), are you sure it is installed on your server?"
|
102
102
|
msgstr ""
|
103
103
|
|
104
104
|
msgid "Cancel"
|
Binary file
|
@@ -5,7 +5,7 @@
|
|
5
5
|
# Translators:
|
6
6
|
msgid ""
|
7
7
|
msgstr ""
|
8
|
-
"Project-Id-Version: foreman_openscap 10.0
|
8
|
+
"Project-Id-Version: foreman_openscap 10.1.0\n"
|
9
9
|
"Report-Msgid-Bugs-To: \n"
|
10
10
|
"PO-Revision-Date: 2016-04-14 07:48+0000\n"
|
11
11
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
@@ -94,7 +94,7 @@ msgstr "Tillbaka"
|
|
94
94
|
msgid "By default, remediation is applied to the current host. Optionally, remediate any additional hosts that fail the rule."
|
95
95
|
msgstr ""
|
96
96
|
|
97
|
-
msgid "Can't find
|
97
|
+
msgid "Can't find %{packages} RPM(s), are you sure it is installed on your server?"
|
98
98
|
msgstr ""
|
99
99
|
|
100
100
|
msgid "Cancel"
|
Binary file
|
@@ -6,7 +6,7 @@
|
|
6
6
|
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: foreman_openscap 10.0
|
9
|
+
"Project-Id-Version: foreman_openscap 10.1.0\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
11
|
"PO-Revision-Date: 2016-04-14 07:48+0000\n"
|
12
12
|
"Last-Translator: FIRST AUTHOR <EMAIL@ADDRESS>, 2016\n"
|
@@ -94,8 +94,8 @@ msgstr "返回"
|
|
94
94
|
msgid "By default, remediation is applied to the current host. Optionally, remediate any additional hosts that fail the rule."
|
95
95
|
msgstr "默认情况下,补救会应用到当前主机。(可选)修复任何规则失败的额外主机。"
|
96
96
|
|
97
|
-
msgid "Can't find
|
98
|
-
msgstr "
|
97
|
+
msgid "Can't find %{packages} RPM(s), are you sure it is installed on your server?"
|
98
|
+
msgstr ""
|
99
99
|
|
100
100
|
msgid "Cancel"
|
101
101
|
msgstr "取消"
|
Binary file
|
@@ -6,7 +6,7 @@
|
|
6
6
|
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: foreman_openscap 10.0
|
9
|
+
"Project-Id-Version: foreman_openscap 10.1.0\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
11
|
"PO-Revision-Date: 2016-04-14 07:48+0000\n"
|
12
12
|
"Last-Translator: FIRST AUTHOR <EMAIL@ADDRESS>, 2016\n"
|
@@ -95,7 +95,7 @@ msgstr "上一頁"
|
|
95
95
|
msgid "By default, remediation is applied to the current host. Optionally, remediate any additional hosts that fail the rule."
|
96
96
|
msgstr ""
|
97
97
|
|
98
|
-
msgid "Can't find
|
98
|
+
msgid "Can't find %{packages} RPM(s), are you sure it is installed on your server?"
|
99
99
|
msgstr ""
|
100
100
|
|
101
101
|
msgid "Cancel"
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<ds:data-stream-collection xmlns:cat="urn:oasis:names:tc:entity:xmlns:xml:catalog" xmlns:cpe-dict="http://cpe.mitre.org/dictionary/2.0" xmlns:cpe-lang="http://cpe.mitre.org/language/2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ds="http://scap.nist.gov/schema/scap/source/1.2" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:ind="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:linux="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns:ocil="http://scap.nist.gov/schema/ocil/2.0" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:unix="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" xmlns:xccdf-1.2="http://checklists.nist.gov/xccdf/1.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="scap_org.open-scap_collection_from_xccdf_ssg-rhel9-xccdf.xml" schematron-version="1.3">
|
3
|
+
<ds:data-stream id="scap_org.open-scap_datastream_from_xccdf_ssg-rhel9-xccdf.xml" scap-version="1.3" use-case="OTHER">
|
4
|
+
<ds:dictionaries>
|
5
|
+
<ds:component-ref id="scap_org.open-scap_cref_ssg-rhel9-cpe-dictionary.xml" xlink:href="#scap_org.open-scap_comp_ssg-rhel9-cpe-dictionary.xml">
|
6
|
+
<cat:catalog>
|
7
|
+
<cat:uri name="ssg-rhel9-cpe-oval.xml" uri="#scap_org.open-scap_cref_ssg-rhel9-cpe-oval.xml"/>
|
8
|
+
</cat:catalog>
|
9
|
+
</ds:component-ref>
|
10
|
+
</ds:dictionaries>
|
11
|
+
<ds:checklists>
|
12
|
+
<ds:component-ref id="scap_org.open-scap_cref_ssg-rhel9-xccdf.xml" xlink:href="#scap_org.open-scap_comp_ssg-rhel9-xccdf.xml">
|
13
|
+
<cat:catalog>
|
14
|
+
<cat:uri name="ssg-rhel9-oval.xml" uri="#scap_org.open-scap_cref_ssg-rhel9-oval.xml"/>
|
15
|
+
<cat:uri name="ssg-rhel9-ocil.xml" uri="#scap_org.open-scap_cref_ssg-rhel9-ocil.xml"/>
|
16
|
+
<cat:uri name="ssg-rhel9-cpe-oval.xml" uri="#scap_org.open-scap_cref_ssg-rhel9-cpe-oval.xml"/>
|
17
|
+
</cat:catalog>
|
18
|
+
</ds:component-ref>
|
19
|
+
</ds:checklists>
|
20
|
+
<ds:checks>
|
21
|
+
<ds:component-ref id="scap_org.open-scap_cref_ssg-rhel9-oval.xml" xlink:href="#scap_org.open-scap_comp_ssg-rhel9-oval.xml"/>
|
22
|
+
<ds:component-ref id="scap_org.open-scap_cref_ssg-rhel9-ocil.xml" xlink:href="#scap_org.open-scap_comp_ssg-rhel9-ocil.xml"/>
|
23
|
+
<ds:component-ref id="scap_org.open-scap_cref_ssg-rhel9-cpe-oval.xml" xlink:href="#scap_org.open-scap_comp_ssg-rhel9-cpe-oval.xml"/>
|
24
|
+
</ds:checks>
|
25
|
+
</ds:data-stream>
|
26
|
+
<ds:component id="scap_org.open-scap_comp_ssg-rhel9-cpe-dictionary.xml" timestamp="2024-11-15T00:00:00">
|
27
|
+
<cpe-dict:cpe-list xsi:schemaLocation="http://cpe.mitre.org/dictionary/2.0 http://cpe.mitre.org/files/cpe-dictionary_2.1.xsd">
|
28
|
+
<cpe-dict:cpe-item name="cpe:/o:redhat:enterprise_linux:9">
|
29
|
+
<cpe-dict:title xml:lang="en-us">Red Hat Enterprise Linux 9</cpe-dict:title>
|
30
|
+
<cpe-dict:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="ssg-rhel9-cpe-oval.xml">oval:ssg-installed_OS_is_rhel9:def:1</cpe-dict:check>
|
31
|
+
</cpe-dict:cpe-item>
|
32
|
+
<cpe-dict:cpe-item name="cpe:/o:centos:centos:9">
|
33
|
+
<cpe-dict:title xml:lang="en-us">CentOS Stream 9</cpe-dict:title>
|
34
|
+
<cpe-dict:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="ssg-rhel9-cpe-oval.xml">oval:ssg-installed_OS_is_centos9:def:1</cpe-dict:check>
|
35
|
+
</cpe-dict:cpe-item>
|
36
|
+
</cpe-dict:cpe-list>
|
37
|
+
</ds:component>
|
38
|
+
</ds:data-stream-collection>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<ds:data-stream-collection xmlns:cat="urn:oasis:names:tc:entity:xmlns:xml:catalog" xmlns:cpe-dict="http://cpe.mitre.org/dictionary/2.0" xmlns:cpe-lang="http://cpe.mitre.org/language/2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ds="http://scap.nist.gov/schema/scap/source/1.2" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:ind="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:linux="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns:ocil="http://scap.nist.gov/schema/ocil/2.0" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:unix="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" xmlns:xccdf-1.2="http://checklists.nist.gov/xccdf/1.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="scap_org.open-scap_collection_from_xccdf_ssg-rhel9-xccdf.xml" schematron-version="1.3">
|
3
|
+
<ds:data-stream id="scap_org.open-scap_datastream_from_xccdf_ssg-rhel9-xccdf.xml" scap-version="1.3" use-case="OTHER">
|
4
|
+
<ds:dictionaries>
|
5
|
+
<ds:component-ref id="scap_org.open-scap_cref_ssg-rhel9-cpe-dictionary.xml" xlink:href="#scap_org.open-scap_comp_ssg-rhel9-cpe-dictionary.xml">
|
6
|
+
<cat:catalog>
|
7
|
+
<cat:uri name="ssg-rhel9-cpe-oval.xml" uri="#scap_org.open-scap_cref_ssg-rhel9-cpe-oval.xml"/>
|
8
|
+
</cat:catalog>
|
9
|
+
</ds:component-ref>
|
10
|
+
</ds:dictionaries>
|
11
|
+
<ds:checklists>
|
12
|
+
<ds:component-ref id="scap_org.open-scap_cref_ssg-rhel9-xccdf.xml" xlink:href="#scap_org.open-scap_comp_ssg-rhel9-xccdf.xml">
|
13
|
+
<cat:catalog>
|
14
|
+
<cat:uri name="ssg-rhel9-oval.xml" uri="#scap_org.open-scap_cref_ssg-rhel9-oval.xml"/>
|
15
|
+
<cat:uri name="ssg-rhel9-ocil.xml" uri="#scap_org.open-scap_cref_ssg-rhel9-ocil.xml"/>
|
16
|
+
<cat:uri name="ssg-rhel9-cpe-oval.xml" uri="#scap_org.open-scap_cref_ssg-rhel9-cpe-oval.xml"/>
|
17
|
+
</cat:catalog>
|
18
|
+
</ds:component-ref>
|
19
|
+
</ds:checklists>
|
20
|
+
<ds:checks>
|
21
|
+
<ds:component-ref id="scap_org.open-scap_cref_ssg-rhel9-oval.xml" xlink:href="#scap_org.open-scap_comp_ssg-rhel9-oval.xml"/>
|
22
|
+
<ds:component-ref id="scap_org.open-scap_cref_ssg-rhel9-ocil.xml" xlink:href="#scap_org.open-scap_comp_ssg-rhel9-ocil.xml"/>
|
23
|
+
<ds:component-ref id="scap_org.open-scap_cref_ssg-rhel9-cpe-oval.xml" xlink:href="#scap_org.open-scap_comp_ssg-rhel9-cpe-oval.xml"/>
|
24
|
+
</ds:checks>
|
25
|
+
</ds:data-stream>
|
26
|
+
<ds:component id="scap_org.open-scap_comp_ssg-rhel9-cpe-dictionary.xml" timestamp="2024-05-20T00:00:00">
|
27
|
+
<cpe-dict:cpe-list xsi:schemaLocation="http://cpe.mitre.org/dictionary/2.0 http://cpe.mitre.org/files/cpe-dictionary_2.1.xsd">
|
28
|
+
<cpe-dict:cpe-item name="cpe:/o:redhat:enterprise_linux:9">
|
29
|
+
<cpe-dict:title xml:lang="en-us">Red Hat Enterprise Linux 9</cpe-dict:title>
|
30
|
+
<cpe-dict:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="ssg-rhel9-cpe-oval.xml">oval:ssg-installed_OS_is_rhel9:def:1</cpe-dict:check>
|
31
|
+
</cpe-dict:cpe-item>
|
32
|
+
<cpe-dict:cpe-item name="cpe:/o:centos:centos:9">
|
33
|
+
<cpe-dict:title xml:lang="en-us">CentOS Stream 9</cpe-dict:title>
|
34
|
+
<cpe-dict:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="ssg-rhel9-cpe-oval.xml">oval:ssg-installed_OS_is_centos9:def:1</cpe-dict:check>
|
35
|
+
</cpe-dict:cpe-item>
|
36
|
+
</cpe-dict:cpe-list>
|
37
|
+
</ds:component>
|
38
|
+
</ds:data-stream-collection>
|
@@ -2,7 +2,6 @@ require 'test_plugin_helper'
|
|
2
2
|
|
3
3
|
class BulkUploadTest < ActiveSupport::TestCase
|
4
4
|
setup do
|
5
|
-
require 'foreman_openscap/bulk_upload'
|
6
5
|
ForemanOpenscap::ScapContent.all.map(&:destroy)
|
7
6
|
end
|
8
7
|
|
@@ -48,17 +47,33 @@ class BulkUploadTest < ActiveSupport::TestCase
|
|
48
47
|
|
49
48
|
test 'should handle case when scap security guide is not installed' do
|
50
49
|
upload = ForemanOpenscap::BulkUpload.new
|
51
|
-
upload.stubs(:
|
50
|
+
upload.stubs(:package_installed?).returns(false)
|
52
51
|
res = upload.upload_from_scap_guide
|
53
|
-
assert_equal "Can't find scap-security-guide RPM, are you sure it is installed on your server?", res.errors.first
|
52
|
+
assert_equal "Can't find scap-security-guide RPM(s), are you sure it is installed on your server?", res.errors.first
|
54
53
|
end
|
55
54
|
|
56
55
|
test 'should upload files from guide' do
|
57
56
|
upload = ForemanOpenscap::BulkUpload.new
|
58
|
-
upload.stubs(:
|
57
|
+
upload.stubs(:package_installed?).returns(true)
|
59
58
|
upload.stubs(:files_from_guide).returns(["#{ForemanOpenscap::Engine.root}/test/files/scap_contents/ssg-fedora-ds.xml"])
|
60
59
|
assert_difference('ForemanOpenscap::ScapContent.count', 1) do
|
61
60
|
upload.upload_from_scap_guide
|
62
61
|
end
|
63
62
|
end
|
63
|
+
|
64
|
+
test 'should upload new files from guide' do
|
65
|
+
upload = ForemanOpenscap::BulkUpload.new
|
66
|
+
upload.stubs(:package_installed?).returns(true)
|
67
|
+
upload.stubs(:files_from_guide).returns(["#{ForemanOpenscap::Engine.root}/test/files/scap_contents/cs9-old/ssg-cs9-ds.xml"])
|
68
|
+
assert_difference('ForemanOpenscap::ScapContent.count', 1) do
|
69
|
+
upload.upload_from_scap_guide
|
70
|
+
end
|
71
|
+
old_digest = ForemanOpenscap::ScapContent.last.digest
|
72
|
+
upload.stubs(:files_from_guide).returns(["#{ForemanOpenscap::Engine.root}/test/files/scap_contents/cs9-new/ssg-cs9-ds.xml"])
|
73
|
+
assert_no_difference('ForemanOpenscap::ScapContent.count') do
|
74
|
+
upload.upload_from_scap_guide
|
75
|
+
end
|
76
|
+
new_digest = ForemanOpenscap::ScapContent.last.digest
|
77
|
+
refute_equal old_digest, new_digest
|
78
|
+
end
|
64
79
|
end
|
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: 10.0
|
4
|
+
version: 10.2.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:
|
11
|
+
date: 2025-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rdoc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
description: Foreman plug-in for managing security compliance reports
|
28
42
|
email:
|
29
43
|
- slukasik@redhat.com
|
@@ -116,6 +130,7 @@ files:
|
|
116
130
|
- app/models/foreman_openscap/scap_content_profile.rb
|
117
131
|
- app/models/foreman_openscap/tailoring_file.rb
|
118
132
|
- app/services/foreman_openscap/arf_report_status_calculator.rb
|
133
|
+
- app/services/foreman_openscap/bulk_upload.rb
|
119
134
|
- app/services/foreman_openscap/client_config/ansible.rb
|
120
135
|
- app/services/foreman_openscap/client_config/base.rb
|
121
136
|
- app/services/foreman_openscap/client_config/manual.rb
|
@@ -286,7 +301,6 @@ files:
|
|
286
301
|
- db/seeds.d/openscap_feature.rb
|
287
302
|
- db/seeds.d/openscap_policy_notification.rb
|
288
303
|
- lib/foreman_openscap.rb
|
289
|
-
- lib/foreman_openscap/bulk_upload.rb
|
290
304
|
- lib/foreman_openscap/data_migration.rb
|
291
305
|
- lib/foreman_openscap/engine.rb
|
292
306
|
- lib/foreman_openscap/helper.rb
|
@@ -342,6 +356,8 @@ files:
|
|
342
356
|
- test/files/arf_report/arf_report_msg_desc_changed.json
|
343
357
|
- test/files/arf_report/arf_report_msg_value_changed.json
|
344
358
|
- test/files/oval_contents/ansible-2.9.oval.xml.bz2
|
359
|
+
- test/files/scap_contents/cs9-new/ssg-cs9-ds.xml
|
360
|
+
- test/files/scap_contents/cs9-old/ssg-cs9-ds.xml
|
345
361
|
- test/files/scap_contents/ssg-fedora-ds.xml
|
346
362
|
- test/files/tailoring_files/ssg-firefox-ds-tailoring-2.xml
|
347
363
|
- test/files/tailoring_files/ssg-firefox-ds-tailoring.xml
|
@@ -455,6 +471,8 @@ test_files:
|
|
455
471
|
- test/files/arf_report/arf_report_msg_desc_changed.json
|
456
472
|
- test/files/arf_report/arf_report_msg_value_changed.json
|
457
473
|
- test/files/oval_contents/ansible-2.9.oval.xml.bz2
|
474
|
+
- test/files/scap_contents/cs9-new/ssg-cs9-ds.xml
|
475
|
+
- test/files/scap_contents/cs9-old/ssg-cs9-ds.xml
|
458
476
|
- test/files/scap_contents/ssg-fedora-ds.xml
|
459
477
|
- test/files/tailoring_files/ssg-firefox-ds-tailoring-2.xml
|
460
478
|
- test/files/tailoring_files/ssg-firefox-ds-tailoring.xml
|