Debian Codegraph @

tests/API/OVAL/unittests/state_check_existence.xml

raw symbols SCIP
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:x: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:x:tst:1" comment="always pass"/>
19 </criteria>
20 </definition>
21 <definition class="compliance" version="1" id="oval:x:def:2">
22 <metadata>
23 <title>x</title>
24 <description>x</description>
25 <affected family="unix">
26 <platform>x</platform>
27 </affected>
28 </metadata>
29 <criteria>
30 <criterion test_ref="oval:x:tst:2" comment="always fail"/>
31 </criteria>
32 </definition>
33 <definition class="compliance" version="1" id="oval:x:def:3">
34 <metadata>
35 <title>x</title>
36 <description>x</description>
37 <affected family="unix">
38 <platform>x</platform>
39 </affected>
40 </metadata>
41 <criteria>
42 <criterion test_ref="oval:x:tst:3" comment="always fail"/>
43 </criteria>
44 </definition>
45 <definition class="compliance" version="1" id="oval:x:def:4">
46 <metadata>
47 <title>x</title>
48 <description>x</description>
49 <affected family="unix">
50 <platform>x</platform>
51 </affected>
52 </metadata>
53 <criteria>
54 <criterion test_ref="oval:x:tst:4" comment="always pass"/>
55 </criteria>
56 </definition>
57 </definitions>
58
59 <tests>
60 <ind:textfilecontent54_test id="oval:x:tst:1" version="1" comment="File /tmp/foo.txt must contain at least one 'Hello'" check="all">
61 <ind:object object_ref="oval:x:obj:1"/>
62 <ind:state state_ref="oval:x:ste:1"/>
63 </ind:textfilecontent54_test>
64 <ind:textfilecontent54_test id="oval:x:tst:2" version="1" comment="File /tmp/foo.txt must contain only one 'Hello'" check="all">
65 <ind:object object_ref="oval:x:obj:1"/>
66 <ind:state state_ref="oval:x:ste:2"/>
67 </ind:textfilecontent54_test>
68 <ind:textfilecontent54_test id="oval:x:tst:3" version="1" comment="File /tmp/foo.txt needn't contain 'Hello'" check="all">
69 <ind:object object_ref="oval:x:obj:1"/>
70 <ind:state state_ref="oval:x:ste:3"/>
71 </ind:textfilecontent54_test>
72 <ind:textfilecontent54_test id="oval:x:tst:4" version="1" comment="File /tmp/foo.txt must contain only 'Hello'" check="all">
73 <ind:object object_ref="oval:x:obj:1"/>
74 <ind:state state_ref="oval:x:ste:4"/>
75 </ind:textfilecontent54_test>
76 </tests>
77
78 <objects>
79 <ind:textfilecontent54_object id="oval:x:obj:1" version="1" comment="Object representing file">
80 <ind:filepath>/tmp/foo.txt</ind:filepath>
81 <ind:pattern operation="pattern match">^.*$</ind:pattern>
82 <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
83 </ind:textfilecontent54_object>
84 </objects>
85
86 <states>
87 <ind:textfilecontent54_state id="oval:x:ste:1" version="1" comment="state">
88 <ind:filepath>/tmp/foo.txt</ind:filepath>
89 <ind:text check_existence="at_least_one_exists">Hello</ind:text>
90 </ind:textfilecontent54_state>
91 <ind:textfilecontent54_state id="oval:x:ste:2" version="1" comment="state">
92 <ind:filepath>/tmp/foo.txt</ind:filepath>
93 <ind:text check_existence="only_one_exists">Hello</ind:text>
94 </ind:textfilecontent54_state>
95 <ind:textfilecontent54_state id="oval:x:ste:3" version="1" comment="state">
96 <ind:filepath>/tmp/foo.txt</ind:filepath>
97 <ind:text check_existence="none_exist">Hello</ind:text>
98 </ind:textfilecontent54_state>
99 <ind:textfilecontent54_state id="oval:x:ste:4" version="1" comment="state">
100 <ind:filepath>/tmp/foo.txt</ind:filepath>
101 <ind:text check_existence="all_exist">Hello</ind:text>
102 </ind:textfilecontent54_state>
103 </states>
104 </oval_definitions>