Debian Codegraph @

tests/API/OVAL/unittests/test_invalid_regex.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <oval_definitions xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
3 <generator>
4 <oval:schema_version>5.10</oval:schema_version>
5 <oval:timestamp>2015-01-12T10:41:00-05:00</oval:timestamp>
6 </generator>
7 <definitions>
8 <definition id="oval:x:def:1" version="1" class="miscellaneous">
9 <metadata>
10 <title>Tests handling evaluating invalid regular expressions properly</title>
11 <description>Evaluate to error caused by invalid regular expression</description>
12 </metadata>
13 <criteria>
14 <criterion comment="Test that all files are from /etc directory." test_ref="oval:x:tst:1"/>
15 </criteria>
16 </definition>
17 </definitions>
18
19 <tests>
20 <file_test id="oval:x:tst:1" version="1" comment="Test /etc/passwd" check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
21 <object object_ref="oval:x:obj:1"/>
22 <state state_ref="oval:x:ste:1"/>
23 </file_test>
24 </tests>
25
26 <objects>
27 <file_object id="oval:x:obj:1" version="1" comment="/etc/passwd" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
28 <path>/etc</path>
29 <filename>passwd</filename>
30 </file_object>
31 </objects>
32
33 <states>
34 <file_state id="oval:x:ste:1" version="1" comment="invalid regular expression in pattern match opereration" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
35 <path>/etc</path>
36 <filename operation="pattern match">abcd\</filename>
37 </file_state>
38 </states>
39
40 </oval_definitions>