| 1 | <?xml version="1.0"?> |
| 2 | <oval_definitions xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:ind="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd"> |
| 3 | <generator> |
| 4 | <oval:schema_version>5.11.1</oval:schema_version> |
| 5 | <oval:timestamp>0001-01-01T00:00:00+00:00</oval:timestamp> |
| 6 | </generator> |
| 7 | |
| 8 | <definitions> |
| 9 | <definition class="compliance" version="1" id="oval:x:def:1"> |
| 10 | <metadata> |
| 11 | <title>A simple test OVAL for xmlfilecontent test.</title> |
| 12 | <description>x</description> |
| 13 | <affected family="unix"> |
| 14 | <platform>x</platform> |
| 15 | </affected> |
| 16 | </metadata> |
| 17 | <criteria> |
| 18 | <criterion test_ref="oval:x:tst:1" comment="test"/> |
| 19 | </criteria> |
| 20 | </definition> |
| 21 | <definition class="compliance" version="1" id="oval:x:def:2"> |
| 22 | <metadata> |
| 23 | <title>A simple test OVAL for xmlfilecontent test.</title> |
| 24 | <description>x</description> |
| 25 | <affected family="unix"> |
| 26 | <platform>x</platform> |
| 27 | </affected> |
| 28 | </metadata> |
| 29 | <criteria> |
| 30 | <criterion test_ref="oval:x:tst:2" comment="test"/> |
| 31 | </criteria> |
| 32 | </definition> |
| 33 | <definition class="compliance" version="1" id="oval:x:def:3"> |
| 34 | <metadata> |
| 35 | <title>A simple test OVAL for xmlfilecontent test.</title> |
| 36 | <description>x</description> |
| 37 | <affected family="unix"> |
| 38 | <platform>x</platform> |
| 39 | </affected> |
| 40 | </metadata> |
| 41 | <criteria> |
| 42 | <criterion test_ref="oval:x:tst:3" comment="test"/> |
| 43 | </criteria> |
| 44 | </definition> |
| 45 | <definition class="compliance" version="1" id="oval:x:def:4"> |
| 46 | <metadata> |
| 47 | <title>A simple test OVAL for xmlfilecontent test.</title> |
| 48 | <description>x</description> |
| 49 | <affected family="unix"> |
| 50 | <platform>x</platform> |
| 51 | </affected> |
| 52 | </metadata> |
| 53 | <criteria> |
| 54 | <criterion test_ref="oval:x:tst:4" comment="test"/> |
| 55 | </criteria> |
| 56 | </definition> |
| 57 | <definition class="compliance" version="1" id="oval:x:def:5"> |
| 58 | <metadata> |
| 59 | <title>A simple test OVAL for xmlfilecontent test.</title> |
| 60 | <description>x</description> |
| 61 | <affected family="unix"> |
| 62 | <platform>x</platform> |
| 63 | </affected> |
| 64 | </metadata> |
| 65 | <criteria> |
| 66 | <criterion test_ref="oval:x:tst:5" comment="test"/> |
| 67 | </criteria> |
| 68 | </definition> |
| 69 | <definition class="compliance" version="1" id="oval:x:def:6"> |
| 70 | <metadata> |
| 71 | <title>A simple test OVAL for xmlfilecontent test - check nonexisting attribute</title> |
| 72 | <description>x</description> |
| 73 | <affected family="unix"> |
| 74 | <platform>x</platform> |
| 75 | </affected> |
| 76 | </metadata> |
| 77 | <criteria> |
| 78 | <criterion test_ref="oval:x:tst:6" comment="test"/> |
| 79 | </criteria> |
| 80 | </definition> |
| 81 | <definition class="compliance" version="1" id="oval:x:def:7"> |
| 82 | <metadata> |
| 83 | <title>A simple test OVAL for xmlfilecontent test - check nonexisting element</title> |
| 84 | <description>x</description> |
| 85 | <affected family="unix"> |
| 86 | <platform>x</platform> |
| 87 | </affected> |
| 88 | </metadata> |
| 89 | <criteria> |
| 90 | <criterion test_ref="oval:x:tst:7" comment="test"/> |
| 91 | </criteria> |
| 92 | </definition> |
| 93 | </definitions> |
| 94 | |
| 95 | <tests> |
| 96 | <ind:xmlfilecontent_test id="oval:x:tst:1" version="1" comment="test an xpath expression" check="all"> |
| 97 | <ind:object object_ref="oval:x:obj:1"/> |
| 98 | <ind:state state_ref="oval:x:ste:1"/> |
| 99 | </ind:xmlfilecontent_test> |
| 100 | <ind:xmlfilecontent_test id="oval:x:tst:2" version="1" comment="test an xpath expression" check="all"> |
| 101 | <ind:object object_ref="oval:x:obj:2"/> |
| 102 | <ind:state state_ref="oval:x:ste:2"/> |
| 103 | </ind:xmlfilecontent_test> |
| 104 | <ind:xmlfilecontent_test id="oval:x:tst:3" version="1" comment="test an xpath expression" check="all"> |
| 105 | <ind:object object_ref="oval:x:obj:3"/> |
| 106 | <ind:state state_ref="oval:x:ste:3"/> |
| 107 | </ind:xmlfilecontent_test> |
| 108 | <ind:xmlfilecontent_test id="oval:x:tst:4" version="1" comment="test an xpath expression" check="all"> |
| 109 | <ind:object object_ref="oval:x:obj:4"/> |
| 110 | <ind:state state_ref="oval:x:ste:4"/> |
| 111 | </ind:xmlfilecontent_test> |
| 112 | <ind:xmlfilecontent_test id="oval:x:tst:5" version="1" comment="test an xpath expression" check="all"> |
| 113 | <ind:object object_ref="oval:x:obj:5"/> |
| 114 | <ind:state state_ref="oval:x:ste:5"/> |
| 115 | </ind:xmlfilecontent_test> |
| 116 | <ind:xmlfilecontent_test id="oval:x:tst:6" version="1" comment="test an xpath expression" check="all" check_existence="none_exist"> |
| 117 | <ind:object object_ref="oval:x:obj:6"/> |
| 118 | </ind:xmlfilecontent_test> |
| 119 | <ind:xmlfilecontent_test id="oval:x:tst:7" version="1" comment="test an xpath expression" check="all" check_existence="none_exist"> |
| 120 | <ind:object object_ref="oval:x:obj:7"/> |
| 121 | </ind:xmlfilecontent_test> |
| 122 | </tests> |
| 123 | |
| 124 | <objects> |
| 125 | <ind:xmlfilecontent_object id="oval:x:obj:1" version="1" comment="xpath query"> |
| 126 | <ind:filepath>/tmp/example.xml</ind:filepath> |
| 127 | <ind:xpath>/SoftwareIdentity/@name</ind:xpath> |
| 128 | </ind:xmlfilecontent_object> |
| 129 | <ind:xmlfilecontent_object id="oval:x:obj:2" version="1" comment="xpath query"> |
| 130 | <ind:filepath>/tmp/example.xml</ind:filepath> |
| 131 | <ind:xpath>/SoftwareIdentity/Meta/@product</ind:xpath> |
| 132 | </ind:xmlfilecontent_object> |
| 133 | <ind:xmlfilecontent_object id="oval:x:obj:3" version="1" comment="xpath query"> |
| 134 | <ind:filepath>/tmp/example.xml</ind:filepath> |
| 135 | <ind:xpath>//File/@name</ind:xpath> |
| 136 | </ind:xmlfilecontent_object> |
| 137 | <ind:xmlfilecontent_object id="oval:x:obj:4" version="1" comment="xpath query"> |
| 138 | <ind:filepath>/tmp/example.xml</ind:filepath> |
| 139 | <ind:xpath>count(//Entity)</ind:xpath> |
| 140 | </ind:xmlfilecontent_object> |
| 141 | <ind:xmlfilecontent_object id="oval:x:obj:5" version="1" comment="xpath query"> |
| 142 | <ind:filepath>/tmp/example.xml</ind:filepath> |
| 143 | <ind:xpath>//*[@regid="mycoyote.com"]/@name</ind:xpath> |
| 144 | </ind:xmlfilecontent_object> |
| 145 | <ind:xmlfilecontent_object id="oval:x:obj:6" version="1" comment="xpath query"> |
| 146 | <ind:filepath>/tmp/example.xml</ind:filepath> |
| 147 | <ind:xpath>/SoftwareIdentity/@thisattributedoesnotexist</ind:xpath> |
| 148 | </ind:xmlfilecontent_object> |
| 149 | <ind:xmlfilecontent_object id="oval:x:obj:7" version="1" comment="xpath query"> |
| 150 | <ind:filepath>/tmp/example.xml</ind:filepath> |
| 151 | <ind:xpath>/SoftwareIdentity/thiselementdoesnotexist</ind:xpath> |
| 152 | </ind:xmlfilecontent_object> |
| 153 | </objects> |
| 154 | |
| 155 | <states> |
| 156 | <ind:xmlfilecontent_state id="oval:x:ste:1" version="1" comment="state"> |
| 157 | <ind:value_of operation="equals">ACME Roadrunner Detector 2013 Coyote Edition SP1</ind:value_of> |
| 158 | </ind:xmlfilecontent_state> |
| 159 | <ind:xmlfilecontent_state id="oval:x:ste:2" version="1" comment="state"> |
| 160 | <ind:value_of operation="equals">Roadrunner Detector</ind:value_of> |
| 161 | </ind:xmlfilecontent_state> |
| 162 | <ind:xmlfilecontent_state id="oval:x:ste:3" version="1" comment="state"> |
| 163 | <ind:value_of operation="equals">rrdetector.exe</ind:value_of> |
| 164 | </ind:xmlfilecontent_state> |
| 165 | <ind:xmlfilecontent_state id="oval:x:ste:4" version="1" comment="state"> |
| 166 | <ind:value_of operation="equals">2</ind:value_of> |
| 167 | </ind:xmlfilecontent_state> |
| 168 | <ind:xmlfilecontent_state id="oval:x:ste:5" version="1" comment="state"> |
| 169 | <ind:value_of operation="equals">Coyote Services, Inc.</ind:value_of> |
| 170 | </ind:xmlfilecontent_state> |
| 171 | </states> |
| 172 | |
| 173 | </oval_definitions> |