| 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-05-21T11:46:00-04: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:118" version="1" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if the oval-def:variable_component construct is properly supported</title> |
| 12 | <description>This definition is intended to evalutate to true if the interpreter properly supports the oval-def:variable_component construct.</description> |
| 13 | </metadata> |
| 14 | <criteria operator="AND"> |
| 15 | <criterion comment="Test that the variable_object is supported with the var_ref attribute referencing an OVAL Variable that contains a single value." test_ref="oval:org.mitre.oval.test:tst:311"/> |
| 16 | <criterion comment="Test that the variable_object is supported with the var_ref attribute referencing an OVAL Variable that contains multiple values." test_ref="oval:org.mitre.oval.test:tst:180"/> |
| 17 | </criteria> |
| 18 | </definition> |
| 19 | </definitions> |
| 20 | <tests> |
| 21 | <variable_test id="oval:org.mitre.oval.test:tst:311" version="1" comment="Test that the variable_object is supported with the var_ref attribute referencing an OVAL Variable that contains a single value." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 22 | <object object_ref="oval:org.mitre.oval.test:obj:480"/> |
| 23 | <state state_ref="oval:org.mitre.oval.test:ste:967"/> |
| 24 | </variable_test> |
| 25 | <variable_test id="oval:org.mitre.oval.test:tst:180" version="1" comment="Test that the variable_object is supported with the var_ref attribute referencing an OVAL Variable that contains multiple values." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 26 | <object object_ref="oval:org.mitre.oval.test:obj:293"/> |
| 27 | <state state_ref="oval:org.mitre.oval.test:ste:157"/> |
| 28 | </variable_test> |
| 29 | </tests> |
| 30 | <objects> |
| 31 | <variable_object id="oval:org.mitre.oval.test:obj:480" version="1" comment="This variable_object represents a string value equal to 'Validation Test String'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 32 | <var_ref>oval:org.mitre.oval.test:var:817</var_ref> |
| 33 | </variable_object> |
| 34 | <variable_object id="oval:org.mitre.oval.test:obj:293" version="1" comment="This variable_object represents the string values 'Validation Test String1', 'Validation Test String2', and 'Validation Test String3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 35 | <var_ref>oval:org.mitre.oval.test:var:866</var_ref> |
| 36 | </variable_object> |
| 37 | </objects> |
| 38 | <states> |
| 39 | <variable_state id="oval:org.mitre.oval.test:ste:967" version="1" comment="This state represents a variable_object where the string value is equal to 'Validation Test String'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 40 | <value>Validation Test String</value> |
| 41 | </variable_state> |
| 42 | <variable_state id="oval:org.mitre.oval.test:ste:157" version="1" comment="This state represents a variable_object where the string value matches the regular expression 'Validation Test String[0-9]'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 43 | <value operation="pattern match">Validation Test String[0-9]</value> |
| 44 | </variable_state> |
| 45 | </states> |
| 46 | <variables> |
| 47 | <constant_variable id="oval:org.mitre.oval.test:var:721" version="1" comment="This variable represents the string value 'Validation Test String'." datatype="string"> |
| 48 | <value>Validation Test String</value> |
| 49 | </constant_variable> |
| 50 | <constant_variable id="oval:org.mitre.oval.test:var:852" version="1" comment="This variable represents the string values 'Validation Test String1', 'Validation Test String2', and 'Validation Test String3'." datatype="string"> |
| 51 | <value>Validation Test String1</value> |
| 52 | <value>Validation Test String2</value> |
| 53 | <value>Validation Test String3</value> |
| 54 | </constant_variable> |
| 55 | <local_variable id="oval:org.mitre.oval.test:var:817" version="1" comment="This variable represents the string value 'Validation Test String' but uses the variable_component construct to obtain the value." datatype="string"> |
| 56 | <variable_component var_ref="oval:org.mitre.oval.test:var:721"/> |
| 57 | </local_variable> |
| 58 | <local_variable id="oval:org.mitre.oval.test:var:866" version="1" comment="This variable represents the string values 'Validation Test String1', 'Validation Test String2', and 'Validation Test String3' but uses the variable_component construct to obtain the values." datatype="string"> |
| 59 | <variable_component var_ref="oval:org.mitre.oval.test:var:852"/> |
| 60 | </local_variable> |
| 61 | </variables> |
| 62 | </oval_definitions> |