Debian Codegraph @

tests/API/OVAL/report_variable_values/report_variable_values.def.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <oval_definitions
3 xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5"
4 xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5"
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"
7 xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"
8 xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"
9 xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"
10 xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd
11 http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd
12 http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd
13 http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd
14 http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd">
15 <generator>
16 <oval:product_name>Homo sapiens</oval:product_name>
17 <oval:schema_version>5.10.1</oval:schema_version>
18 <oval:timestamp>2013-06-26T00:00:00+00:00</oval:timestamp>
19 </generator>
20
21 <definitions>
22 <definition class="miscellaneous" version="1" id="oval:x:def:1">
23 <metadata>
24 <title>report-variable-values test</title>
25 <description>Check that variable values are reported correctly, see the respective all.sh script for explanation.</description>
26 </metadata>
27 <criteria comment="x">
28 <criterion test_ref="oval:x:tst:1"/>
29 <criterion test_ref="oval:x:tst:2"/>
30 <criterion test_ref="oval:x:tst:3"/>
31 <criterion test_ref="oval:x:tst:4"/>
32 <criterion test_ref="oval:x:tst:5"/>
33 <criterion test_ref="oval:x:tst:6"/>
34 <criterion test_ref="oval:x:tst:8"/>
35 <criterion test_ref="oval:x:tst:9"/>
36 </criteria>
37 </definition>
38 </definitions>
39
40 <tests>
41 <ind-def:textfilecontent54_test id="oval:x:tst:1" check="all" version="1"
42 comment="a simple object">
43 <ind-def:object object_ref="oval:x:obj:1"/>
44 </ind-def:textfilecontent54_test>
45 <ind-def:textfilecontent54_test id="oval:x:tst:2" check="all" version="1"
46 comment="an object and a state with the same var_ref; possible duplicates">
47 <ind-def:object object_ref="oval:x:obj:2"/>
48 <ind-def:state state_ref="oval:x:ste:2"/>
49 </ind-def:textfilecontent54_test>
50 <ind-def:textfilecontent54_test id="oval:x:tst:3" check="none satisfy" version="1"
51 comment="an object with non-matching states">
52 <ind-def:object object_ref="oval:x:obj:3"/>
53 <ind-def:state state_ref="oval:x:ste:1"/>
54 <ind-def:state state_ref="oval:x:ste:2"/>
55 </ind-def:textfilecontent54_test>
56 <ind-def:textfilecontent54_test id="oval:x:tst:4" check="all" check_existence="none_exist" version="1"
57 comment="a nonexistent object, uses local_variable">
58 <ind-def:object object_ref="oval:x:obj:4"/>
59 </ind-def:textfilecontent54_test>
60 <ind-def:textfilecontent54_test id="oval:x:tst:5" check="all" check_existence="any_exist" version="1"
61 comment="a nonexistent object and a state">
62 <ind-def:object object_ref="oval:x:obj:4"/>
63 <ind-def:state state_ref="oval:x:ste:2"/>
64 </ind-def:textfilecontent54_test>
65 <ind-def:textfilecontent54_test id="oval:x:tst:6" check="all" version="1"
66 comment="a set object with an external variable">
67 <ind-def:object object_ref="oval:x:obj:6"/>
68 </ind-def:textfilecontent54_test>
69 <ind-def:textfilecontent54_test id="oval:x:tst:7" check="all" version="1"
70 comment="unreferenced test; verify no variables are exported for it">
71 <ind-def:object object_ref="oval:x:obj:7"/>
72 </ind-def:textfilecontent54_test>
73 <ind-def:variable_test id="oval:x:tst:8" check="all" version="1"
74 comment="a variable_object">
75 <ind-def:object object_ref="oval:x:obj:8"/>
76 </ind-def:variable_test>
77 <ind-def:textfilecontent54_test id="oval:x:tst:9" check="all" version="1"
78 comment="an object with a filter">
79 <ind-def:object object_ref="oval:x:obj:9"/>
80 </ind-def:textfilecontent54_test>
81 </tests>
82
83 <objects>
84 <ind-def:textfilecontent54_object id="oval:x:obj:1" version="1" comment="x">
85 <ind-def:filepath datatype="string" operation="equals">/etc/passwd</ind-def:filepath>
86 <ind-def:pattern datatype="string" operation="pattern match">^.*$</ind-def:pattern>
87 <ind-def:instance datatype="int" operation="equals" var_ref="oval:x:var:1" var_check="at least one"/>
88 </ind-def:textfilecontent54_object>
89 <ind-def:textfilecontent54_object id="oval:x:obj:2" version="1" comment="x">
90 <ind-def:filepath datatype="string" operation="equals">/etc/passwd</ind-def:filepath>
91 <ind-def:pattern datatype="string" operation="pattern match">^.*$</ind-def:pattern>
92 <ind-def:instance datatype="int" operation="equals" var_ref="oval:x:var:2"/>
93 </ind-def:textfilecontent54_object>
94 <ind-def:textfilecontent54_object id="oval:x:obj:3" version="1" comment="x">
95 <ind-def:filepath datatype="string" operation="equals">/etc/passwd</ind-def:filepath>
96 <ind-def:pattern datatype="string" operation="pattern match">^.*$</ind-def:pattern>
97 <ind-def:instance datatype="int" operation="equals" var_ref="oval:x:var:3"/>
98 </ind-def:textfilecontent54_object>
99 <ind-def:textfilecontent54_object id="oval:x:obj:4" version="1" comment="x">
100 <ind-def:filepath datatype="string" operation="equals">/etc/passwd</ind-def:filepath>
101 <ind-def:pattern datatype="string" operation="pattern match" var_ref="oval:x:var:4"/>
102 <ind-def:instance datatype="int" operation="equals" var_ref="oval:x:var:3"/>
103 </ind-def:textfilecontent54_object>
104 <ind-def:textfilecontent54_object id="oval:x:obj:5" version="1" comment="x">
105 <ind-def:filepath datatype="string" operation="equals">/etc/passwd</ind-def:filepath>
106 <ind-def:pattern datatype="string" operation="pattern match">^.*$</ind-def:pattern>
107 <ind-def:instance datatype="int" operation="equals" var_ref="oval:x:var:5" var_check="at least one"/>
108 </ind-def:textfilecontent54_object>
109 <ind-def:textfilecontent54_object id="oval:x:obj:6" version="1" comment="x">
110 <set set_operator="UNION">
111 <set set_operator="UNION">
112 <object_reference>oval:x:obj:1</object_reference>
113 <filter action="include">oval:x:ste:2</filter>
114 </set>
115 <set set_operator="UNION">
116 <object_reference>oval:x:obj:5</object_reference>
117 </set>
118 </set>
119 </ind-def:textfilecontent54_object>
120 <ind-def:textfilecontent54_object id="oval:x:obj:7" version="1" comment="x">
121 <ind-def:filepath datatype="string" operation="equals">/etc/passwd</ind-def:filepath>
122 <ind-def:pattern datatype="string" operation="pattern match">^.*$</ind-def:pattern>
123 <ind-def:instance datatype="int" operation="equals" var_ref="oval:x:var:7"/>
124 </ind-def:textfilecontent54_object>
125 <ind-def:variable_object id="oval:x:obj:8" version="1" comment="x">
126 <ind-def:var_ref>oval:x:var:2</ind-def:var_ref>
127 </ind-def:variable_object>
128 <ind-def:textfilecontent54_object id="oval:x:obj:9" version="1" comment="x">
129 <ind-def:filepath datatype="string" operation="equals">/etc/passwd</ind-def:filepath>
130 <ind-def:pattern datatype="string" operation="pattern match">^.*$</ind-def:pattern>
131 <ind-def:instance datatype="int" operation="less than or equal">3</ind-def:instance>
132 <filter action="exclude">oval:x:ste:2</filter>
133 </ind-def:textfilecontent54_object>
134 </objects>
135
136 <states>
137 <ind-def:textfilecontent54_state id="oval:x:ste:1" version="1" comment="x">
138 <ind-def:instance datatype="int" operation="equals" var_ref="oval:x:var:1" var_check="at least one"/>
139 </ind-def:textfilecontent54_state>
140 <ind-def:textfilecontent54_state id="oval:x:ste:2" version="1" comment="x">
141 <ind-def:instance datatype="int" operation="equals" var_ref="oval:x:var:2"/>
142 </ind-def:textfilecontent54_state>
143 </states>
144
145 <variables>
146 <constant_variable id="oval:x:var:1" version="1" datatype="int" comment="x">
147 <value>0</value>
148 <value>1</value>
149 </constant_variable>
150 <constant_variable id="oval:x:var:2" version="1" datatype="int" comment="x">
151 <value>2</value>
152 </constant_variable>
153 <constant_variable id="oval:x:var:3" version="1" datatype="int" comment="x">
154 <value>3</value>
155 </constant_variable>
156 <local_variable id="oval:x:var:4" version="1" datatype="string" comment="x">
157 <object_component object_ref="oval:x:obj:1" item_field="text"/>
158 </local_variable>
159 <external_variable id="oval:x:var:5" version="1" datatype="int" comment="x"/>
160 <constant_variable id="oval:x:var:7" version="1" datatype="int" comment="x">
161 <value>7</value>
162 </constant_variable>
163 </variables>
164 </oval_definitions>