Debian Codegraph @

tests/DS/eval_cpe/sds.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" id="scap_org.open-scap_collection_from_xccdf_first-xccdf.xml" schematron-version="1.2">
3 <ds:data-stream id="scap_org.open-scap_datastream_tst" scap-version="1.2" use-case="OTHER">
4 <ds:dictionaries>
5 <ds:component-ref id="scap_org.open-scap_cref_stub-cpe.xml" xlink:href="#scap_org.open-scap_comp_stub-cpe.xml">
6 <cat:catalog>
7 <cat:uri name="stub-cpe-oval.xml" uri="#scap_org.open-scap_cref_stub-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_first-xccdf.xml" xlink:href="#scap_org.open-scap_comp_first-xccdf.xml">
13 <cat:catalog>
14 <cat:uri name="stub-oval.xml" uri="#scap_org.open-scap_cref_stub-oval.xml"/>
15 </cat:catalog>
16 </ds:component-ref>
17 </ds:checklists>
18 <ds:checks>
19 <ds:component-ref id="scap_org.open-scap_cref_stub-oval.xml" xlink:href="#scap_org.open-scap_comp_stub-oval.xml"/>
20 <ds:component-ref id="scap_org.open-scap_cref_stub-cpe-oval.xml" xlink:href="#scap_org.open-scap_comp_stub-cpe-oval.xml"/>
21 </ds:checks>
22 </ds:data-stream>
23 <ds:component id="scap_org.open-scap_comp_stub-oval.xml" timestamp="2012-10-10T13:33:44">
24 <oval_definitions xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd">
25 <generator>
26 <oval:schema_version>5.10</oval:schema_version>
27 <oval:timestamp>0001-01-01T00:00:00+00:00</oval:timestamp>
28 </generator>
29 <definitions>
30 <definition class="compliance" version="1" id="oval:x:def:1">
31 <metadata>
32 <title>x</title>
33 <description>x</description>
34 <affected family="unix">
35 <platform>x</platform>
36 </affected>
37 </metadata>
38 <criteria comment="x">
39 <criterion test_ref="oval:x:tst:1"/>
40 </criteria>
41 </definition>
42 </definitions>
43 <tests>
44 <variable_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:x:tst:1" check="all" comment="x" version="1">
45 <object object_ref="oval:x:obj:1"/>
46 </variable_test>
47 </tests>
48 <objects>
49 <variable_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:x:obj:1" version="1" comment="x">
50 <var_ref>oval:x:var:1</var_ref>
51 </variable_object>
52 </objects>
53 <variables>
54 <constant_variable id="oval:x:var:1" version="1" comment="x" datatype="string">
55 <value>x</value>
56 </constant_variable>
57 </variables>
58 </oval_definitions>
59 </ds:component>
60 <ds:component id="scap_org.open-scap_comp_first-xccdf.xml" timestamp="2012-10-10T13:34:54">
61 <Benchmark xmlns="http://checklists.nist.gov/xccdf/1.2" id="xccdf_moc.elpmaxe.www_benchmark_first">
62 <status>incomplete</status>
63 <version>1.0</version>
64 <Profile id="xccdf_org.ssgproject.content_profile_test">
65 <title xml:lang="en-US">Test profile</title>
66 <select idref="xccdf_moc.elpmaxe.www_rule_applicable_pass" selected="false"/>
67 <select idref="xccdf_moc.elpmaxe.www_rule_applicable_fail" selected="true"/>
68 <select idref="xccdf_moc.elpmaxe.www_rule_notapplicable" selected="true"/>
69 </Profile>
70 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_applicable_pass">
71 <platform idref="cpe:/o:example:applicable:5"/>
72 <fix system="urn:xccdf:fix:script:sh" id="remediation_rule_applicable">remediation_rule_applicable_pass
73 </fix>
74 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
75 <check-content-ref href="stub-oval.xml"/>
76 </check>
77 </Rule>
78 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_applicable_fail">
79 <platform idref="cpe:/o:example:applicable:5"/>
80 <fix system="urn:xccdf:fix:script:sh" id="remediation_rule_applicable_fail">remediation_rule_applicable_fail
81 </fix>
82 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
83 <check-content-ref href="stub-cpe-oval.xml"/>
84 </check>
85 </Rule>
86 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_notapplicable">
87 <platform idref="cpe:/o:example:not_applicable:5"/>
88 <fix system="urn:xccdf:fix:script:sh" id="remediation_rule_notapplicable">remediation_rule_notapplicable
89 </fix>
90 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
91 <check-content-ref href="stub-oval.xml"/>
92 </check>
93 </Rule>
94 </Benchmark>
95 </ds:component>
96 <ds:component id="scap_org.open-scap_comp_stub-cpe.xml" timestamp="2012-10-10T13:34:54">
97 <cpe-list xmlns="http://cpe.mitre.org/dictionary/2.0"
98 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99 xsi:schemaLocation="http://cpe.mitre.org/dictionary/2.0 http://cpe.mitre.org/files/cpe-dictionary_2.1.xsd">
100 <cpe-item name="cpe:/o:example:applicable:5">
101 <title xml:lang="en-us">Applicable example platform</title>
102 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="stub-cpe-oval.xml">oval:x:def:1</check>
103 </cpe-item>
104 <cpe-item name="cpe:/o:example:not_applicable:5">
105 <title xml:lang="en-US">Not applicable example platform</title>
106 </cpe-item>
107 </cpe-list>
108 </ds:component>
109 <ds:component id="scap_org.open-scap_comp_stub-cpe-oval.xml" timestamp="2012-10-10T13:34:54">
110 <oval_definitions xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd">
111 <generator>
112 <oval:schema_version>5.10</oval:schema_version>
113 <oval:timestamp>0001-01-01T00:00:00+00:00</oval:timestamp>
114 </generator>
115
116 <definitions>
117 <definition class="compliance" version="1" id="oval:x:def:1">
118 <metadata>
119 <title>x</title>
120 <description>x</description>
121 <affected family="unix">
122 <platform>x</platform>
123 </affected>
124 </metadata>
125 <criteria comment="x" operator="OR">
126 <criterion test_ref="oval:x:tst:1" comment="always pass"/>
127 <criterion test_ref="oval:x:tst:2" comment="always fail"/>
128 </criteria>
129 </definition>
130 <definition class="compliance" version="1" id="oval:x:def:2">
131 <metadata>
132 <title>x</title>
133 <description>x</description>
134 <affected family="unix">
135 <platform>x</platform>
136 </affected>
137 </metadata>
138 <criteria comment="x" operator="AND">
139 <criterion test_ref="oval:x:tst:1" comment="always pass"/>
140 <criterion test_ref="oval:x:tst:2" comment="always fail"/>
141 </criteria>
142 </definition>
143 </definitions>
144
145 <tests>
146 <variable_test id="oval:x:tst:1" check="all" comment="always pass" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
147 <object object_ref="oval:x:obj:1"/>
148 </variable_test>
149
150 <variable_test id="oval:x:tst:2" check="all" check_existence="none_exist" comment="always fail" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
151 <object object_ref="oval:x:obj:1"/>
152 </variable_test>
153 </tests>
154
155 <objects>
156 <variable_object id="oval:x:obj:1" version="1" comment="x" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
157 <var_ref>oval:x:var:1</var_ref>
158 </variable_object>
159 </objects>
160
161 <variables>
162 <constant_variable id="oval:x:var:1" version="1" comment="x" datatype="string">
163 <value>x</value>
164 </constant_variable>
165 </variables>
166 </oval_definitions>
167 </ds:component>
168 </ds:data-stream-collection>