| 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:foo_pass:def:1"> |
| 10 | <metadata> |
| 11 | <title>x</title> |
| 12 | <description>x</description> |
| 13 | <affected family="unix"> |
| 14 | <platform>x</platform> |
| 15 | </affected> |
| 16 | </metadata> |
| 17 | <criteria> |
| 18 | <criterion test_ref="oval:foo_pass:tst:1" comment="should pass"/> |
| 19 | </criteria> |
| 20 | </definition> |
| 21 | |
| 22 | <definition class="compliance" version="1" id="oval:foo_fail:def:1"> |
| 23 | <metadata> |
| 24 | <title>x</title> |
| 25 | <description>x</description> |
| 26 | <affected family="unix"> |
| 27 | <platform>x</platform> |
| 28 | </affected> |
| 29 | </metadata> |
| 30 | <criteria> |
| 31 | <criterion test_ref="oval:foo_fail:tst:1" comment="should fail"/> |
| 32 | </criteria> |
| 33 | </definition> |
| 34 | </definitions> |
| 35 | |
| 36 | <tests> |
| 37 | <ind:textfilecontent54_test id="oval:foo_pass:tst:1" version="1" comment="File /tmp/foo_python.txt must contain at least one 'Hello'" check="at least one"> |
| 38 | <ind:object object_ref="oval:foo:obj:1"/> |
| 39 | <ind:state state_ref="oval:foo_pass:ste:1"/> |
| 40 | </ind:textfilecontent54_test> |
| 41 | |
| 42 | <ind:textfilecontent54_test id="oval:foo_fail:tst:1" version="1" comment="File /tmp/foo_python.txt must not contain 'Hello'" check="all"> |
| 43 | <ind:object object_ref="oval:foo:obj:1"/> |
| 44 | <ind:state state_ref="oval:foo_fail:ste:1"/> |
| 45 | </ind:textfilecontent54_test> |
| 46 | </tests> |
| 47 | |
| 48 | <objects> |
| 49 | <ind:textfilecontent54_object id="oval:foo:obj:1" version="1" comment="Object representing file"> |
| 50 | <ind:filepath>/tmp/foo_python.txt</ind:filepath> |
| 51 | <ind:pattern operation="pattern match">[^ ]+</ind:pattern> |
| 52 | <ind:instance datatype="int" operation="greater than or equal">1</ind:instance> |
| 53 | </ind:textfilecontent54_object> |
| 54 | </objects> |
| 55 | |
| 56 | <states> |
| 57 | <ind:textfilecontent54_state id="oval:foo_pass:ste:1" version="1" comment="state"> |
| 58 | <ind:filepath>/tmp/foo_python.txt</ind:filepath> |
| 59 | <ind:text check_existence="at_least_one_exists">Hello</ind:text> |
| 60 | </ind:textfilecontent54_state> |
| 61 | |
| 62 | <ind:textfilecontent54_state id="oval:foo_fail:ste:1" version="1" comment="state"> |
| 63 | <ind:filepath>/tmp/foo_python.txt</ind:filepath> |
| 64 | <ind:text check_existence="none_exist">Hello</ind:text> |
| 65 | </ind:textfilecontent54_state> |
| 66 | </states> |
| 67 | |
| 68 | </oval_definitions> |