File: test_platform_inheritance.oval.xml

package info (click to toggle)
openscap 1.4.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 125,040 kB
  • sloc: xml: 527,109; ansic: 91,390; sh: 19,789; python: 2,515; perl: 444; makefile: 49
file content (67 lines) | stat: -rw-r--r-- 3,087 bytes parent folder | download | duplicates (3)
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
<?xml version="1.0" encoding="utf-8"?>
<oval_definitions
    xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"
    xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"
    xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"
    xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5"
    xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <generator>
            <oval:product_name>vim</oval:product_name>
            <oval:schema_version>5.10.1</oval:schema_version>
            <oval:timestamp>2020-06-24T00:00:00+01:00</oval:timestamp>
      </generator>
      <definitions>
            <definition class="inventory" id="oval:true:def:1" version="1">
                  <metadata>
                        <title>Always succeed</title>
                        <reference ref_id="cpe:/a:true" source="CPE"/>
                        <description>Should pass on every platform</description>
                  </metadata>
                  <criteria>
                        <criterion comment="x" test_ref="oval:x:tst:1"/>
                  </criteria>
            </definition>
            <definition class="inventory" id="oval:false:def:1" version="1">
                  <metadata>
                        <title>Always fail</title>
                        <reference ref_id="cpe:/a:true" source="CPE"/>
                        <description>Should fail on every platform</description>
                  </metadata>
                  <criteria>
                        <criterion comment="x" negate="true" test_ref="oval:x:tst:1"/>
                  </criteria>
            </definition>
            <definition class="compliance" id="oval:rule:def:1" version="1">
                  <metadata>
                        <title>Always true rule check</title>
                        <reference ref_id="oval:x:tst:1" source="elpmaxe"/>
                        <description>Should pass on every platform</description>
                  </metadata>
                  <criteria>
                        <criterion comment="x" test_ref="oval:x:tst:1"/>
                  </criteria>
            </definition>
      </definitions>
    <tests>
      <ind-def:variable_test id="oval:x:tst:1" version="1" check="all" comment=".">
        <ind-def:object object_ref="oval:x:obj:1"/>
        <ind-def:state state_ref="oval:x:ste:1"/>
      </ind-def:variable_test>
    </tests>
    <objects>
      <ind-def:variable_object id="oval:x:obj:1" version="1">
        <ind-def:var_ref>oval:x:var:1</ind-def:var_ref>
      </ind-def:variable_object>
    </objects>
    <states>
      <ind-def:variable_state id="oval:x:ste:1" version="1">
        <ind-def:value operation="greater than" datatype="float">1.0</ind-def:value>
      </ind-def:variable_state>
    </states>
    <variables>
      <constant_variable id="oval:x:var:1" version="1" datatype="float" comment=".">
        <value>4.0</value>
      </constant_variable>
    </variables>
</oval_definitions>