| 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:170" version="1" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if the oval:CheckEnumeration simple type is properly supported for the relationship between the instances of an entity and multiple variable values</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 the instances of an entity and multiple variable values.</description> |
| 13 | </metadata> |
| 14 | <criteria operator="AND"> |
| 15 | <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:636"/> |
| 16 | <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:879"/> |
| 17 | <criterion comment="Test that the CheckEnumeration value 'at least one' is supported where more than one of the individual results are true." test_ref="oval:org.mitre.oval.test:tst:271"/> |
| 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:719"/> |
| 19 | <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:11"/> |
| 20 | <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:714"/> |
| 21 | <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:208"/> |
| 22 | <criterion negate="true" comment="Test that the CheckEnumeration value 'only one' is supported where more than one of the individual results are true." test_ref="oval:org.mitre.oval.test:tst:892"/> |
| 23 | <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:735"/> |
| 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:633"/> |
| 25 | </criteria> |
| 26 | </definition> |
| 27 | </definitions> |
| 28 | <tests> |
| 29 | <variable_test id="oval:org.mitre.oval.test:tst:636" 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"> |
| 30 | <object object_ref="oval:org.mitre.oval.test:obj:196"/> |
| 31 | <state state_ref="oval:org.mitre.oval.test:ste:454"/> |
| 32 | </variable_test> |
| 33 | <variable_test id="oval:org.mitre.oval.test:tst:879" 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"> |
| 34 | <object object_ref="oval:org.mitre.oval.test:obj:196"/> |
| 35 | <state state_ref="oval:org.mitre.oval.test:ste:325"/> |
| 36 | </variable_test> |
| 37 | <variable_test id="oval:org.mitre.oval.test:tst:271" version="1" comment="Test that the CheckEnumeration value 'at least one' is supported where more than one of the individual results are true." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 38 | <object object_ref="oval:org.mitre.oval.test:obj:196"/> |
| 39 | <state state_ref="oval:org.mitre.oval.test:ste:703"/> |
| 40 | </variable_test> |
| 41 | <variable_test id="oval:org.mitre.oval.test:tst:719" 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="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 42 | <object object_ref="oval:org.mitre.oval.test:obj:196"/> |
| 43 | <state state_ref="oval:org.mitre.oval.test:ste:538"/> |
| 44 | </variable_test> |
| 45 | <variable_test id="oval:org.mitre.oval.test:tst:11" 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="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 46 | <object object_ref="oval:org.mitre.oval.test:obj:196"/> |
| 47 | <state state_ref="oval:org.mitre.oval.test:ste:110"/> |
| 48 | </variable_test> |
| 49 | <variable_test id="oval:org.mitre.oval.test:tst:714" 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="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 50 | <object object_ref="oval:org.mitre.oval.test:obj:196"/> |
| 51 | <state state_ref="oval:org.mitre.oval.test:ste:466"/> |
| 52 | </variable_test> |
| 53 | <variable_test id="oval:org.mitre.oval.test:tst:208" 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="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 54 | <object object_ref="oval:org.mitre.oval.test:obj:196"/> |
| 55 | <state state_ref="oval:org.mitre.oval.test:ste:200"/> |
| 56 | </variable_test> |
| 57 | <variable_test id="oval:org.mitre.oval.test:tst:892" version="1" comment="Test that the CheckEnumeration value 'only one' is supported where more than one of the individual results are true." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 58 | <object object_ref="oval:org.mitre.oval.test:obj:196"/> |
| 59 | <state state_ref="oval:org.mitre.oval.test:ste:431"/> |
| 60 | </variable_test> |
| 61 | <variable_test id="oval:org.mitre.oval.test:tst:735" 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="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 62 | <object object_ref="oval:org.mitre.oval.test:obj:196"/> |
| 63 | <state state_ref="oval:org.mitre.oval.test:ste:12"/> |
| 64 | </variable_test> |
| 65 | <variable_test id="oval:org.mitre.oval.test:tst:633" 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="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 66 | <object object_ref="oval:org.mitre.oval.test:obj:196"/> |
| 67 | <state state_ref="oval:org.mitre.oval.test:ste:881"/> |
| 68 | </variable_test> |
| 69 | </tests> |
| 70 | <objects> |
| 71 | <variable_object id="oval:org.mitre.oval.test:obj:196" version="1" comment="This variable_object references a constant_variable that contains the integer values '1', '2', and '3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 72 | <var_ref>oval:org.mitre.oval.test:var:699</var_ref> |
| 73 | </variable_object> |
| 74 | </objects> |
| 75 | <states> |
| 76 | <variable_state id="oval:org.mitre.oval.test:ste:454" version="1" comment="This variable_state represents a variable_object where all of the values are greater than all of the integer values '-1', '-2', and '-3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 77 | <value datatype="int" operation="greater than" var_ref="oval:org.mitre.oval.test:var:607" var_check="all"/> |
| 78 | </variable_state> |
| 79 | <variable_state id="oval:org.mitre.oval.test:ste:325" version="1" comment="This variable_state represents a variable_object where all of the values are less than all of the integer values '-1', '-2', and '-3'" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 80 | <value datatype="int" operation="less than" var_ref="oval:org.mitre.oval.test:var:607" var_check="all"/> |
| 81 | </variable_state> |
| 82 | <variable_state id="oval:org.mitre.oval.test:ste:703" version="1" comment="This variable_state represents a variable_object where all of the values are greater than at least one of the integer values '-1', '-2', and '-3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 83 | <value datatype="int" operation="greater than" var_ref="oval:org.mitre.oval.test:var:607" var_check="at least one"/> |
| 84 | </variable_state> |
| 85 | <variable_state id="oval:org.mitre.oval.test:ste:538" version="1" comment="This variable_state represents a variable_object where all of the values are equal to at least one of the integer values '1', '2', and '3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 86 | <value datatype="int" var_ref="oval:org.mitre.oval.test:var:699" var_check="at least one"/> |
| 87 | </variable_state> |
| 88 | <variable_state id="oval:org.mitre.oval.test:ste:110" version="1" comment="This variable_state represents a variable_object where all of the values are less than at least one of the integer values '-1', '-2', and '-3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 89 | <value datatype="int" operation="less than" var_ref="oval:org.mitre.oval.test:var:607" var_check="at least one"/> |
| 90 | </variable_state> |
| 91 | <variable_state id="oval:org.mitre.oval.test:ste:466" version="1" comment="This variable_state represents a variable_object where all of the values are not greater than the integer values '-1', '-2', and '-3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 92 | <value datatype="int" operation="greater than" var_ref="oval:org.mitre.oval.test:var:607" var_check="none satisfy"/> |
| 93 | </variable_state> |
| 94 | <variable_state id="oval:org.mitre.oval.test:ste:200" version="1" comment="This variable_state represents a variable_object where all of the values are not less than the integer values '-1', '-2', and '-3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 95 | <value datatype="int" operation="less than" var_ref="oval:org.mitre.oval.test:var:607" var_check="none satisfy"/> |
| 96 | </variable_state> |
| 97 | <variable_state id="oval:org.mitre.oval.test:ste:431" version="1" comment="This variable_state represents a variable_object where all of the values are greater than only one of the integer values '-1', '-2', and '-3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 98 | <value datatype="int" operation="greater than" var_ref="oval:org.mitre.oval.test:var:607" var_check="only one"/> |
| 99 | </variable_state> |
| 100 | <variable_state id="oval:org.mitre.oval.test:ste:12" version="1" comment="This variable_state represents a variable_object where all of the values are equal to only one of the integer values '1', '2', and '3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 101 | <value datatype="int" var_ref="oval:org.mitre.oval.test:var:699" var_check="only one"/> |
| 102 | </variable_state> |
| 103 | <variable_state id="oval:org.mitre.oval.test:ste:881" version="1" comment="This variable_state represents a variable_object where all fo the values are less than only one of the integer values '-1', '-2', and '-3'" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 104 | <value datatype="int" operation="less than" var_ref="oval:org.mitre.oval.test:var:607" var_check="only one"/> |
| 105 | </variable_state> |
| 106 | </states> |
| 107 | <variables> |
| 108 | <constant_variable id="oval:org.mitre.oval.test:var:699" version="1" comment="This constant_variable represents the integer values '1', '2', and '3'." datatype="int"> |
| 109 | <value>1</value> |
| 110 | <value>2</value> |
| 111 | <value>3</value> |
| 112 | </constant_variable> |
| 113 | <constant_variable id="oval:org.mitre.oval.test:var:607" 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> |