Debian Codegraph @

tests/probes/yamlfilecontent/test_probes_yamlfilecontent_key.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <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">
3
4 <generator>
5 <oval:product_name>yamlfilecontent</oval:product_name>
6 <oval:product_version>1.0</oval:product_version>
7 <oval:schema_version>5.11.3</oval:schema_version>
8 <oval:timestamp>2020-02-13T00:00:00-00:00</oval:timestamp>
9 </generator>
10
11 <definitions>
12
13 <definition class="compliance" version="1" id="oval:0:def:1"> <!-- comment="true" -->
14 <metadata>
15 <title></title>
16 <description></description>
17 </metadata>
18 <criteria operator="AND">
19 <criterion comment="get_root_scalar" test_ref="oval:0:tst:1"/>
20 <criterion comment="get_nested_scalar" test_ref="oval:0:tst:2"/>
21 </criteria>
22 </definition>
23
24 <definition class="compliance" version="1" id="oval:0:def:2"> <!-- comment="true" -->
25 <metadata>
26 <title></title>
27 <description></description>
28 </metadata>
29 <criteria operator="AND">
30 <criterion comment="get_non_scalar" test_ref="oval:0:tst:3"/>
31 </criteria>
32 </definition>
33
34 <definition class="compliance" version="1" id="oval:0:def:3"> <!-- comment="false" -->
35 <metadata>
36 <title></title>
37 <description></description>
38 </metadata>
39 <criteria operator="AND">
40 <criterion comment="get_non_existing_scalar" test_ref="oval:0:tst:4"/>
41 </criteria>
42 </definition>
43
44 <definition class="compliance" version="1" id="oval:0:def:4"> <!-- comment="true" -->
45 <metadata>
46 <title></title>
47 <description></description>
48 </metadata>
49 <criteria operator="AND">
50 <criterion comment="multiple_mapping_values" test_ref="oval:0:tst:5"/>
51 </criteria>
52 </definition>
53
54 <definition class="compliance" version="1" id="oval:0:def:5"> <!-- comment="true" -->
55 <metadata>
56 <title></title>
57 <description></description>
58 </metadata>
59 <criteria operator="AND">
60 <criterion comment="map_target" test_ref="oval:0:tst:6"/>
61 </criteria>
62 </definition>
63
64 <definition class="compliance" version="1" id="oval:0:def:6"> <!-- comment="false" -->
65 <metadata>
66 <title></title>
67 <description></description>
68 </metadata>
69 <criteria operator="AND">
70 <criterion comment="missing_map_keys" test_ref="oval:0:tst:7"/>
71 </criteria>
72 </definition>
73
74 <definition class="compliance" version="1" id="oval:0:def:7"> <!-- comment="error" -->
75 <metadata>
76 <title></title>
77 <description></description>
78 </metadata>
79 <criteria operator="AND">
80 <criterion comment="array_of_maps" test_ref="oval:0:tst:8"/>
81 </criteria>
82 </definition>
83
84 <definition class="compliance" version="1" id="oval:0:def:8"> <!-- comment="true" -->
85 <metadata>
86 <title></title>
87 <description></description>
88 </metadata>
89 <criteria operator="AND">
90 <criterion comment="array_of_maps_of_array" test_ref="oval:0:tst:9"/>
91 </criteria>
92 </definition>
93
94 <definition class="compliance" version="1" id="oval:0:def:9"> <!-- comment="true" -->
95 <metadata>
96 <title></title>
97 <description></description>
98 </metadata>
99 <criteria operator="AND">
100 <criterion comment="array_of_maps_of_array_2" test_ref="oval:0:tst:10"/>
101 </criteria>
102 </definition>
103 </definitions>
104
105 <tests>
106
107 <ind-def:yamlfilecontent_test version="1" id="oval:0:tst:1" check="all" comment="true">
108 <ind-def:object object_ref="oval:0:obj:1"/>
109 <ind-def:state state_ref="oval:0:ste:1"/>
110 </ind-def:yamlfilecontent_test>
111
112 <ind-def:yamlfilecontent_test version="1" id="oval:0:tst:2" check="all" comment="true">
113 <ind-def:object object_ref="oval:0:obj:2"/>
114 <ind-def:state state_ref="oval:0:ste:2"/>
115 </ind-def:yamlfilecontent_test>
116
117 <ind-def:yamlfilecontent_test version="1" id="oval:0:tst:3" check="all" comment="true">
118 <ind-def:object object_ref="oval:0:obj:3"/>
119 </ind-def:yamlfilecontent_test>
120
121 <ind-def:yamlfilecontent_test version="1" id="oval:0:tst:4" check="all" comment="false">
122 <ind-def:object object_ref="oval:0:obj:4"/>
123 </ind-def:yamlfilecontent_test>
124
125 <ind-def:yamlfilecontent_test version="1" id="oval:0:tst:5" check="all" comment="true">
126 <ind-def:object object_ref="oval:0:obj:5"/>
127 <ind-def:state state_ref="oval:0:ste:5"/>
128 </ind-def:yamlfilecontent_test>
129
130 <ind-def:yamlfilecontent_test version="1" id="oval:0:tst:6" check="all" comment="true">
131 <ind-def:object object_ref="oval:0:obj:6"/>
132 <ind-def:state state_ref="oval:0:ste:6"/>
133 </ind-def:yamlfilecontent_test>
134
135 <ind-def:yamlfilecontent_test version="1" id="oval:0:tst:7" check="all" comment="false">
136 <ind-def:object object_ref="oval:0:obj:7"/>
137 </ind-def:yamlfilecontent_test>
138
139 <ind-def:yamlfilecontent_test version="1" id="oval:0:tst:8" check="all" comment="error">
140 <ind-def:object object_ref="oval:0:obj:8"/>
141 </ind-def:yamlfilecontent_test>
142
143 <ind-def:yamlfilecontent_test version="1" id="oval:0:tst:9" check="all" comment="true">
144 <ind-def:object object_ref="oval:0:obj:9"/>
145 <ind-def:state state_ref="oval:0:ste:9"/>
146 </ind-def:yamlfilecontent_test>
147
148 <ind-def:yamlfilecontent_test version="1" id="oval:0:tst:10" check="all" comment="true">
149 <ind-def:object object_ref="oval:0:obj:10"/>
150 <ind-def:state state_ref="oval:0:ste:10"/>
151 </ind-def:yamlfilecontent_test>
152 </tests>
153
154 <objects>
155
156 <ind-def:yamlfilecontent_object version="1" id="oval:0:obj:1">
157 <ind-def:path>/tmp</ind-def:path>
158 <ind-def:filename>openshift-logging.yaml</ind-def:filename>
159 <ind-def:yamlpath>.kind</ind-def:yamlpath>
160 </ind-def:yamlfilecontent_object>
161
162 <ind-def:yamlfilecontent_object version="1" id="oval:0:obj:2">
163 <ind-def:path>/tmp</ind-def:path>
164 <ind-def:filename>openshift-logging.yaml</ind-def:filename>
165 <ind-def:yamlpath>.metadata.namespace</ind-def:yamlpath>
166 </ind-def:yamlfilecontent_object>
167
168 <ind-def:yamlfilecontent_object version="1" id="oval:0:obj:3">
169 <ind-def:path>/tmp</ind-def:path>
170 <ind-def:filename>openshift-logging.yaml</ind-def:filename>
171 <ind-def:yamlpath>.metadata</ind-def:yamlpath>
172 </ind-def:yamlfilecontent_object>
173
174 <ind-def:yamlfilecontent_object version="1" id="oval:0:obj:4">
175 <ind-def:path>/tmp</ind-def:path>
176 <ind-def:filename>openshift-logging.yaml</ind-def:filename>
177 <ind-def:yamlpath>.doesnt.exist</ind-def:yamlpath>
178 </ind-def:yamlfilecontent_object>
179
180 <ind-def:yamlfilecontent_object version="1" id="oval:0:obj:5">
181 <ind-def:path>/tmp</ind-def:path>
182 <ind-def:filename>openshift-logging.yaml</ind-def:filename>
183 <ind-def:yamlpath>.status.conditions[:]['status','type']</ind-def:yamlpath>
184 </ind-def:yamlfilecontent_object>
185
186 <ind-def:yamlfilecontent_object version="1" id="oval:0:obj:6">
187 <ind-def:path>/tmp</ind-def:path>
188 <ind-def:filename>openshift-logging.yaml</ind-def:filename>
189 <ind-def:yamlpath>.status.conditions[:]</ind-def:yamlpath>
190 </ind-def:yamlfilecontent_object>
191
192 <ind-def:yamlfilecontent_object version="1" id="oval:0:obj:7">
193 <ind-def:path>/tmp</ind-def:path>
194 <ind-def:filename>openshift-logging.yaml</ind-def:filename>
195 <ind-def:yamlpath>.status.conditions[:]['nonexistent','dummy']</ind-def:yamlpath>
196 </ind-def:yamlfilecontent_object>
197
198 <ind-def:yamlfilecontent_object version="1" id="oval:0:obj:8">
199 <ind-def:path>/tmp</ind-def:path>
200 <ind-def:filename>openshift-logging.yaml</ind-def:filename>
201 <ind-def:yamlpath>.spec.outputs</ind-def:yamlpath>
202 </ind-def:yamlfilecontent_object>
203
204 <ind-def:yamlfilecontent_object version="1" id="oval:0:obj:9">
205 <ind-def:path>/tmp</ind-def:path>
206 <ind-def:filename>openshift-logging.yaml</ind-def:filename>
207 <ind-def:yamlpath>.items[:]['requiredDropCapabilities','name','q','z'][:]</ind-def:yamlpath>
208 </ind-def:yamlfilecontent_object>
209
210 <ind-def:yamlfilecontent_object version="1" id="oval:0:obj:10">
211 <ind-def:path>/tmp</ind-def:path>
212 <ind-def:filename>openshift-logging.yaml</ind-def:filename>
213 <ind-def:yamlpath>.items[:].requiredDropCapabilities[:]</ind-def:yamlpath>
214 </ind-def:yamlfilecontent_object>
215 </objects>
216
217 <states>
218
219 <ind-def:yamlfilecontent_state version="1" id="oval:0:ste:1">
220 <ind-def:value datatype="record">
221 <field name="#" datatype="string">LogForwarding</field>
222 </ind-def:value>
223 </ind-def:yamlfilecontent_state>
224
225 <ind-def:yamlfilecontent_state version="1" id="oval:0:ste:2">
226 <ind-def:value datatype="record">
227 <field name="#" datatype="string">openshift-logging</field>
228 </ind-def:value>
229 </ind-def:yamlfilecontent_state>
230
231 <ind-def:yamlfilecontent_state version="1" id="oval:0:ste:5">
232 <ind-def:value datatype="record" entity_check="at least one">
233 <field name="status" datatype="string">True</field>
234 <field name="type" datatype="string">Upgradeable</field>
235 </ind-def:value>
236 </ind-def:yamlfilecontent_state>
237
238 <ind-def:yamlfilecontent_state version="1" id="oval:0:ste:6">
239 <ind-def:value datatype="record" entity_check="at least one">
240 <field name="status" datatype="string">True</field>
241 <field name="reason" datatype="string">AsExpected</field>
242 <field name="type" datatype="string">Upgradeable</field>
243 <field name="last^transition^time" datatype="string" operation="pattern match">^\d+-\d+-.*Z$</field>
244 </ind-def:value>
245 </ind-def:yamlfilecontent_state>
246
247 <ind-def:yamlfilecontent_state version="1" id="oval:0:ste:9">
248 <ind-def:value datatype="record" entity_check="at least one">
249 <field name="required^drop^capabilities" operation="pattern match" entity_check="at least one">^KILL$</field>
250 <field name="name" entity_check="at least one">Name</field>
251 </ind-def:value>
252 </ind-def:yamlfilecontent_state>
253
254 <ind-def:yamlfilecontent_state version="1" id="oval:0:ste:10">
255 <ind-def:value datatype="record" entity_check="at least one">
256 <field name="#" operation="pattern match" entity_check="at least one">^KILL$</field>
257 </ind-def:value>
258 </ind-def:yamlfilecontent_state>
259
260 </states>
261
262 </oval_definitions>