| 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: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:359" version="1" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if the ind-def:environmentvariable_test is properly supported</title> |
| 12 | <description>This definition is intended to evalutate to true if the interpreter properly supports the ind-def:environmentvariable_test and all of its valid operations.</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 operator="AND"> |
| 18 | <criterion comment="Test that the ind-def:environmentvariable_test is supported with the name entity using the equals operation." test_ref="oval:org.mitre.oval.test:tst:125"/> |
| 19 | <criterion comment="Test that the ind-def:environmentvariable_test is supported with the name entity using the not equal operation." test_ref="oval:org.mitre.oval.test:tst:254"/> |
| 20 | <criterion comment="Test that the ind-def:environmentvariable_test is supported with the name entity using the pattern match operation." test_ref="oval:org.mitre.oval.test:tst:415"/> |
| 21 | </criteria> |
| 22 | </definition> |
| 23 | </definitions> |
| 24 | <tests> |
| 25 | <environmentvariable_test id="oval:org.mitre.oval.test:tst:125" version="1" comment="Test that the ind-def:environmentvariable_test is supported with the name entity using the equals operation." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 26 | <object object_ref="oval:org.mitre.oval.test:obj:559"/> |
| 27 | <state state_ref="oval:org.mitre.oval.test:ste:894"/> |
| 28 | </environmentvariable_test> |
| 29 | <environmentvariable_test id="oval:org.mitre.oval.test:tst:254" version="1" comment="Test that the ind-def:environmentvariable_test is supported with the name entity using the not equal operation." 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:538"/> |
| 31 | <state state_ref="oval:org.mitre.oval.test:ste:181"/> |
| 32 | </environmentvariable_test> |
| 33 | <environmentvariable_test id="oval:org.mitre.oval.test:tst:415" version="1" comment="Test that the ind-def:environmentvariable_test is supported with the name entity using the pattern match operation." 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:894"/> |
| 35 | <state state_ref="oval:org.mitre.oval.test:ste:181"/> |
| 36 | </environmentvariable_test> |
| 37 | </tests> |
| 38 | <objects> |
| 39 | <environmentvariable_object id="oval:org.mitre.oval.test:obj:559" version="1" comment="This environmentvariable_object represents the environment variable with a name equal to 'PATH'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 40 | <name>PATH</name> |
| 41 | </environmentvariable_object> |
| 42 | <environmentvariable_object id="oval:org.mitre.oval.test:obj:538" version="1" comment="This environmentvariable_object represents the environment variable(s) with a name not equal to 'PATH'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 43 | <name operation="not equal">PATH</name> |
| 44 | </environmentvariable_object> |
| 45 | <environmentvariable_object id="oval:org.mitre.oval.test:obj:894" version="1" comment="This environmentvariable_object represents the environment variables that match the regular expression '.*'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 46 | <name operation="pattern match">.*</name> |
| 47 | </environmentvariable_object> |
| 48 | </objects> |
| 49 | <states> |
| 50 | <environmentvariable_state id="oval:org.mitre.oval.test:ste:894" version="1" comment="This environmentvariable_state represents an environment variable with a name equal to 'PATH' and a value that matches the regular expression '.*'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 51 | <name>PATH</name> |
| 52 | <value operation="pattern match">.*</value> |
| 53 | </environmentvariable_state> |
| 54 | <environmentvariable_state id="oval:org.mitre.oval.test:ste:181" version="1" comment="This environmentvariable_state represents an environment variable with a name that matches the regular expression '.*' and a value that matches the regular expression '.*'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 55 | <name operation="pattern match">.*</name> |
| 56 | <value operation="pattern match">.*</value> |
| 57 | </environmentvariable_state> |
| 58 | </states> |
| 59 | </oval_definitions> |