Debian Codegraph @

tests/API/XCCDF/unittests/test_xccdf_requires_conflicts.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_simple-xccdf.xml" schematron-version="1.2">
3 <ds:data-stream id="scap_org.open-scap_datastream_from_xccdf_simple-xccdf.xml" scap-version="1.2" use-case="OTHER">
4 <ds:checklists>
5 <ds:component-ref id="scap_org.open-scap_cref_simple-xccdf.xml" xlink:href="#scap_org.open-scap_comp_simple-xccdf.xml">
6 <cat:catalog>
7 <cat:uri name="simple-oval.xml" uri="#scap_org.open-scap_cref_simple-oval.xml"/>
8 </cat:catalog>
9 </ds:component-ref>
10 </ds:checklists>
11 <ds:checks>
12 <ds:component-ref id="scap_org.open-scap_cref_simple-oval.xml" xlink:href="#scap_org.open-scap_comp_simple-oval.xml"/>
13 </ds:checks>
14 </ds:data-stream>
15 <ds:component id="scap_org.open-scap_comp_simple-xccdf.xml" timestamp="2013-01-22T12:20:35">
16 <Benchmark xmlns="http://checklists.nist.gov/xccdf/1.2" id="xccdf_moc.elpmaxe.www_benchmark_test">
17 <status>incomplete</status>
18 <version>1.0</version>
19 <Profile id="xccdf_org.open-scap_profile_override">
20 <title>Override</title>
21 <select idref="xccdf_moc.elpmaxe.www_rule_1" selected="false"/>
22 <select idref="xccdf_moc.elpmaxe.www_group_1_2" selected="false"/>
23 </Profile>
24 <Group id="xccdf_moc.elpmaxe.www_group_1_2" selected="true">
25 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_1">
26 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
27 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
28 </check>
29 </Rule>
30 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_2">
31 <conflicts idref="xccdf_moc.elpmaxe.www_rule_3"/>
32 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
33 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
34 </check>
35 </Rule>
36 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_1_2">
37 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
38 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
39 </check>
40 </Rule>
41 <Group selected="true" id="xccdf_moc.elpmaxe.www_group_1_2_13">
42 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_1_3">
43 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
44 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
45 </check>
46 </Rule>
47 </Group>
48 </Group>
49 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_3">
50 <requires idref="xccdf_moc.elpmaxe.www_rule_4"/>
51 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
52 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
53 </check>
54 </Rule>
55 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_4">
56 <requires idref="xccdf_moc.elpmaxe.www_rule_1"/>
57 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
58 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
59 </check>
60 </Rule>
61 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_5">
62 <requires idref="xccdf_moc.elpmaxe.www_rule_3"/>
63 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
64 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
65 </check>
66 </Rule>
67 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_6">
68 <conflicts idref="xccdf_moc.elpmaxe.www_rule_3"/>
69 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
70 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
71 </check>
72 </Rule>
73 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_7">
74 <requires idref="xccdf_moc.elpmaxe.www_rule_2"/>
75 <conflicts idref="xccdf_moc.elpmaxe.www_group_1_2"/>
76 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
77 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
78 </check>
79 </Rule>
80 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_8">
81 <requires idref="xccdf_moc.elpmaxe.www_group_1_2"/>
82 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
83 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
84 </check>
85 </Rule>
86 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_9">
87 <requires idref="xccdf_moc.elpmaxe.www_rule_12"/>
88 <conflicts idref="xccdf_moc.elpmaxe.www_group_1_2"/>
89 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
90 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
91 </check>
92 </Rule>
93 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_10">
94 <conflicts idref="xccdf_moc.elpmaxe.www_group_1_2"/>
95 <conflicts idref="xccdf_moc.elpmaxe.www_rule_3"/>
96 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
97 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
98 </check>
99 </Rule>
100 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_11">
101 <requires idref="xccdf_moc.elpmaxe.www_group_1_2_13"/>
102 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
103 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
104 </check>
105 </Rule>
106 <Group selected="true" id="xccdf_moc.elpmaxe.www_group_12_13">
107 <requires idref="xccdf_moc.elpmaxe.www_group_1_2_13"/>
108 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_12">
109 <conflicts idref="xccdf_moc.elpmaxe.www_group_1_2_13"/>
110 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
111 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
112 </check>
113 </Rule>
114 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_13">
115 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
116 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
117 </check>
118 </Rule>
119 </Group>
120 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_14">
121 <requires idref="xccdf_moc.elpmaxe.www_rule_4"/>
122 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
123 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
124 </check>
125 </Rule>
126 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_15">
127 <requires idref="xccdf_moc.elpmaxe.www_rule_1 xccdf_moc.elpmaxe.www_rule_3"/>
128 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
129 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
130 </check>
131 </Rule>
132 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_16">
133 <requires idref="xccdf_moc.elpmaxe.www_rule_1 xccdf_moc.elpmaxe.www_rule_3"/>
134 <requires idref="xccdf_moc.elpmaxe.www_rule_5"/>
135 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
136 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
137 </check>
138 </Rule>
139 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_17">
140 <requires idref="xccdf_moc.elpmaxe.www_rule_1 xccdf_moc.elpmaxe.www_rule_3"/>
141 <requires idref="xccdf_moc.elpmaxe.www_group_1_2"/>
142 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
143 <check-content-ref href="simple-oval.xml" name="oval:x:def:1"/>
144 </check>
145 </Rule>
146 </Benchmark>
147 </ds:component>
148 <ds:component id="scap_org.open-scap_comp_simple-oval.xml" timestamp="2013-01-22T15:13:00">
149 <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">
150 <generator>
151 <oval:schema_version>5.10</oval:schema_version>
152 <oval:timestamp>0001-01-01T00:00:00+00:00</oval:timestamp>
153 </generator>
154 <definitions>
155 <definition class="compliance" version="1" id="oval:x:def:1">
156 <metadata>
157 <title>x</title>
158 <description>x</description>
159 <affected family="unix">
160 <platform>x</platform>
161 </affected>
162 </metadata>
163 <criteria comment="x" operator="OR">
164 <criterion test_ref="oval:x:tst:1" comment="always pass"/>
165 <criterion test_ref="oval:x:tst:2" comment="always fail"/>
166 </criteria>
167 </definition>
168 <definition class="compliance" version="1" id="oval:x:def:2">
169 <metadata>
170 <title>x</title>
171 <description>x</description>
172 <affected family="unix">
173 <platform>x</platform>
174 </affected>
175 </metadata>
176 <criteria comment="x" operator="AND">
177 <criterion test_ref="oval:x:tst:1" comment="always pass"/>
178 <criterion test_ref="oval:x:tst:2" comment="always fail"/>
179 </criteria>
180 </definition>
181 </definitions>
182 <tests>
183 <variable_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:x:tst:1" check="all" comment="always pass" version="1">
184 <object object_ref="oval:x:obj:1"/>
185 </variable_test>
186 <variable_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:x:tst:2" check="all" check_existence="none_exist" comment="always fail" version="1">
187 <object object_ref="oval:x:obj:1"/>
188 </variable_test>
189 </tests>
190 <objects>
191 <variable_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:x:obj:1" version="1" comment="x">
192 <var_ref>oval:x:var:1</var_ref>
193 </variable_object>
194 </objects>
195 <variables>
196 <constant_variable id="oval:x:var:1" version="1" comment="x" datatype="string">
197 <value>x</value>
198 </constant_variable>
199 </variables>
200 </oval_definitions>
201 </ds:component>
202 </ds:data-stream-collection>