Debian Codegraph @

tests/mitre/ind-def_sql_test.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" 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">
3 <generator>
4 <oval:schema_version>5.10.1</oval:schema_version>
5 <oval:timestamp>2009-01-12T10:41:00-05:00</oval:timestamp>
6 <terms_of_use>Copyright (c) 2002-2012, The MITRE Corporation. All rights reserved. The contents of this file are subject to the license described in terms.txt.</terms_of_use>
7 </generator>
8 <definitions>
9 <definition id="oval:org.mitre.oval.test:def:502" version="1" class="miscellaneous">
10 <metadata>
11 <title>Evaluate to true if the ind-def:sql_test is properly supported</title>
12 <description>This definition is intended to evalutate to true if the interpreter properly supports the ind-def:sql_test.</description>
13 </metadata>
14 <notes>
15 <note>It is important to note that the values used in this test definition are not real and will need to be modified to match the information specific to tha database being queried.</note>
16 </notes>
17 <criteria operator="AND">
18 <criterion comment="Test that the sql_object is supported with the engine, version, connection_string, and sql entities equal to some value." test_ref="oval:org.mitre.oval.test:tst:118"/>
19 </criteria>
20 </definition>
21 </definitions>
22 <tests>
23 <sql_test id="oval:org.mitre.oval.test:tst:118" version="1" comment="Test that the sql_object is supported with the engine, version, connection_string, and sql entities equal to some value." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
24 <object object_ref="oval:org.mitre.oval.test:obj:132"/>
25 <state state_ref="oval:org.mitre.oval.test:ste:131"/>
26 </sql_test>
27 </tests>
28 <objects>
29 <sql_object id="oval:org.mitre.oval.test:obj:132" version="1" comment="This sql_object collects the sql_item(s) where the engine entity equals 'postgre', the version entity equals '9.0', the connection_string equals 'DRIVER={PostgreSQL};DATABASE=database;SERVER=server;UID=username;PWD=password;', and the sql entity equals 'SELECT column FROM table'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
30 <engine>postgre</engine>
31 <version>9.0</version>
32 <connection_string>DRIVER={PostgreSQL};DATABASE=database;SERVER=server;UID=username;PWD=password;</connection_string>
33 <sql>SELECT column FROM table</sql>
34 </sql_object>
35 </objects>
36 <states>
37 <sql_state id="oval:org.mitre.oval.test:ste:131" version="1" comment="This sql_state represents a sql_item that has a engine that equals 'postgre' and a result that matches the regular expression '.*'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
38 <engine>postgre</engine>
39 <result operation="pattern match">.*</result>
40 </sql_state>
41 </states>
42 </oval_definitions>