1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
<?xml version="1.0"?>
<oval_definitions xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" 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">
<generator>
<oval:schema_version>5.10.1</oval:schema_version>
<oval:timestamp>0001-01-01T00:00:00+00:00</oval:timestamp>
</generator>
<definitions>
<definition class="compliance" version="1" id="oval:x:def:1">
<metadata>
<title>x</title>
<description>x</description>
<affected family="unix">
<platform>x</platform>
</affected>
</metadata>
<criteria comment="dummy definition">
<criterion test_ref="oval:x:tst:1"/>
<criterion test_ref="oval:x:tst:2"/>
<criterion test_ref="oval:x:tst:3"/>
<criterion test_ref="oval:x:tst:4"/>
</criteria>
</definition>
</definitions>
<tests>
<textfilecontent54_test id="oval:x:tst:1" check="all" comment="Object referencing an empty variable. Expected result: false." version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
<object object_ref="oval:x:obj:1"/>
</textfilecontent54_test>
<textfilecontent54_test id="oval:x:tst:2" check="all" comment="Object referencing a valid variable (for comparison). Expected result: true." version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
<object object_ref="oval:x:obj:2"/>
</textfilecontent54_test>
<textfilecontent54_test id="oval:x:tst:3" check="all" comment="State referencing an empty variable. Expected result: error." version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
<object object_ref="oval:x:obj:2"/>
<state state_ref="oval:x:ste:3"/>
</textfilecontent54_test>
<textfilecontent54_test id="oval:x:tst:4" check="all" comment="State referencing a valid variable (for comparison). Expected result: true." version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
<object object_ref="oval:x:obj:2"/>
<state state_ref="oval:x:ste:4"/>
</textfilecontent54_test>
</tests>
<objects>
<textfilecontent54_object id="oval:x:obj:1" version="1" comment="Object referencing an empty variable. Expected flag: does not exist." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
<filepath datatype="string" operation="equals" var_check="at least one" var_ref="oval:x:var:11"/>
<pattern datatype="string" operation="pattern match">.*</pattern>
<instance datatype="int" operation="equals">1</instance>
</textfilecontent54_object>
<textfilecontent54_object id="oval:x:obj:11" version="1" comment="Nonexistent object. Expected flag: does not exist." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
<filepath datatype="string" operation="equals">/nonexistent</filepath>
<pattern datatype="string" operation="pattern match">.*</pattern>
<instance datatype="int" operation="equals">1</instance>
</textfilecontent54_object>
<textfilecontent54_object id="oval:x:obj:2" version="1" comment="Object referencing a valid variable. Expected flag: complete." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
<filepath datatype="string" operation="equals" var_check="at least one" var_ref="oval:x:var:21"/>
<pattern datatype="string" operation="pattern match">.*</pattern>
<instance datatype="int" operation="equals">1</instance>
</textfilecontent54_object>
<textfilecontent54_object id="oval:x:obj:21" version="1" comment="Valid object. Expected flag: complete." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
<filepath datatype="string" operation="equals">/etc/issue</filepath>
<pattern datatype="string" operation="pattern match">.*</pattern>
<instance datatype="int" operation="equals">1</instance>
</textfilecontent54_object>
</objects>
<states>
<textfilecontent54_state version="1" id="oval:x:ste:3" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
<filepath datatype="string" operation="equals" var_check="at least one" var_ref="oval:x:var:11"/>
</textfilecontent54_state>
<textfilecontent54_state version="1" id="oval:x:ste:4" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
<filepath datatype="string" operation="equals" var_check="at least one" var_ref="oval:x:var:21"/>
</textfilecontent54_state>
</states>
<variables>
<local_variable id="oval:x:var:11" version="1" datatype="string" comment="Variable referencing a nonexistent object.">
<object_component object_ref="oval:x:obj:11" item_field="filepath"/>
</local_variable>
<local_variable id="oval:x:var:21" version="1" datatype="string" comment="Variable referencing an existing object.">
<object_component object_ref="oval:x:obj:21" item_field="filepath"/>
</local_variable>
</variables>
</oval_definitions>
|