Debian Codegraph @

tests/API/XCCDF/unittests/test_remediation_kickstart_invalid.ds.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2 <ds:data-stream-collection xmlns:ds="http://scap.nist.gov/schema/scap/source/1.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:cat="urn:oasis:names:tc:entity:xmlns:xml:catalog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="scap_org.openscap.www_collection_from_xccdf_test_single_rule.xccdf.xml" schematron-version="1.3" xsi:schemaLocation="http://scap.nist.gov/schema/scap/source/1.2 https://scap.nist.gov/schema/scap/1.3/scap-source-data-stream_1.3.xsd">
3 <ds:data-stream id="scap_org.openscap.www_datastream_simple" scap-version="1.3" use-case="OTHER">
4 <ds:checklists>
5 <ds:component-ref id="scap_org.openscap.www_cref_test_single_rule.xccdf.xml" xlink:href="#scap_org.openscap.www_comp_test_single_rule.xccdf.xml">
6 <cat:catalog>
7 <cat:uri name="test_single_rule.oval.xml" uri="#scap_org.openscap.www_cref_test_single_rule.oval.xml"/>
8 </cat:catalog>
9 </ds:component-ref>
10 </ds:checklists>
11 <ds:checks>
12 <ds:component-ref id="scap_org.openscap.www_cref_test_single_rule.oval.xml" xlink:href="#scap_org.openscap.www_comp_test_single_rule.oval.xml"/>
13 </ds:checks>
14 </ds:data-stream>
15 <ds:component id="scap_org.openscap.www_comp_test_single_rule.oval.xml" timestamp="2021-02-01T08:07:06+01:00">
16 <oval_definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:win-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#windows" xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#windows windows-definitions-schema.xsd">
17 <generator>
18 <oval:schema_version>5.11.2</oval:schema_version>
19 <oval:timestamp>2021-02-01T08:07:06+01:00</oval:timestamp>
20 </generator>
21 <definitions>
22 <definition class="compliance" id="oval:org.openscap.www:def:1" version="1">
23 <metadata>
24 <title>PASS</title>
25 <description>pass</description>
26 </metadata>
27 <criteria>
28 <criterion comment="PASS test" test_ref="oval:org.openscap.www:tst:1"/>
29 </criteria>
30 </definition>
31 </definitions>
32 <tests>
33 <variable_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:org.openscap.www:tst:1" check="all" comment="always pass" version="1">
34 <object object_ref="oval:org.openscap.www:obj:1"/>
35 </variable_test>
36 </tests>
37 <objects>
38 <variable_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:org.openscap.www:obj:1" version="1" comment="x">
39 <var_ref>oval:org.openscap.www:var:1</var_ref>
40 </variable_object>
41 </objects>
42 <variables>
43 <constant_variable id="oval:org.openscap.www:var:1" version="1" comment="x" datatype="int">
44 <value>100</value>
45 </constant_variable>
46 </variables>
47 </oval_definitions>
48 </ds:component>
49 <ds:component id="scap_org.openscap.www_comp_test_single_rule.xccdf.xml" timestamp="2021-02-01T08:07:06+01:00">
50 <Benchmark xmlns="http://checklists.nist.gov/xccdf/1.2" id="xccdf_org.openscap.www_benchmark_test">
51 <status>accepted</status>
52 <version>1.0</version>
53 <Profile id="xccdf_org.openscap.www_profile_broken_service">
54 <title>Common hardening profile</title>
55 <description>This is a very cool profile</description>
56 <select idref="xccdf_org.openscap.www_rule_1" selected="true"/>
57 </Profile>
58 <Profile id="xccdf_org.openscap.www_profile_broken_package">
59 <title>Common hardening profile</title>
60 <description>This is a very cool profile</description>
61 <select idref="xccdf_org.openscap.www_rule_2" selected="true"/>
62 </Profile>
63 <Profile id="xccdf_org.openscap.www_profile_broken_logvol">
64 <title>Common hardening profile</title>
65 <description>This is a very cool profile</description>
66 <select idref="xccdf_org.openscap.www_rule_3" selected="true"/>
67 </Profile>
68 <Profile id="xccdf_org.openscap.www_profile_unknown_command">
69 <title>Common hardening profile</title>
70 <description>This is a very cool profile</description>
71 <select idref="xccdf_org.openscap.www_rule_4" selected="true"/>
72 </Profile>
73 <Rule selected="false" id="xccdf_org.openscap.www_rule_1">
74 <title>Rule 1: Unsupported service command</title>
75 <fix system="urn:xccdf:fix:script:kickstart">
76 service slow down
77 </fix>
78 </Rule>
79 <Rule selected="false" id="xccdf_org.openscap.www_rule_2">
80 <title>Rule 2: Unsupported package command</title>
81 <fix system="urn:xccdf:fix:script:kickstart">
82 package build sources
83 </fix>
84 </Rule>
85 <Rule selected="false" id="xccdf_org.openscap.www_rule_3">
86 <title>Rule 3: Logvol command with offending trail</title>
87 <fix system="urn:xccdf:fix:script:kickstart">
88 logvol /var 158 crypto
89 </fix>
90 </Rule>
91 <Rule selected="false" id="xccdf_org.openscap.www_rule_4">
92 <title>Rule 4: Unknown command</title>
93 <fix system="urn:xccdf:fix:script:kickstart">
94 unknown command
95 </fix>
96 </Rule>
97 </Benchmark>
98 </ds:component>
99 </ds:data-stream-collection>