Debian Codegraph @

tests/API/XCCDF/variable_instance/requires_both-oval.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <oval_definitions xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"
3 xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"
4 xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"
5 xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5"
6 xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"
7 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8 xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd
9 http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd
10 http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd
11 http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd
12 http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd">
13 <generator>
14 <oval:product_name>Šimon Lukašík</oval:product_name>
15 <oval:schema_version>5.10.1</oval:schema_version>
16 <oval:timestamp>2013-06-01T12:00:00+02:00</oval:timestamp>
17 </generator>
18 <definitions>
19 <definition class="compliance" id="oval:com.example.www:def:1" version="1">
20 <metadata>
21 <title>Lookup correct value set in an XML file</title>
22 <affected family="unix">
23 <platform>Red Hat Enterprise Linux X</platform>
24 </affected>
25 <reference ref_id="CCE-3315-9" source="CCE"/>
26 <description>This description is self explanatory.</description>
27 </metadata>
28 <criteria>
29 <criterion test_ref="oval:com.example.www:tst:1"/>
30 </criteria>
31 </definition>
32 <definition class="compliance" id="oval:com.example.www:def:2" version="1">
33 <metadata>
34 <title>Lookup correct value in an XML file determined by OVAL variable</title>
35 <description>Everyone needs a description</description>
36 </metadata>
37 <criteria>
38 <criterion test_ref="oval:com.example.www:tst:2"/>
39 </criteria>
40 </definition>
41 </definitions>
42 <tests>
43 <ind-def:xmlfilecontent_test id="oval:com.example.www:tst:1" version="1" check="at least one" comment="File shall contain both values">
44 <ind-def:object object_ref="oval:com.example.www:obj:1"/>
45 <ind-def:state state_ref="oval:com.example.www:ste:1"/>
46 </ind-def:xmlfilecontent_test>
47 <ind-def:xmlfilecontent_test id="oval:com.example.www:tst:2" version="1" check="at least one" comment="It is better to be roughly right, then precisely wrong.">
48 <ind-def:object object_ref="oval:com.example.www:obj:2"/>
49 <ind-def:state state_ref="oval:com.example.www:ste:2"/>
50 </ind-def:xmlfilecontent_test>
51 </tests>
52 <objects>
53 <ind-def:xmlfilecontent_object id="oval:com.example.www:obj:1" version="1">
54 <ind-def:filepath>./testing_file.xml</ind-def:filepath>
55 <ind-def:xpath>/root/object/@value</ind-def:xpath>
56 </ind-def:xmlfilecontent_object>
57 <ind-def:xmlfilecontent_object id="oval:com.example.www:obj:2" version="1">
58 <ind-def:filepath datatype="string" operation="equals" var_ref="oval:com.example.www:var:2"/>
59 <ind-def:xpath>/root/object/@value</ind-def:xpath>
60 </ind-def:xmlfilecontent_object>
61 </objects>
62 <states>
63 <ind-def:xmlfilecontent_state id="oval:com.example.www:ste:1" version="1" comment="our dummy content of the file">
64 <ind-def:value_of datatype="string" operation="equals" var_check="all" var_ref="oval:com.example.www:var:1"/>
65 </ind-def:xmlfilecontent_state>
66 <ind-def:xmlfilecontent_state id="oval:com.example.www:ste:2" version="1" comment="our dummy content of the file">
67 <ind-def:value_of datatype="string" operation="equals" var_check="all" var_ref="oval:com.example.www:var:1"/>
68 </ind-def:xmlfilecontent_state>
69 </states>
70 <variables>
71 <external_variable id="oval:com.example.www:var:1" version="1" datatype="string" comment="External variable"/>
72 <external_variable id="oval:com.example.www:var:2" version="1" datatype="string" comment="External variable"/>
73 </variables>
74 </oval_definitions>