Debian Codegraph @

tests/sce/test_passing_vars_xccdf.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <Benchmark xmlns="http://checklists.nist.gov/xccdf/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="RHEL-6" xsi:schemaLocation="http://checklists.nist.gov/xccdf/1.1 xccdf-1.1.4.xsd" resolved="0" xml:lang="en-US">
3 <status date="2011-12-08">draft</status>
4 <title xml:lang="en-US">Sample XCCDF using SCE test engine</title>
5 <description xml:lang="en-US">abcd</description>
6 <version>0.1</version>
7 <model system="urn:xccdf:scoring:default"/>
8 <model system="urn:xccdf:scoring:flat"/>
9
10 <Profile id="default">
11 <title xml:lang="en-US">A testing profile</title>
12 <description xml:lang="en-US">This profile is used to test whether the value of a variable is passed to a SCE script correctly or not.</description>
13 <select idref="rule-1" selected="true"/>
14 <refine-value idref="var-1.1" selector="Fail" />
15 <set-value idref="var-1.2">my_pass_val</set-value>
16 </Profile>
17
18 <Value id="var-1.1" type="string" operator="equals">
19 <title xml:lang="en">simple pass/fail value</title>
20 <description xml:lang="en">abc</description>
21 <value>unknown</value>
22 <value selector="Fail">fail</value>
23 <match>m.*e$</match>
24 </Value>
25
26 <Value id="var-1.2" type="string" operator="equals">
27 <title xml:lang="en">simple pass/fail value</title>
28 <description xml:lang="en">abc</description>
29 <value>unknown</value>
30 <match>m.*e$</match>
31 </Value>
32
33 <Group id="Group_Lonely" selected="true" weight="1.0">
34 <Rule id="rule-1" selected="true" weight="1.0" role="full" severity="low">
35 <title xml:lang="en-US">A testing rule 1</title>
36 <description>Check that value of a variable is passed to a SCE script correctly</description>
37 <fixtext fixref="Test_z_fix"> No fix possible, other than specifying Value.1 </fixtext>
38 <fix id="Test_z_fix"> # echo Let it be </fix>
39 <check system="http://open-scap.org/page/SCE">
40 <check-import import-name="stdout" />
41 <check-export value-id="var-1.1" export-name="VALUE_1" />
42 <check-export value-id="var-1.2" export-name="VALUE_2" />
43 <check-content-ref href="test_passing_vars_sce.sh" />
44 </check>
45 </Rule>
46
47 </Group>
48 </Benchmark>