| 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:549" version="1" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if the oval:CheckEnumeration simple type is properly supported for the relationship between objects and states</title> |
| 12 | <description>This definition is intended to evalutate to true if the interpreter properly supports the oval:CheckEnumeration simple type for the relationship between objects and states.</description> |
| 13 | </metadata> |
| 14 | <criteria operator="AND"> |
| 15 | <criterion negate="true" comment="Test that the CheckEnumeration value 'all' is supported where none of the individual results are true." test_ref="oval:org.mitre.oval.test:tst:872"/> |
| 16 | <criterion comment="Test that the CheckEnumeration value 'all' is supported where all of the individual results are true." test_ref="oval:org.mitre.oval.test:tst:588"/> |
| 17 | <criterion negate="true" comment="Test that the CheckEnumeration value 'at least one' is supported where none of the individual results are true." test_ref="oval:org.mitre.oval.test:tst:13"/> |
| 18 | <criterion comment="Test that the CheckEnumeration value 'at least one' is supported where one of the individual results are true." test_ref="oval:org.mitre.oval.test:tst:214"/> |
| 19 | <criterion comment="Test that the CheckEnumeration value 'at least one' is supported where all of the individual results are true." test_ref="oval:org.mitre.oval.test:tst:272"/> |
| 20 | <criterion comment="Test that the CheckEnumeration value 'none exist' is supported where no matching objects are found." test_ref="oval:org.mitre.oval.test:tst:523"/> |
| 21 | <criterion negate="true" comment="Test that the CheckEnumeration value 'none exist' is supported where matching objects are found." test_ref="oval:org.mitre.oval.test:tst:375"/> |
| 22 | <criterion comment="Test that the CheckEnumeration value 'none satisfy' is supported where none of the individual results are true." test_ref="oval:org.mitre.oval.test:tst:902"/> |
| 23 | <criterion negate="true" comment="Test that the CheckEnumeration value 'none satisfy' is supported where all of the individual results are true." test_ref="oval:org.mitre.oval.test:tst:569"/> |
| 24 | <criterion negate="true" comment="Test that the CheckEnumeration value 'only one' is supported where none of the individual results are true." test_ref="oval:org.mitre.oval.test:tst:689"/> |
| 25 | <criterion comment="Test that the CheckEnumeration value 'only one' is supported where one of the individual results are true." test_ref="oval:org.mitre.oval.test:tst:422"/> |
| 26 | <criterion negate="true" comment="Test that the CheckEnumeration value 'only one' is supported where all of the individual results are true." test_ref="oval:org.mitre.oval.test:tst:662"/> |
| 27 | </criteria> |
| 28 | </definition> |
| 29 | </definitions> |
| 30 | <tests> |
| 31 | <variable_test id="oval:org.mitre.oval.test:tst:872" version="1" comment="Test that the CheckEnumeration value 'all' is supported where none of the individual results are true." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 32 | <object object_ref="oval:org.mitre.oval.test:obj:457"/> |
| 33 | <state state_ref="oval:org.mitre.oval.test:ste:235"/> |
| 34 | </variable_test> |
| 35 | <variable_test id="oval:org.mitre.oval.test:tst:588" version="1" comment="Test that the CheckEnumeration value 'all' is supported where all of the individual results are true." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 36 | <object object_ref="oval:org.mitre.oval.test:obj:457"/> |
| 37 | <state state_ref="oval:org.mitre.oval.test:ste:47"/> |
| 38 | </variable_test> |
| 39 | <variable_test id="oval:org.mitre.oval.test:tst:13" version="1" comment="Test that the CheckEnumeration value 'at least one' is supported where none of the individual results are true." 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:457"/> |
| 41 | <state state_ref="oval:org.mitre.oval.test:ste:235"/> |
| 42 | </variable_test> |
| 43 | <variable_test id="oval:org.mitre.oval.test:tst:214" version="1" comment="Test that the CheckEnumeration value 'at least one' is supported where one of the individual results are true." 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:457"/> |
| 45 | <state state_ref="oval:org.mitre.oval.test:ste:436"/> |
| 46 | </variable_test> |
| 47 | <variable_test id="oval:org.mitre.oval.test:tst:272" version="1" comment="Test that the CheckEnumeration value 'at least one' is supported where all of the individual results are true." 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:457"/> |
| 49 | <state state_ref="oval:org.mitre.oval.test:ste:47"/> |
| 50 | </variable_test> |
| 51 | <variable_test id="oval:org.mitre.oval.test:tst:523" version="1" comment="Test that the CheckEnumeration value 'none exist' is supported where no matching objects are found." check_existence="at_least_one_exists" check="none exist" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 52 | <object object_ref="oval:org.mitre.oval.test:obj:53"/> |
| 53 | </variable_test> |
| 54 | <variable_test id="oval:org.mitre.oval.test:tst:375" version="1" comment="Test that the CheckEnumeration value 'none exist' is supported where matching objects are found." check_existence="at_least_one_exists" check="none exist" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 55 | <object object_ref="oval:org.mitre.oval.test:obj:457"/> |
| 56 | </variable_test> |
| 57 | <variable_test id="oval:org.mitre.oval.test:tst:902" version="1" comment="Test that the CheckEnumeration value 'none satisfy' is supported where none of the individual results are true." check_existence="at_least_one_exists" check="none satisfy" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 58 | <object object_ref="oval:org.mitre.oval.test:obj:457"/> |
| 59 | <state state_ref="oval:org.mitre.oval.test:ste:235"/> |
| 60 | </variable_test> |
| 61 | <variable_test id="oval:org.mitre.oval.test:tst:569" version="1" comment="Test that the CheckEnumeration value 'none satisfy' is supported where all of the individual results are true." check_existence="at_least_one_exists" check="none satisfy" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 62 | <object object_ref="oval:org.mitre.oval.test:obj:457"/> |
| 63 | <state state_ref="oval:org.mitre.oval.test:ste:47"/> |
| 64 | </variable_test> |
| 65 | <variable_test id="oval:org.mitre.oval.test:tst:689" version="1" comment="Test that the CheckEnumeration value 'only one' is supported where none of the individual results are true." check_existence="at_least_one_exists" check="only one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 66 | <object object_ref="oval:org.mitre.oval.test:obj:457"/> |
| 67 | <state state_ref="oval:org.mitre.oval.test:ste:235"/> |
| 68 | </variable_test> |
| 69 | <variable_test id="oval:org.mitre.oval.test:tst:422" version="1" comment="Test that the CheckEnumeration value 'only one' is supported where one of the individual results are true." check_existence="at_least_one_exists" check="only one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 70 | <object object_ref="oval:org.mitre.oval.test:obj:457"/> |
| 71 | <state state_ref="oval:org.mitre.oval.test:ste:436"/> |
| 72 | </variable_test> |
| 73 | <variable_test id="oval:org.mitre.oval.test:tst:662" version="1" comment="Test that the CheckEnumeration value 'only one' is supported where all of the individual results are true." check_existence="at_least_one_exists" check="only one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 74 | <object object_ref="oval:org.mitre.oval.test:obj:457"/> |
| 75 | <state state_ref="oval:org.mitre.oval.test:ste:47"/> |
| 76 | </variable_test> |
| 77 | </tests> |
| 78 | <objects> |
| 79 | <variable_object id="oval:org.mitre.oval.test:obj:651" version="1" comment="This variable_object references the integer value '0'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 80 | <var_ref>oval:org.mitre.oval.test:var:736</var_ref> |
| 81 | </variable_object> |
| 82 | <variable_object id="oval:org.mitre.oval.test:obj:207" version="1" comment="This variable_object references the integer values '1', '2', and '3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 83 | <var_ref>oval:org.mitre.oval.test:var:143</var_ref> |
| 84 | </variable_object> |
| 85 | <variable_object id="oval:org.mitre.oval.test:obj:53" version="1" comment="This variable_object represents a object that does not exist on the system." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 86 | <set set_operator="INTERSECTION" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 87 | <object_reference>oval:org.mitre.oval.test:obj:651</object_reference> |
| 88 | <object_reference>oval:org.mitre.oval.test:obj:207</object_reference> |
| 89 | </set> |
| 90 | </variable_object> |
| 91 | <variable_object id="oval:org.mitre.oval.test:obj:457" version="1" comment="This variable_object represents multiple objects that exist on a system." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 92 | <set set_operator="UNION" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 93 | <object_reference>oval:org.mitre.oval.test:obj:651</object_reference> |
| 94 | <object_reference>oval:org.mitre.oval.test:obj:207</object_reference> |
| 95 | </set> |
| 96 | </variable_object> |
| 97 | </objects> |
| 98 | <states> |
| 99 | <variable_state id="oval:org.mitre.oval.test:ste:235" version="1" comment="This variable_object represents a integer value equal to '-1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 100 | <value datatype="int">-1</value> |
| 101 | </variable_state> |
| 102 | <variable_state id="oval:org.mitre.oval.test:ste:47" version="1" comment="This variable_object represents a integer value that is greater than the integer value '-1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 103 | <value datatype="int" operation="greater than">-1</value> |
| 104 | </variable_state> |
| 105 | <variable_state id="oval:org.mitre.oval.test:ste:436" version="1" comment="This variable_object represents a integer value that is greater than the integer value '-1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 106 | <value datatype="int" operation="greater than">0</value> |
| 107 | </variable_state> |
| 108 | </states> |
| 109 | <variables> |
| 110 | <constant_variable id="oval:org.mitre.oval.test:var:736" version="1" comment="This constant_variable represents the integer value '0'." datatype="int"> |
| 111 | <value>0</value> |
| 112 | </constant_variable> |
| 113 | <constant_variable id="oval:org.mitre.oval.test:var:143" version="1" comment="This constant_variable represents the integer values '1', '2', and '3'." datatype="int"> |
| 114 | <value>1</value> |
| 115 | <value>2</value> |
| 116 | <value>3</value> |
| 117 | </constant_variable> |
| 118 | </variables> |
| 119 | </oval_definitions> |