| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <oval_definitions xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" |
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" |
| 5 | xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" |
| 6 | xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" |
| 7 | xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" |
| 8 | xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" |
| 9 | xsi:schemaLocation=" |
| 10 | http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd |
| 11 | http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd |
| 12 | http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd |
| 13 | http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd |
| 14 | http://standards.iso.org/iso/19770/-2/2009/schema.xsd schema.xsd"> |
| 15 | <generator> |
| 16 | <oval:schema_version>5.10</oval:schema_version> |
| 17 | <oval:timestamp>2013-09-17T19:42:00</oval:timestamp> |
| 18 | </generator> |
| 19 | |
| 20 | <definitions> |
| 21 | <definition id="oval:org.gentoo.dev.swift.postgres:def:1" version="1" class="compliance"> |
| 22 | <metadata> |
| 23 | <title>PostgreSQL test</title> |
| 24 | <description>Test of the database engine which is not supported by sql57 probe.</description> |
| 25 | </metadata> |
| 26 | <criteria> |
| 27 | <criterion test_ref="oval:org.gentoo.dev.swift.postgres:tst:1" comment="User test"/> |
| 28 | </criteria> |
| 29 | </definition> |
| 30 | </definitions> |
| 31 | |
| 32 | <tests> |
| 33 | <ind-def:sql57_test id="oval:org.gentoo.dev.swift.postgres:tst:1" |
| 34 | version="1" check="all" check_existence="only_one_exists" |
| 35 | comment="Test for an unsupported database engine"> |
| 36 | <ind-def:object object_ref="oval:org.gentoo.dev.swift.postgres:obj:1" /> |
| 37 | <ind-def:state state_ref="oval:org.gentoo.dev.swift.postgres:ste:1" /> |
| 38 | </ind-def:sql57_test> |
| 39 | </tests> |
| 40 | |
| 41 | <objects> |
| 42 | <ind-def:sql57_object id="oval:org.gentoo.dev.swift.postgres:obj:1" version="1" comment="sqlserver is not supported by openscap"> |
| 43 | <ind-def:engine>sqlserver</ind-def:engine> |
| 44 | <ind-def:version>1.0</ind-def:version> |
| 45 | <ind-def:connection_string>database=sqlserver;uid=sqlserver;server=test;pwd=potkaliseukolina</ind-def:connection_string> |
| 46 | <ind-def:sql>SELECT usename::text, usesysid::integer FROM pg_catalog.pg_user WHERE usesuper;</ind-def:sql> |
| 47 | </ind-def:sql57_object> |
| 48 | </objects> |
| 49 | |
| 50 | <states> |
| 51 | <ind-def:sql57_state id="oval:org.gentoo.dev.swift.postgres:ste:1" version="1" comment="User"> |
| 52 | <ind-def:result datatype="record" operation="equals"> |
| 53 | <field datatype="string" name="usename">sqladmin</field> |
| 54 | </ind-def:result> |
| 55 | </ind-def:sql57_state> |
| 56 | </states> |
| 57 | |
| 58 | </oval_definitions> |