|
29 | 29 | <criterion test_ref="oval:x:tst:4"/>
|
30 | 30 | </criteria>
|
31 | 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> |
32 | 44 | </definitions>
|
33 | 45 | <tests>
|
34 | 46 | <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">
|
|
43 | 55 | <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">
|
44 | 56 | <object object_ref="oval:x:obj:4"/>
|
45 | 57 | </textfilecontent54_test>
|
| 58 | + <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"> |
| 59 | + <object object_ref="oval:x:obj:5"/> |
| 60 | + </filehash58_test> |
| 61 | + <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 | + <object object_ref="oval:x:obj:6"/> |
| 63 | + </filehash58_test> |
46 | 64 | </tests>
|
47 | 65 | <objects>
|
48 | 66 | <file_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" version="1" id="oval:x:obj:1">
|
|
61 | 79 | <pattern>^.*$</pattern>
|
62 | 80 | <instance datatype="int" operation="greater than or equal">1</instance>
|
63 | 81 | </textfilecontent54_object>
|
| 82 | + <filehash58_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version="1" id="oval:x:obj:5"> |
| 83 | + <filepath>/tmp/oscap_test_skip_paths/a/x</filepath> |
| 84 | + <hash_type>SHA-512</hash_type> |
| 85 | + </filehash58_object> |
| 86 | + <filehash58_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version="1" id="oval:x:obj:6"> |
| 87 | + <filepath>/tmp/oscap_test_skip_paths/b/y</filepath> |
| 88 | + <hash_type>SHA-512</hash_type> |
| 89 | + </filehash58_object> |
64 | 90 | </objects>
|
65 | 91 | </oval_definitions>
|
0 commit comments