Debian Codegraph @

tests/API/XCCDF/unittests/test_xccdf_refine_rule_refine.xccdf.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <Benchmark xmlns="http://checklists.nist.gov/xccdf/1.1" id="testing-xcccdf" resolved="false">
3 <status>incomplete</status>
4 <version>1.0</version>
5
6 <Profile id="grandparent">
7 <title>Grand parent</title>
8 <!-- 2. -->
9 <refine-rule idref="rule-id-override-refine" weight="6" />
10 </Profile>
11
12 <Profile id="parent" extends="grandparent">
13 <title>Parent profile</title>
14 <!-- 1. -->
15 <refine-rule idref="rule-id-selected-and-role" selector="selected" />
16 <!-- 2. -->
17 <refine-rule idref="rule-id-override-refine" weight="7" />
18 <!-- 3. -->
19 <refine-rule idref="rule-id-partially-refined" weight="5" role="unchecked" />
20 <!-- 6. -->
21 <refine-rule idref="rule-id-enable-parent-check" role="unchecked" />
22 <!-- 8. -->
23 <refine-rule idref="rule-id-inherited" role="unchecked" />
24 <!-- 13. -->
25 <refine-rule idref="rule-id-partially-refined-2" weight="5" role="full" />
26 </Profile>
27
28 <Profile id="child" extends="parent">
29 <title>Child profile</title>
30 <!-- 1. -->
31 <refine-rule idref="rule-id-selected-and-role" role="full" />
32 <!-- 2. -->
33 <refine-rule idref="rule-id-override-refine" weight="8" />
34 <!-- 3. -->
35 <refine-rule idref="rule-id-partially-refined" role="full" />
36 <!-- 5. -->
37 <refine-rule idref="rule-id-enable-check" role="full" />
38 <!-- 6. -->
39 <refine-rule idref="rule-id-enable-parent-check" role="full" />
40 <!-- 9. -->
41 <refine-rule idref="rule-id-simple" role="unchecked" />
42 <!-- 10. -->
43 <refine-rule idref="cluster-id-1" role="unchecked" />
44 <!-- 11. -->
45 <refine-rule idref="rule-id-weight" weight="2" />
46 <!-- 12. -->
47 <refine-rule idref="rule-id-multiple-check" role="full" selector="selected" />
48 <!-- 13. -->
49 <refine-rule idref="rule-id-partially-refined-2" role="unchecked" />
50 <!-- 14. -->
51 <refine-rule idref="rule-id-severity" severity="high" />
52 <!-- 15. -->
53 <refine-rule idref="rule-id-weight-override" weight="4" />
54 <!-- 16. -->
55 <refine-rule idref="rule-id-unscored" role="unscored" />
56 <!-- 17. -->
57 <refine-rule idref="rule-id-keep-parent-severity" role="unscored" />
58 </Profile>
59
60 <!-- 1. -->
61 <Rule selected="true" id="rule-id-selected-and-role" role="unchecked">
62 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
63 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:1" />
64 </check>
65 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" selector="selected">
66 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:2" />
67 </check>
68 </Rule>
69 <!-- 2. @weight should be two times refined -->
70 <Rule selected="true" id="rule-id-override-refine">
71 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
72 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:2" />
73 </check>
74 </Rule>
75 <!-- 3. the rule should be checked -->
76 <Rule selected="true" id="rule-id-partially-refined">
77 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
78 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:2" />
79 </check>
80 </Rule>
81 <!-- 4. the rule should be checked -->
82 <Rule selected="true" id="rule-id-checked">
83 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
84 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:2" />
85 </check>
86 </Rule>
87 <!-- 5. enable-check -->
88 <Rule selected="true" id="rule-id-enable-check" role="unchecked">
89 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
90 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:2" />
91 </check>
92 </Rule>
93 <!-- 6. enable-parent-check -->
94 <Rule selected="true" id="rule-id-enable-parent-check">
95 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
96 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:2" />
97 </check>
98 </Rule>
99 <!-- 7. without refine-rule - should not be checked -->
100 <Rule selected="true" id="rule-id-without-refine" role="unchecked">
101 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
102 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:2" />
103 </check>
104 </Rule>
105 <!-- 8. refine-rule for Rule[@id] - from inherited profile -->
106 <Rule selected="true" id="rule-id-inherited">
107 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
108 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:2" />
109 </check>
110 </Rule>
111 <!-- 9. refine-rule for Rule[@id] -->
112 <Rule selected="true" id="rule-id-simple">
113 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
114 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:2" />
115 </check>
116 </Rule>
117 <!-- 10. refine-rule for Rule[@cluster-id] -->
118 <Rule selected="true" id="rule-id-cluster" cluster-id="cluster-id-1">
119 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
120 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:2" />
121 </check>
122 </Rule>
123 <!-- 11. the rule should have modified weight -->
124 <Rule id="rule-id-weight">
125 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
126 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:2" />
127 </check>
128 </Rule>
129 <!-- 12. refine-rule for Rule[@id and @selector="..."] -->
130 <Rule selected="true" id="rule-id-multiple-check" role="unchecked">
131 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
132 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:1" />
133 </check>
134 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" selector="selected">
135 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:2" />
136 </check>
137 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" selector="nonselected">
138 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:3" />
139 </check>
140 </Rule>
141 <!-- 13. the rule should not be checked -->
142 <Rule selected="true" id="rule-id-partially-refined-2">
143 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
144 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:2" />
145 </check>
146 </Rule>
147 <!-- 14. severity should be set -->
148 <Rule selected="true" id="rule-id-severity">
149 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
150 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:1" />
151 </check>
152 </Rule>
153 <!-- 15. weight should be overrided -->
154 <Rule selected="true" id="rule-id-weight-override" weight="23">
155 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
156 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:1" />
157 </check>
158 </Rule>
159 <!-- 16. -->
160 <Rule selected="true" id="rule-id-unscored">
161 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
162 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:1" />
163 </check>
164 </Rule>
165 <!-- 17. -->
166 <Rule selected="true" id="rule-id-keep-parent-severity" severity="low">
167 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
168 <check-content-ref href="test_xccdf_check_content_ref_without_name_attr.oval.xml" name="oval:moc.elpmaxe.www:def:1" />
169 </check>
170 </Rule>
171 </Benchmark>