|
66 | 66 | <criterion test_ref="oval:x:tst:5" comment="test"/>
|
67 | 67 | </criteria>
|
68 | 68 | </definition>
|
| 69 | + <definition class="compliance" version="1" id="oval:x:def:6"> |
| 70 | + <metadata> |
| 71 | + <title>A simple test OVAL for xmlfilecontent test - check nonexisting attribute</title> |
| 72 | + <description>x</description> |
| 73 | + <affected family="unix"> |
| 74 | + <platform>x</platform> |
| 75 | + </affected> |
| 76 | + </metadata> |
| 77 | + <criteria> |
| 78 | + <criterion test_ref="oval:x:tst:6" comment="test"/> |
| 79 | + </criteria> |
| 80 | + </definition> |
| 81 | + <definition class="compliance" version="1" id="oval:x:def:7"> |
| 82 | + <metadata> |
| 83 | + <title>A simple test OVAL for xmlfilecontent test - check nonexisting element</title> |
| 84 | + <description>x</description> |
| 85 | + <affected family="unix"> |
| 86 | + <platform>x</platform> |
| 87 | + </affected> |
| 88 | + </metadata> |
| 89 | + <criteria> |
| 90 | + <criterion test_ref="oval:x:tst:7" comment="test"/> |
| 91 | + </criteria> |
| 92 | + </definition> |
69 | 93 | </definitions>
|
70 | 94 |
|
71 | 95 | <tests>
|
|
89 | 113 | <ind:object object_ref="oval:x:obj:5"/>
|
90 | 114 | <ind:state state_ref="oval:x:ste:5"/>
|
91 | 115 | </ind:xmlfilecontent_test>
|
| 116 | + <ind:xmlfilecontent_test id="oval:x:tst:6" version="1" comment="test an xpath expression" check="all" check_existence="none_exist"> |
| 117 | + <ind:object object_ref="oval:x:obj:6"/> |
| 118 | + </ind:xmlfilecontent_test> |
| 119 | + <ind:xmlfilecontent_test id="oval:x:tst:7" version="1" comment="test an xpath expression" check="all" check_existence="none_exist"> |
| 120 | + <ind:object object_ref="oval:x:obj:7"/> |
| 121 | + </ind:xmlfilecontent_test> |
92 | 122 | </tests>
|
93 | 123 |
|
94 | 124 | <objects>
|
|
112 | 142 | <ind:filepath>/tmp/example.xml</ind:filepath>
|
113 | 143 | <ind:xpath>//*[@regid="mycoyote.com"]/@name</ind:xpath>
|
114 | 144 | </ind:xmlfilecontent_object>
|
| 145 | + <ind:xmlfilecontent_object id="oval:x:obj:6" version="1" comment="xpath query"> |
| 146 | + <ind:filepath>/tmp/example.xml</ind:filepath> |
| 147 | + <ind:xpath>/SoftwareIdentity/@thisattributedoesnotexist</ind:xpath> |
| 148 | + </ind:xmlfilecontent_object> |
| 149 | + <ind:xmlfilecontent_object id="oval:x:obj:7" version="1" comment="xpath query"> |
| 150 | + <ind:filepath>/tmp/example.xml</ind:filepath> |
| 151 | + <ind:xpath>/SoftwareIdentity/thiselementdoesnotexist</ind:xpath> |
| 152 | + </ind:xmlfilecontent_object> |
115 | 153 | </objects>
|
116 | 154 |
|
117 | 155 | <states>
|
|
0 commit comments