Debian Codegraph @

tests/mitre/ind-def_xmlfilecontent_test.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <oval_definitions xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:win-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#windows" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5">
3 <generator>
4 <oval:schema_version>5.10.1</oval:schema_version>
5 <oval:timestamp>2007-01-31T14:30:20.988-05:00</oval:timestamp>
6 <terms_of_use>Copyright (c) 2002-2012, The MITRE Corporation. All rights reserved. The contents of this file are subject to the license described in terms.txt.</terms_of_use>
7 </generator>
8 <definitions>
9 <definition id="oval:org.mitre.oval.test:def:870" version="2" class="compliance">
10 <metadata>
11 <title>Evaluate to true if the ind-def:xmlfilecontent_test is properly supported.</title>
12 <description>This definition is intended to evalutate to true if the interpreter properly supports the ind-def:xmlfilecontent_test.</description>
13 </metadata>
14 <notes>
15 <note>It is important to note that the values used in this test definition are specific to a particular machine, and may not necessarily apply to your system. As a result, in order to have the definition return a result of 'true', you must either change these values to the ones found on your particular system, or you must configure your system to use these values.</note>
16 </notes>
17 <criteria>
18 <criterion comment="Test that the xmlfilecontent_object with a path, filename, and xpath is supported." test_ref="oval:org.mitre.oval.test:tst:979"/>
19 <criterion comment="Test that the xmlfilecontent_object with a path pattern match, filename, and xpath is supported." test_ref="oval:org.mitre.oval.test:tst:420"/>
20 <criterion comment="Test that the xmlfilecontent_object with a path, filename pattern match, and xpath is supported." test_ref="oval:org.mitre.oval.test:tst:133"/>
21 <criterion comment="Test that the xmlfilecontent_object with a path, filename not equals, and xpath is supported." test_ref="oval:org.mitre.oval.test:tst:741"/>
22 <criterion comment="Test that the max_depth behavior is supported with a limited depth of recursion." test_ref="oval:org.mitre.oval.test:tst:621"/>
23 <criterion comment="Test that the max_depth behavior is supported with a unlimited depth of recursion." test_ref="oval:org.mitre.oval.test:tst:436"/>
24 <criterion comment="Test that the recurse_direction behavior is supported." test_ref="oval:org.mitre.oval.test:tst:20"/>
25 </criteria>
26 </definition>
27 </definitions>
28 <tests>
29 <xmlfilecontent_test id="oval:org.mitre.oval.test:tst:979" version="1" comment="Test that the xmlfilecontent_object with a path, filename, and xpath is supported." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
30 <object object_ref="oval:org.mitre.oval.test:obj:48"/>
31 <state state_ref="oval:org.mitre.oval.test:ste:360"/>
32 </xmlfilecontent_test>
33 <xmlfilecontent_test id="oval:org.mitre.oval.test:tst:420" version="1" comment="Test that the xmlfilecontent_object with a path pattern match, filename, and xpath is supported." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
34 <object object_ref="oval:org.mitre.oval.test:obj:85"/>
35 <state state_ref="oval:org.mitre.oval.test:ste:582"/>
36 </xmlfilecontent_test>
37 <xmlfilecontent_test id="oval:org.mitre.oval.test:tst:133" version="1" comment="Test that the xmlfilecontent_object with a path, filename pattern match, and xpath is supported." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
38 <object object_ref="oval:org.mitre.oval.test:obj:252"/>
39 <state state_ref="oval:org.mitre.oval.test:ste:276"/>
40 </xmlfilecontent_test>
41 <xmlfilecontent_test id="oval:org.mitre.oval.test:tst:741" version="1" comment="Test that the xmlfilecontent_object with a path, filename not equals, and xpath is supported." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
42 <object object_ref="oval:org.mitre.oval.test:obj:252"/>
43 <state state_ref="oval:org.mitre.oval.test:ste:276"/>
44 </xmlfilecontent_test>
45 <xmlfilecontent_test id="oval:org.mitre.oval.test:tst:621" version="1" comment="Test that the max_depth behavior is supported with a limited depth of recursion." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
46 <object object_ref="oval:org.mitre.oval.test:obj:751"/>
47 <state state_ref="oval:org.mitre.oval.test:ste:192"/>
48 </xmlfilecontent_test>
49 <xmlfilecontent_test id="oval:org.mitre.oval.test:tst:436" version="1" comment="Test that the max_depth behavior is supported with a unlimited depth of recursion." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
50 <object object_ref="oval:org.mitre.oval.test:obj:451"/>
51 <state state_ref="oval:org.mitre.oval.test:ste:786"/>
52 </xmlfilecontent_test>
53 <xmlfilecontent_test id="oval:org.mitre.oval.test:tst:20" version="2" comment="Test that the recurse_direction behavior is supported." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
54 <object object_ref="oval:org.mitre.oval.test:obj:701"/>
55 <state state_ref="oval:org.mitre.oval.test:ste:987"/>
56 </xmlfilecontent_test>
57 </tests>
58 <objects>
59 <xmlfilecontent_object id="oval:org.mitre.oval.test:obj:48" version="1" comment="This object represents a xmlfilecontent_item with a path equal to '/tmp/support/xml/classes/class1', a filename equal to 'section1.xml', and an xpath query equal to '//*/grades/grade[@type='test']/text()'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
60 <path>/tmp/support/xml/classes/class1</path>
61 <filename>section1.xml</filename>
62 <xpath>//*/grades/grade[@type='test']/text()</xpath>
63 </xmlfilecontent_object>
64 <xmlfilecontent_object id="oval:org.mitre.oval.test:obj:85" version="1" comment="This object represents a xmlfilecontent_item with a path that matches the regular expression '^/tmp/support/xml/classes/class[0-9]$', a filename equal to 'section1.xml', and an xpath query equal to '//*/student[@status='full-time']/name/text()'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
65 <path operation="pattern match">^/tmp/support/xml/classes/class[0-9]$</path>
66 <filename>section1.xml</filename>
67 <xpath>//*/student[@status='full-time']/name/text()</xpath>
68 </xmlfilecontent_object>
69 <xmlfilecontent_object id="oval:org.mitre.oval.test:obj:252" version="1" comment="This object represents a xmlfilecontent_item with a path equal to '/tmp/support/xml/classes/class2', a filename that matches the regular expression 'section(1|2)\.xml', and an xpath query equal to 'count(//*/student)'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
70 <path>/tmp/support/xml/classes/class2</path>
71 <filename operation="pattern match">section(1|2)\.xml</filename>
72 <xpath>count(//*/student)</xpath>
73 </xmlfilecontent_object>
74 <xmlfilecontent_object id="oval:org.mitre.oval.test:obj:109" version="1" comment="This object represents a xmlfilecontent_item with a path equal to '/tmp/support/xml/classes/class1', a filename equal to 'section1.xml', and an xpath query equal to '//*/grades/grade[@type='test']/text()'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
75 <path>/tmp/support/xml/classes/class1</path>
76 <filename operation="not equal">section1.xml</filename>
77 <xpath>//*/grades/grade[@type='test']/text()</xpath>
78 </xmlfilecontent_object>
79 <xmlfilecontent_object id="oval:org.mitre.oval.test:obj:751" version="1" comment="This object represents a xmlfilecontent_item with a path equal to '/tmp/support/xml/classes', recursing down one level, a filename equal to 'section1.xml', and an xpath query equal to '//*/grades/grade[@type='test']/text()'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
80 <behaviors max_depth="1" recurse_direction="down"/>
81 <path>/tmp/support/xml/classes</path>
82 <filename>section1.xml</filename>
83 <xpath>//*/grades/grade[@type='test']/text()</xpath>
84 </xmlfilecontent_object>
85 <xmlfilecontent_object id="oval:org.mitre.oval.test:obj:451" version="1" comment="This object represents a xmlfilecontent_item with a path equal to '/tmp/support', recursing down infinitely, a filename equal to 'section1.xml', and an xpath query equal to '//*/student[@status='full-time']/name/text()'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
86 <behaviors max_depth="-1" recurse_direction="down"/>
87 <path>/tmp/support</path>
88 <filename>section1.xml</filename>
89 <xpath>//*/student[@status='full-time']/name/text()</xpath>
90 </xmlfilecontent_object>
91 <xmlfilecontent_object id="oval:org.mitre.oval.test:obj:701" version="1" comment="This object represents a xmlfilecontent_item with a path equal to '/tmp/support/xml/classes/class2/subclass2', recursing up one level, a filename that matches the regular expression 'section(1|2)\.xml', and an xpath query equal to 'count(//*/student)'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
92 <behaviors max_depth="1" recurse_direction="up"/>
93 <path>/tmp/support/xml/classes/class2/subclass2</path>
94 <filename operation="pattern match">section(1|2)\.xml</filename>
95 <xpath>count(//*/student)</xpath>
96 </xmlfilecontent_object>
97 </objects>
98 <states>
99 <xmlfilecontent_state id="oval:org.mitre.oval.test:ste:360" version="1" comment="This state represents a xmlfilecontent_item with a path equal to '/tmp/support/xml/classes/class1', a filename equal to 'section1.xml', an xpath query equal to '//*/grades/grade[@type='test']/text()', and a value_of that matches the regular expression '(83|87|93|86|100|76|53|97)'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
100 <path>/tmp/support/xml/classes/class1</path>
101 <filename>section1.xml</filename>
102 <xpath>//*/grades/grade[@type='test']/text()</xpath>
103 <value_of operation="pattern match">(83|87|93|86|100|76|53|97)</value_of>
104 </xmlfilecontent_state>
105 <xmlfilecontent_state id="oval:org.mitre.oval.test:ste:582" version="1" comment="This state represents a xmlfilecontent_item with a path that matches the regular expression '^/tmp/support/xml/classes/class[0-9]$', a filename equal to 'section1.xml', an xpath query equal to '//*/student[@status='full-time']/name/text()', and value_of that matches the regular expression '(Bill|Kate)'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
106 <path operation="pattern match">^/tmp/support/xml/classes/class[0-9]$</path>
107 <filename>section1.xml</filename>
108 <xpath>//*/student[@status='full-time']/name/text()</xpath>
109 <value_of operation="pattern match">(Bill|Kate)</value_of>
110 </xmlfilecontent_state>
111 <xmlfilecontent_state id="oval:org.mitre.oval.test:ste:276" version="1" comment="This state represents a xmlfilecontent_item with a path equal to '/tmp/support/xml/classes/class2', a filename that matches the regular expression 'section(1|2)\.xml', an xpath query equal to 'count(//*/student)', and a value_of equal to '4'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
112 <path>/tmp/support/xml/classes/class2</path>
113 <filename operation="pattern match">section(1|2)\.xml</filename>
114 <xpath>count(//*/student)</xpath>
115 <value_of>4</value_of>
116 </xmlfilecontent_state>
117 <xmlfilecontent_state id="oval:org.mitre.oval.test:ste:101" version="1" comment="This state represents a xmlfilecontent_item with a path equal to '/tmp/support/xml/classes/class1', a filename equal to 'section1.xml', an xpath query equal to '//*/grades/grade[@type='test']/text()', and a value_of that matches the regular expression '(83|87|93|86|100|76|53|97)'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
118 <path>/tmp/support/xml/classes/class1</path>
119 <filename operation="not equal">section1.xml</filename>
120 <xpath>//*/grades/grade[@type='test']/text()</xpath>
121 <value_of operation="pattern match">(83|87|93|86|100|76|53|97)</value_of>
122 </xmlfilecontent_state>
123 <xmlfilecontent_state id="oval:org.mitre.oval.test:ste:192" version="1" comment="This state represents a xmlfilecontent_item with a path that matches the regular expression '^/tmp/support/xml/classes/class[0-9]$', a filename equal to 'section1.xml', an xpath query equal to '//*/grades/grade[@type='test']/text()', and a value_of that matches the regular expression '(83|87|93|86|100|76|53|97)'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
124 <path operation="pattern match">^/tmp/support/xml/classes/class[0-9]$</path>
125 <filename>section1.xml</filename>
126 <xpath>//*/grades/grade[@type='test']/text()</xpath>
127 <value_of operation="pattern match">(83|87|93|86|100|76|53|97)</value_of>
128 </xmlfilecontent_state>
129 <xmlfilecontent_state id="oval:org.mitre.oval.test:ste:786" version="1" comment="This state represents a xmlfilecontent_item with a path that matches the regular expression '^/tmp/support/xml/classes/class[0-9]$', a filename equal to 'section1.xml', an xpath query equal to '//*/student[@status='full-time']/name/text()', and a value_of that matches the regular expression '(Bill|Kate)'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
130 <path operation="pattern match">^/tmp/support/xml/classes/class[0-9]$</path>
131 <filename>section1.xml</filename>
132 <xpath>//*/student[@status='full-time']/name/text()</xpath>
133 <value_of operation="pattern match">(Bill|Kate)</value_of>
134 </xmlfilecontent_state>
135 <xmlfilecontent_state id="oval:org.mitre.oval.test:ste:987" version="2" comment="This object represents a xmlfilecontent_item with a path equal to '/tmp/support/xml/classes/class2', a filename that matches the regular expression 'section(1|2)\.xml', an xpath query equal to 'count(//*/student)', and a value_of equal to '4'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
136 <path>/tmp/support/xml/classes/class2</path>
137 <filename operation="pattern match">section(1|2)\.xml</filename>
138 <xpath>count(//*/student)</xpath>
139 <value_of>4</value_of>
140 </xmlfilecontent_state>
141 </states>
142 </oval_definitions>