Debian Codegraph @

tests/API/OVAL/unittests/cim_datetime.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <oval_definitions 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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:win-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#windows" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5">
3 <generator>
4 <oval:schema_version>5.11</oval:schema_version>
5 <oval:timestamp>2015-07-07T07:07:07+02:00</oval:timestamp>
6 </generator>
7 <definitions>
8 <definition id="oval:x:def:1" version="1" class="miscellaneous">
9 <metadata>
10 <title>Evaluate to true if the cim_datetime format in oval-def:time_difference function is properly supported</title>
11 <description>This definition is intended to evalutate to true if the interpreter properly supports the cim_datetime format in oval-def:time_difference function.</description>
12 </metadata>
13 <criteria operator="AND">
14 <criterion comment="Test that the time_difference function is supported with a cim_datetime type." test_ref="oval:x:tst:1"/>
15 <criterion comment="Test that the time_difference function is supported with a cim_datetime type." test_ref="oval:x:tst:2"/>
16 <criterion comment="Test that the time_difference function is supported with a cim_datetime type." test_ref="oval:x:tst:3"/>
17 </criteria>
18 </definition>
19 </definitions>
20 <tests>
21 <variable_test id="oval:x:tst:1" version="1" comment="Test that the time_difference function is supported with a cim_datetime type." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
22 <object object_ref="oval:x:obj:1"/>
23 <state state_ref="oval:x:ste:1"/>
24 </variable_test>
25 <variable_test id="oval:x:tst:2" version="1" comment="Test that the time_difference function is supported with a cim_datetime type." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
26 <object object_ref="oval:x:obj:2"/>
27 <state state_ref="oval:x:ste:1"/>
28 </variable_test>
29 <variable_test id="oval:x:tst:3" version="1" comment="Test that the time_difference function is supported with a cim_datetime type." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
30 <object object_ref="oval:x:obj:3"/>
31 <state state_ref="oval:x:ste:1"/>
32 </variable_test>
33 </tests>
34 <objects>
35 <variable_object id="oval:x:obj:1" version="1" comment="var1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
36 <var_ref>oval:x:var:1</var_ref>
37 </variable_object>
38 <variable_object id="oval:x:obj:2" version="1" comment="var2" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
39 <var_ref>oval:x:var:2</var_ref>
40 </variable_object>
41 <variable_object id="oval:x:obj:3" version="1" comment="var3" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
42 <var_ref>oval:x:var:3</var_ref>
43 </variable_object>
44 </objects>
45 <states>
46 <variable_state id="oval:x:ste:1" version="1" comment="The time difference between two timedate values is 3600 seconds." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
47 <value>3600</value>
48 </variable_state>
49 </states>
50 <variables>
51 <local_variable id="oval:x:var:1" version="1" comment="one hour time difference" datatype="string">
52 <time_difference format_1="cim_datetime" format_2="cim_datetime">
53 <literal_component>20150702140000.123456+120</literal_component>
54 <literal_component>20150702130000.123456+120</literal_component>
55 </time_difference>
56 </local_variable>
57 <local_variable id="oval:x:var:2" version="1" comment="one hour time difference" datatype="string">
58 <time_difference format_1="cim_datetime" format_2="cim_datetime">
59 <literal_component>2015-07-02 14:00:00:123</literal_component>
60 <literal_component>2015-07-02 13:00:00:123</literal_component>
61 </time_difference>
62 </local_variable>
63 <local_variable id="oval:x:var:3" version="1" comment="one hour time difference" datatype="string">
64 <time_difference format_1="cim_datetime" format_2="cim_datetime">
65 <literal_component>07-02-2015 14:00:00:123</literal_component>
66 <literal_component>07-02-2015 13:00:00:123</literal_component>
67 </time_difference>
68 </local_variable>
69 </variables>
70 </oval_definitions>