|
41 | 41 | <criterion test_ref="oval:x:tst:6"/>
|
42 | 42 | </criteria>
|
43 | 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> |
44 | 56 | </definitions>
|
45 | 57 | <tests>
|
46 | 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">
|
|
61 | 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">
|
62 | 74 | <object object_ref="oval:x:obj:6"/>
|
63 | 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> |
64 | 82 | </tests>
|
65 | 83 | <objects>
|
66 | 84 | <file_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" version="1" id="oval:x:obj:1">
|
|
87 | 105 | <filepath>/tmp/oscap_test_skip_paths/b/y</filepath>
|
88 | 106 | <hash_type>SHA-512</hash_type>
|
89 | 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> |
90 | 116 | </objects>
|
91 | 117 | </oval_definitions>
|
0 commit comments