Debian Codegraph @

tests/API/XCCDF/unittests/test_remediate_python.xccdf.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <Benchmark xmlns="http://checklists.nist.gov/xccdf/1.2" id="xccdf_moc.elpmaxe.www_benchmark_test">
3 <status>accepted</status>
4 <version>1.0</version>
5 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_1">
6 <title>Ensure that file exists and it is not executable</title>
7 <fix system="urn:xccdf:fix:script:python3">
8 import os
9 def touch(fname, times=None):
10 if not os.path.exists(fname):
11 open(fname, 'w').close()
12
13 touch('test_file')
14 </fix>
15 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
16 <check-content-ref href="test_remediation_simple.oval.xml" name="oval:moc.elpmaxe.www:def:1"/>
17 </check>
18 </Rule>
19 <TestResult id="xccdf_org.open-scap_testresult_default-profile" start-time="2013-02-27T14:54:43" end-time="2013-02-27T14:54:44">
20 <title>OSCAP Scan Result</title>
21 <target>x.x.example.com</target>
22 <target-address>127.0.0.1</target-address>
23 <target-address>::1</target-address>
24 <target-facts>
25 <fact name="urn:xccdf:fact:ethernet:MAC" type="string">00:00:00:00:00:00</fact>
26 </target-facts>
27 <rule-result idref="xccdf_moc.elpmaxe.www_rule_1" time="2013-02-27T14:54:44" weight="1.000000">
28 <result>fail</result>
29 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
30 <check-content-ref name="oval:moc.elpmaxe.www:def:1" href="test_remediation_simple.oval.xml"/>
31 </check>
32 </rule-result>
33 <score system="urn:xccdf:scoring:default" maximum="100.000000">0.000000</score>
34 </TestResult>
35 </Benchmark>