Debian Codegraph @

tests/mitre/oval_string_datatype.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:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" 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>2009-01-12T10:41:00-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:252" version="1" class="miscellaneous">
10 <metadata>
11 <title>Evaluate to true if the string datatype is properly supported</title>
12 <description>This definition is intended to evalutate to true if the interpreter properly supports the string datatype and all of its valid operations.</description>
13 </metadata>
14 <criteria operator="AND">
15 <criteria operator="AND" comment="True if the equals operation is supported">
16 <criterion comment="Test that the equals operation is supported with two equal string values." test_ref="oval:org.mitre.oval.test:tst:3"/>
17 <criterion negate="true" comment="Test that the equals operation is supported with two unequal string values." test_ref="oval:org.mitre.oval.test:tst:246"/>
18 </criteria>
19 <criteria operator="AND" comment="True if the not equal operation is supported">
20 <criterion negate="true" comment="Test that the not equal operation is supported with two equal string values." test_ref="oval:org.mitre.oval.test:tst:945"/>
21 <criterion comment="Test that the not equal operation is supported with two unequal string values." test_ref="oval:org.mitre.oval.test:tst:336"/>
22 </criteria>
23 <criteria operator="AND" comment="True if the case insensitive equals operation is supported">
24 <criterion comment="Test that the case insensitive equals operation is supported with two mixed case equal string values." test_ref="oval:org.mitre.oval.test:tst:468"/>
25 <criterion negate="true" comment="Test that the case insensitive equals operation is supported with two mixed case unequal string values." test_ref="oval:org.mitre.oval.test:tst:684"/>
26 </criteria>
27 <criteria operator="AND" comment="True if the case insensitive not equal operation is supported">
28 <criterion negate="true" comment="Test that the case insensitive not equal operation is supported with two mixed case equal string values." test_ref="oval:org.mitre.oval.test:tst:931"/>
29 <criterion comment="Test that the case insensitive not equal operation is supported with two mixed case unequal string values." test_ref="oval:org.mitre.oval.test:tst:914"/>
30 </criteria>
31 <criteria operator="AND" comment="True if the pattern match operation is supported">
32 <criterion comment="Test that the pattern match operation is supported with a string value that matches the specified regular expression." test_ref="oval:org.mitre.oval.test:tst:42"/>
33 <criterion negate="true" comment="Test that the pattern match operation is supported with a string value that doesn't match the specified regular expression." test_ref="oval:org.mitre.oval.test:tst:262"/>
34 </criteria>
35 </criteria>
36 </definition>
37 </definitions>
38 <tests>
39 <variable_test id="oval:org.mitre.oval.test:tst:3" version="1" comment="Test that the equals operation is supported with two equal string values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
40 <object object_ref="oval:org.mitre.oval.test:obj:972"/>
41 <state state_ref="oval:org.mitre.oval.test:ste:116"/>
42 </variable_test>
43 <variable_test id="oval:org.mitre.oval.test:tst:246" version="1" comment="Test that the equals operation is supported with two unequal string values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
44 <object object_ref="oval:org.mitre.oval.test:obj:485"/>
45 <state state_ref="oval:org.mitre.oval.test:ste:849"/>
46 </variable_test>
47 <variable_test id="oval:org.mitre.oval.test:tst:945" version="1" comment="Test that the not equal operation is supported with two equal string values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
48 <object object_ref="oval:org.mitre.oval.test:obj:972"/>
49 <state state_ref="oval:org.mitre.oval.test:ste:208"/>
50 </variable_test>
51 <variable_test id="oval:org.mitre.oval.test:tst:336" version="1" comment="Test that the not equal operation is supported with two unequal string values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
52 <object object_ref="oval:org.mitre.oval.test:obj:485"/>
53 <state state_ref="oval:org.mitre.oval.test:ste:909"/>
54 </variable_test>
55 <variable_test id="oval:org.mitre.oval.test:tst:468" version="1" comment="Test that the case insensitive equals operation is supported with two mixed case equal string values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
56 <object object_ref="oval:org.mitre.oval.test:obj:994"/>
57 <state state_ref="oval:org.mitre.oval.test:ste:87"/>
58 </variable_test>
59 <variable_test id="oval:org.mitre.oval.test:tst:684" version="1" comment="Test that the case insensitive equals operation is supported with two mixed case unequal string values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
60 <object object_ref="oval:org.mitre.oval.test:obj:59"/>
61 <state state_ref="oval:org.mitre.oval.test:ste:151"/>
62 </variable_test>
63 <variable_test id="oval:org.mitre.oval.test:tst:931" version="1" comment="Test that the case insensitive not equal operation is supported with two mixed case equal string values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
64 <object object_ref="oval:org.mitre.oval.test:obj:994"/>
65 <state state_ref="oval:org.mitre.oval.test:ste:176"/>
66 </variable_test>
67 <variable_test id="oval:org.mitre.oval.test:tst:914" version="1" comment="Test that the case insensitive not equal operation is supported with two mixed case unequal string values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
68 <object object_ref="oval:org.mitre.oval.test:obj:59"/>
69 <state state_ref="oval:org.mitre.oval.test:ste:527"/>
70 </variable_test>
71 <variable_test id="oval:org.mitre.oval.test:tst:42" version="1" comment="Test that the pattern match operation is supported with a string value that matches the specified regular expression." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
72 <object object_ref="oval:org.mitre.oval.test:obj:668"/>
73 <state state_ref="oval:org.mitre.oval.test:ste:323"/>
74 </variable_test>
75 <variable_test id="oval:org.mitre.oval.test:tst:262" version="1" comment="Test that the pattern match operation is supported with a string value that doesn't match the specified regular expression." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
76 <object object_ref="oval:org.mitre.oval.test:obj:106"/>
77 <state state_ref="oval:org.mitre.oval.test:ste:892"/>
78 </variable_test>
79 </tests>
80 <objects>
81 <variable_object id="oval:org.mitre.oval.test:obj:972" version="1" comment="This variable_object references the string value 'test_string'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
82 <var_ref>oval:org.mitre.oval.test:var:719</var_ref>
83 </variable_object>
84 <variable_object id="oval:org.mitre.oval.test:obj:485" version="1" comment="This variable_object references the string value 'string_test'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
85 <var_ref>oval:org.mitre.oval.test:var:651</var_ref>
86 </variable_object>
87 <variable_object id="oval:org.mitre.oval.test:obj:994" version="1" comment="This variable_object references the string value 'TeSt_StRiNg'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
88 <var_ref>oval:org.mitre.oval.test:var:382</var_ref>
89 </variable_object>
90 <variable_object id="oval:org.mitre.oval.test:obj:59" version="1" comment="This variable_object references the string value 'StRiNg_TeSt'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
91 <var_ref>oval:org.mitre.oval.test:var:739</var_ref>
92 </variable_object>
93 <variable_object id="oval:org.mitre.oval.test:obj:668" version="1" comment="This variable_object references the string value '9test9'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
94 <var_ref>oval:org.mitre.oval.test:var:425</var_ref>
95 </variable_object>
96 <variable_object id="oval:org.mitre.oval.test:obj:106" version="1" comment="This variable_object references the string value 'test'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
97 <var_ref>oval:org.mitre.oval.test:var:190</var_ref>
98 </variable_object>
99 </objects>
100 <states>
101 <variable_state id="oval:org.mitre.oval.test:ste:116" version="1" comment="This variable_state represents the string value 'test_string'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
102 <value>test_string</value>
103 </variable_state>
104 <variable_state id="oval:org.mitre.oval.test:ste:849" version="1" comment="This variable_state represents the string value 'test_string'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
105 <value>test_string</value>
106 </variable_state>
107 <variable_state id="oval:org.mitre.oval.test:ste:208" version="1" comment="This variable_state represents the string value 'test_string'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
108 <value operation="not equal">test_string</value>
109 </variable_state>
110 <variable_state id="oval:org.mitre.oval.test:ste:909" version="1" comment="This variable_state represents the string value 'test_string'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
111 <value operation="not equal">test_string</value>
112 </variable_state>
113 <variable_state id="oval:org.mitre.oval.test:ste:87" version="1" comment="This variable_state represents the string value 'test_string'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
114 <value operation="case insensitive equals">test_string</value>
115 </variable_state>
116 <variable_state id="oval:org.mitre.oval.test:ste:151" version="1" comment="This variable_state represents the string value 'test_string'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
117 <value operation="case insensitive equals">test_string</value>
118 </variable_state>
119 <variable_state id="oval:org.mitre.oval.test:ste:176" version="1" comment="This variable_state represents the string value 'test_string'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
120 <value operation="case insensitive not equal">test_string</value>
121 </variable_state>
122 <variable_state id="oval:org.mitre.oval.test:ste:527" version="1" comment="This variable_state represents the string value 'test_string'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
123 <value operation="case insensitive not equal">test_string</value>
124 </variable_state>
125 <variable_state id="oval:org.mitre.oval.test:ste:323" version="1" comment="This variable_state represents any string value that matches the regular expression '[0-9]([a-z])*[0-9]'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
126 <value operation="pattern match">[0-9]([a-z])*[0-9]</value>
127 </variable_state>
128 <variable_state id="oval:org.mitre.oval.test:ste:892" version="1" comment="This variable_state represents any string value that matches the regular expression '[0-9]([a-z])*[0-9]'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
129 <value operation="pattern match">[0-9]([a-z])*[0-9]</value>
130 </variable_state>
131 </states>
132 <variables>
133 <constant_variable id="oval:org.mitre.oval.test:var:719" version="1" comment="This constant_variable represents the string value 'test_string'." datatype="string">
134 <value>test_string</value>
135 </constant_variable>
136 <constant_variable id="oval:org.mitre.oval.test:var:651" version="1" comment="This constant_variable represents the string value 'string_test'." datatype="string">
137 <value>string_test</value>
138 </constant_variable>
139 <constant_variable id="oval:org.mitre.oval.test:var:382" version="1" comment="This constant_variable represents the string value 'TeSt_StRiNg'." datatype="string">
140 <value>TeSt_StRiNg</value>
141 </constant_variable>
142 <constant_variable id="oval:org.mitre.oval.test:var:739" version="1" comment="This constant_variable represents the string value 'StRiNg_TeSt'." datatype="string">
143 <value>StRiNg_TeSt</value>
144 </constant_variable>
145 <constant_variable id="oval:org.mitre.oval.test:var:425" version="1" comment="This constant_variable represents the string value '9test9'." datatype="string">
146 <value>9test9</value>
147 </constant_variable>
148 <constant_variable id="oval:org.mitre.oval.test:var:190" version="1" comment="This constant_variable represents the string value 'test'." datatype="string">
149 <value>test</value>
150 </constant_variable>
151 </variables>
152 </oval_definitions>