Debian Codegraph @

tests/sce/test_prefer_sce.ds.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2 <ds:data-stream-collection xmlns:ds="http://scap.nist.gov/schema/scap/source/1.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:cat="urn:oasis:names:tc:entity:xmlns:xml:catalog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sce="http://open-scap.org/page/SCE_xccdf_stream" id="scap_org.openscap.www_collection_from_xccdf_test_single_rule.xccdf.xml" schematron-version="1.3" xsi:schemaLocation="http://scap.nist.gov/schema/scap/source/1.2 https://scap.nist.gov/schema/scap/1.3/scap-source-data-stream_1.3.xsd">
3 <ds:data-stream id="scap_org.openscap.www_datastream_simple" scap-version="1.3" use-case="OTHER">
4 <ds:checklists>
5 <ds:component-ref id="scap_org.openscap.www_cref_test_single_rule.xccdf.xml" xlink:href="#scap_org.openscap.www_comp_test_single_rule.xccdf.xml">
6 <cat:catalog>
7 <cat:uri name="test_single_rule.oval.xml" uri="#scap_org.openscap.www_cref_test_single_rule.oval.xml"/>
8 <cat:uri name="fedora/checks/sce/rule_1.sh" uri="#scap_org.openscap.www_cref_fedora-checks-sce-rule_1.sh"/>
9 </cat:catalog>
10 </ds:component-ref>
11 <ds:component-ref id="scap_org.openscap.www_cref_fedora-checks-sce-rule_1.sh" xlink:href="#scap_org.openscap.www_ecomp_fedora-checks-sce-rule_1.sh"/>
12 </ds:checklists>
13 <ds:checks>
14 <ds:component-ref id="scap_org.openscap.www_cref_test_single_rule.oval.xml" xlink:href="#scap_org.openscap.www_comp_test_single_rule.oval.xml"/>
15 </ds:checks>
16 </ds:data-stream>
17 <ds:component id="scap_org.openscap.www_comp_test_single_rule.oval.xml" timestamp="2021-02-01T08:07:06+01:00">
18 <oval_definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:win-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#windows" xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#windows windows-definitions-schema.xsd">
19 <generator>
20 <oval:schema_version>5.11.2</oval:schema_version>
21 <oval:timestamp>2021-02-01T08:07:06+01:00</oval:timestamp>
22 </generator>
23 <definitions>
24 <definition class="compliance" id="oval:org.openscap.www:def:1" version="1">
25 <metadata>
26 <title>OVAL check for rule 1</title>
27 <description>pass</description>
28 </metadata>
29 <criteria>
30 <criterion comment="PASS test" test_ref="oval:org.openscap.www:tst:1"/>
31 </criteria>
32 </definition>
33 </definitions>
34 <tests>
35 <variable_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:org.openscap.www:tst:1" check="all" comment="always pass" version="1">
36 <object object_ref="oval:org.openscap.www:obj:1"/>
37 </variable_test>
38 </tests>
39 <objects>
40 <variable_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:org.openscap.www:obj:1" version="1" comment="x">
41 <var_ref>oval:org.openscap.www:var:1</var_ref>
42 </variable_object>
43 </objects>
44 <variables>
45 <constant_variable id="oval:org.openscap.www:var:1" version="1" comment="x" datatype="int">
46 <value>100</value>
47 </constant_variable>
48 </variables>
49 </oval_definitions>
50 </ds:component>
51 <ds:component id="scap_org.openscap.www_comp_test_single_rule.xccdf.xml" timestamp="2021-02-01T08:07:06+01:00">
52 <Benchmark xmlns="http://checklists.nist.gov/xccdf/1.2" id="xccdf_org.openscap.www_benchmark_test">
53 <status>accepted</status>
54 <version>1.0</version>
55 <Profile id="xccdf_org.openscap.www_profile_common">
56 <title>Common hardening profile</title>
57 <description>This is a very cool profile</description>
58 <select idref="xccdf_org.openscap.www_rule_1" selected="true"/>
59 </Profile>
60 <Rule selected="false" id="xccdf_org.openscap.www_rule_1">
61 <title>Rule 1: Enable Audit Service</title>
62 <check system="http://open-scap.org/page/SCE">
63 <check-import import-name="stdout"/>
64 <check-content-ref href="fedora/checks/sce/rule_1.sh"/>
65 </check>
66 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
67 <check-content-ref href="test_single_rule.oval.xml" name="oval:org.openscap.www:def:1"/>
68 </check>
69 </Rule>
70 </Benchmark>
71 </ds:component>
72 <ds:extended-component id="scap_org.openscap.www_ecomp_fedora-checks-sce-rule_1.sh" timestamp="2024-10-09T18:03:34">
73 <sce:script>#!/bin/bash
74 echo "Hello how are you"
75 exit "$XCCDF_RESULT_FAIL"
76 </sce:script>
77 </ds:extended-component>
78 </ds:data-stream-collection>