| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <oval_definitions 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" 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"> |
| 3 | <generator> |
| 4 | <oval:schema_version>5.11.1</oval:schema_version> |
| 5 | <oval:timestamp>2009-05-21T11:46:00-04:00</oval:timestamp> |
| 6 | </generator> |
| 7 | <definitions> |
| 8 | <definition class="compliance" version="1" id="oval:x:def:1"> |
| 9 | <metadata><title/><description/></metadata> |
| 10 | <criteria operator="AND"> |
| 11 | <criterion test_ref="oval:x:tst:1"/> |
| 12 | </criteria> |
| 13 | </definition> |
| 14 | <definition class="compliance" version="1" id="oval:x:def:2"> |
| 15 | <metadata><title/><description/></metadata> |
| 16 | <criteria operator="AND"> |
| 17 | <criterion test_ref="oval:x:tst:2"/> |
| 18 | </criteria> |
| 19 | </definition> |
| 20 | <definition class="compliance" version="1" id="oval:x:def:3"> |
| 21 | <metadata><title/><description/></metadata> |
| 22 | <criteria operator="AND"> |
| 23 | <criterion test_ref="oval:x:tst:3"/> |
| 24 | </criteria> |
| 25 | </definition> |
| 26 | <definition class="compliance" version="1" id="oval:x:def:4"> |
| 27 | <metadata><title/><description/></metadata> |
| 28 | <criteria operator="AND"> |
| 29 | <criterion test_ref="oval:x:tst:4"/> |
| 30 | </criteria> |
| 31 | </definition> |
| 32 | <definition class="compliance" version="1" id="oval:x:def:5"> |
| 33 | <metadata><title/><description/></metadata> |
| 34 | <criteria operator="AND"> |
| 35 | <criterion test_ref="oval:x:tst:5"/> |
| 36 | </criteria> |
| 37 | </definition> |
| 38 | <definition class="compliance" version="1" id="oval:x:def:6"> |
| 39 | <metadata><title/><description/></metadata> |
| 40 | <criteria operator="AND"> |
| 41 | <criterion test_ref="oval:x:tst:6"/> |
| 42 | </criteria> |
| 43 | </definition> |
| 44 | <definition class="compliance" version="1" id="oval:x:def:7"> |
| 45 | <metadata><title/><description/></metadata> |
| 46 | <criteria operator="AND"> |
| 47 | <criterion test_ref="oval:x:tst:7"/> |
| 48 | </criteria> |
| 49 | </definition> |
| 50 | <definition class="compliance" version="1" id="oval:x:def:8"> |
| 51 | <metadata><title/><description/></metadata> |
| 52 | <criteria operator="AND"> |
| 53 | <criterion test_ref="oval:x:tst:8"/> |
| 54 | </criteria> |
| 55 | </definition> |
| 56 | </definitions> |
| 57 | <tests> |
| 58 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" check_existence="at_least_one_exists" version="1" id="oval:x:tst:1" check="all" comment="read file from directory 'a' - should be read"> |
| 59 | <object object_ref="oval:x:obj:1"/> |
| 60 | </file_test> |
| 61 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" check_existence="none_exist" version="1" id="oval:x:tst:2" check="all" comment="read file from directory 'b' - should be skip"> |
| 62 | <object object_ref="oval:x:obj:2"/> |
| 63 | </file_test> |
| 64 | <textfilecontent54_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" check_existence="at_least_one_exists" version="1" id="oval:x:tst:3" check="all" comment="read file from directory 'a' - should be read"> |
| 65 | <object object_ref="oval:x:obj:3"/> |
| 66 | </textfilecontent54_test> |
| 67 | <textfilecontent54_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" check_existence="none_exist" version="1" id="oval:x:tst:4" check="all" comment="read file from directory 'b' - should be skip"> |
| 68 | <object object_ref="oval:x:obj:4"/> |
| 69 | </textfilecontent54_test> |
| 70 | <filehash58_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" check_existence="at_least_one_exists" version="1" id="oval:x:tst:5" check="all" comment="read file from directory 'a' - should be read"> |
| 71 | <object object_ref="oval:x:obj:5"/> |
| 72 | </filehash58_test> |
| 73 | <filehash58_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" check_existence="none_exist" version="1" id="oval:x:tst:6" check="all" comment="read file from directory 'b' - should be skip"> |
| 74 | <object object_ref="oval:x:obj:6"/> |
| 75 | </filehash58_test> |
| 76 | <xmlfilecontent_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" check_existence="at_least_one_exists" version="1" id="oval:x:tst:7" check="all" comment="read file from directory 'a' - should be read"> |
| 77 | <object object_ref="oval:x:obj:7"/> |
| 78 | </xmlfilecontent_test> |
| 79 | <xmlfilecontent_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" check_existence="none_exist" version="1" id="oval:x:tst:8" check="all" comment="read file from directory 'b' - should be skip"> |
| 80 | <object object_ref="oval:x:obj:8"/> |
| 81 | </xmlfilecontent_test> |
| 82 | </tests> |
| 83 | <objects> |
| 84 | <file_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" version="1" id="oval:x:obj:1"> |
| 85 | <filepath>/tmp/oscap_test_skip_paths/a/x</filepath> |
| 86 | </file_object> |
| 87 | <file_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" version="1" id="oval:x:obj:2"> |
| 88 | <filepath>/tmp/oscap_test_skip_paths/b/y</filepath> |
| 89 | </file_object> |
| 90 | <textfilecontent54_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version="1" id="oval:x:obj:3"> |
| 91 | <filepath>/tmp/oscap_test_skip_paths/a/x</filepath> |
| 92 | <pattern>^.*$</pattern> |
| 93 | <instance datatype="int">1</instance> |
| 94 | </textfilecontent54_object> |
| 95 | <textfilecontent54_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version="1" id="oval:x:obj:4"> |
| 96 | <filepath>/tmp/oscap_test_skip_paths/b/y</filepath> |
| 97 | <pattern>^.*$</pattern> |
| 98 | <instance datatype="int">1</instance> |
| 99 | </textfilecontent54_object> |
| 100 | <filehash58_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version="1" id="oval:x:obj:5"> |
| 101 | <filepath>/tmp/oscap_test_skip_paths/a/x</filepath> |
| 102 | <hash_type>SHA-512</hash_type> |
| 103 | </filehash58_object> |
| 104 | <filehash58_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version="1" id="oval:x:obj:6"> |
| 105 | <filepath>/tmp/oscap_test_skip_paths/b/y</filepath> |
| 106 | <hash_type>SHA-512</hash_type> |
| 107 | </filehash58_object> |
| 108 | <xmlfilecontent_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version="1" id="oval:x:obj:7"> |
| 109 | <filepath>/tmp/oscap_test_skip_paths/a/test.xml</filepath> |
| 110 | <xpath>/parent</xpath> |
| 111 | </xmlfilecontent_object> |
| 112 | <xmlfilecontent_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version="1" id="oval:x:obj:8"> |
| 113 | <filepath>/tmp/oscap_test_skip_paths/b/test.xml</filepath> |
| 114 | <xpath>/parent</xpath> |
| 115 | </xmlfilecontent_object> |
| 116 | </objects> |
| 117 | </oval_definitions> |