Debian Codegraph @

tests/oscap_info_profiles/test_reference_ds_with_tailoring.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" id="scap_org.open-scap_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.open-scap_datastream_simple" scap-version="1.3" use-case="OTHER">
4 <ds:checklists>
5 <ds:component-ref id="scap_org.open-scap_cref_test_single_rule.xccdf.xml" xlink:href="#scap_org.open-scap_comp_test_single_rule.xccdf.xml">
6 <cat:catalog>
7 <cat:uri name="test_single_rule.oval.xml" uri="#scap_org.open-scap_cref_test_single_rule.oval.xml"/>
8 </cat:catalog>
9 </ds:component-ref>
10 <ds:component-ref id="scap_org.open-scap_cref_tailoring.xml" xlink:href="#scap_org.open-scap_comp_tailoring.xml"/>
11 </ds:checklists>
12 <ds:checks>
13 <ds:component-ref id="scap_org.open-scap_cref_test_single_rule.oval.xml" xlink:href="#scap_org.open-scap_comp_test_single_rule.oval.xml"/>
14 </ds:checks>
15 </ds:data-stream>
16 <ds:component id="scap_org.open-scap_comp_test_single_rule.oval.xml" timestamp="2021-02-01T08:07:06+01:00">
17 <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">
18 <generator>
19 <oval:schema_version>5.11.2</oval:schema_version>
20 <oval:timestamp>2021-02-01T08:07:06+01:00</oval:timestamp>
21 </generator>
22 <definitions>
23 <definition class="compliance" id="oval:x:def:1" version="1">
24 <metadata>
25 <title>PASS</title>
26 <description>pass</description>
27 </metadata>
28 <criteria>
29 <criterion comment="PASS test" test_ref="oval:x:tst:1"/>
30 </criteria>
31 </definition>
32 </definitions>
33 <tests>
34 <variable_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:x:tst:1" check="all" comment="always pass" version="1">
35 <object object_ref="oval:x:obj:1"/>
36 </variable_test>
37 </tests>
38 <objects>
39 <variable_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:x:obj:1" version="1" comment="x">
40 <var_ref>oval:x:var:1</var_ref>
41 </variable_object>
42 </objects>
43 <variables>
44 <constant_variable id="oval:x:var:1" version="1" comment="x" datatype="int">
45 <value>100</value>
46 </constant_variable>
47 </variables>
48 </oval_definitions>
49 </ds:component>
50 <ds:component id="scap_org.open-scap_comp_test_single_rule.xccdf.xml" timestamp="2021-02-01T08:07:06+01:00">
51 <Benchmark xmlns="http://checklists.nist.gov/xccdf/1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="xccdf_com.example.www_benchmark_dummy" xsi:schemaLocation="http://checklists.nist.gov/xccdf/1.1 xccdf-1.1.4.xsd" resolved="false" xml:lang="en-US">
52 <status date="2021-01-21">accepted</status>
53 <title>Test Benchmark</title>
54 <description>Description</description>
55 <reference href="https://www.animals.com">animals</reference>
56 <reference href="https://www.fruit.com">fruit</reference>
57 <version>1.0</version>
58 <metadata>
59 <dc:contributor xmlns:dc="http://purl.org/dc/elements/1.1/">OpenSCAP</dc:contributor>
60 <dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/">OpenSCAP</dc:publisher>
61 <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">OpenSCAP</dc:creator>
62 <dc:source xmlns:dc="http://purl.org/dc/elements/1.1/">http://scap.nist.gov</dc:source>
63 </metadata>
64 <Profile id="xccdf_com.example.www_profile_P1">
65 <title>xccdf_test_profile</title>
66 <description>This profile is for testing.</description>
67 <select idref="xccdf_com.example.www_rule_R1" selected="true"/>
68 <select idref="xccdf_com.example.www_rule_R2" selected="true"/>
69 <select idref="xccdf_com.example.www_rule_R3" selected="true"/>
70 <select idref="xccdf_com.example.www_rule_R4" selected="true"/>
71 <set-value idref="xccdf_com.example.www_value_V1">42</set-value>
72 <refine-value idref="xccdf_com.example.www_value_V2" selector="custom"/>
73 </Profile>
74 <Value id="xccdf_com.example.www_value_V1" type="number">
75 <title>Value V1</title>
76 <value>10</value>
77 <value selector="twenty">20</value>
78 </Value>
79 <Value id="xccdf_com.example.www_value_V2" type="string">
80 <title>Value V2</title>
81 <value>default_val</value>
82 <value selector="custom">custom_val</value>
83 </Value>
84 <Rule selected="true" id="xccdf_com.example.www_rule_R1">
85 <title>Rule R1</title>
86 <description>Description</description>
87 <reference href="https://www.animals.com">3.14</reference>
88 <reference href="https://www.fruit.com">42.42</reference>
89 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
90 <check-content-ref href="test_single_rule.oval.xml" name="oval:x:def:1"/>
91 </check>
92 </Rule>
93 <Rule selected="true" id="xccdf_com.example.www_rule_R2">
94 <title>Rule R2</title>
95 <description>Description</description>
96 <reference href="https://www.animals.com">17.71.777</reference>
97 <reference href="https://www.fruit.com">88888888</reference>
98 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
99 <check-content-ref href="test_single_rule.oval.xml" name="oval:x:def:1"/>
100 </check>
101 </Rule>
102 <Rule selected="true" id="xccdf_com.example.www_rule_R3">
103 <title>Rule R3</title>
104 <description>Description</description>
105 <reference href="https://www.animals.com">17.71.777</reference>
106 <reference href="https://www.fruit.com">666</reference>
107 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
108 <check-content-ref href="test_single_rule.oval.xml" name="oval:x:def:1"/>
109 </check>
110 </Rule>
111 <Rule selected="true" id="xccdf_com.example.www_rule_R4">
112 <title>Rule R4</title>
113 <description>Description</description>
114 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
115 <check-content-ref href="test_single_rule.oval.xml" name="oval:x:def:1"/>
116 </check>
117 </Rule>
118 </Benchmark>
119 </ds:component>
120 <ds:component id="scap_org.open-scap_comp_tailoring.xml" timestamp="2021-02-01T08:07:06+01:00">
121 <Tailoring xmlns="http://checklists.nist.gov/xccdf/1.2" id="xccdf_com.example.www_tailoring_test">
122 <benchmark href="#scap_org.open-scap_comp_test_single_rule.xccdf.xml"/>
123 <version>1.0</version>
124 <Profile id="xccdf_com.example.www_profile_P1_tailored" extends="xccdf_com.example.www_profile_P1">
125 <title>Tailored P1</title>
126 <select idref="xccdf_com.example.www_rule_R3" selected="false"/>
127 <select idref="xccdf_com.example.www_rule_R4" selected="false"/>
128 <set-value idref="xccdf_com.example.www_value_V1">99</set-value>
129 </Profile>
130 </Tailoring>
131 </ds:component>
132 </ds:data-stream-collection>