adamwill / rpms / openscap

Forked from rpms/openscap 3 years ago
Clone
7a6a25
From 919170300b1d05a807ad59c22ef6c4ab48c2f1c9 Mon Sep 17 00:00:00 2001
7a6a25
From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= <jcerny@redhat.com>
7a6a25
Date: Tue, 21 May 2019 13:21:45 +0200
7a6a25
Subject: [PATCH] Fix invalid OVAL in test ds_continue_without_remote_resources
7a6a25
7a6a25
Addressing:
7a6a25
$ oscap ds sds-split remote_content_1.2.ds.xml /tmp/xxx
7a6a25
$ oscap oval validate --schematron /tmp/xxx/test_single_rule.oval.xml
7a6a25
7a6a25
oval:x:obj:1 - referenced variable oval:x:var:1 not found. The var_ref entity must hold a variable id that exists in the document.
7a6a25
---
7a6a25
 .../remote_content_1.2.ds.xml                              | 7 +++++++
7a6a25
 .../remote_content_1.3.ds.xml                              | 7 +++++++
7a6a25
 2 files changed, 14 insertions(+)
7a6a25
7a6a25
diff --git a/tests/DS/ds_continue_without_remote_resources/remote_content_1.2.ds.xml b/tests/DS/ds_continue_without_remote_resources/remote_content_1.2.ds.xml
7a6a25
index 31d4fc770..503b688ec 100644
7a6a25
--- a/tests/DS/ds_continue_without_remote_resources/remote_content_1.2.ds.xml
7a6a25
+++ b/tests/DS/ds_continue_without_remote_resources/remote_content_1.2.ds.xml
7a6a25
@@ -43,6 +43,13 @@
7a6a25
       <var_ref>oval:x:var:1</var_ref>
7a6a25
     </variable_object>
7a6a25
     </objects>
7a6a25
+
7a6a25
+    <variables>
7a6a25
+      <constant_variable id="oval:x:var:1" version="1" comment="x" datatype="int">
7a6a25
+        <value>100</value>
7a6a25
+      </constant_variable>
7a6a25
+    </variables>
7a6a25
+
7a6a25
 </oval_definitions>
7a6a25
 </ds:component>
7a6a25
 
7a6a25
diff --git a/tests/DS/ds_continue_without_remote_resources/remote_content_1.3.ds.xml b/tests/DS/ds_continue_without_remote_resources/remote_content_1.3.ds.xml
7a6a25
index 3cf15f8df..bea285bc1 100644
7a6a25
--- a/tests/DS/ds_continue_without_remote_resources/remote_content_1.3.ds.xml
7a6a25
+++ b/tests/DS/ds_continue_without_remote_resources/remote_content_1.3.ds.xml
7a6a25
@@ -45,6 +45,13 @@
7a6a25
       <var_ref>oval:x:var:1</var_ref>
7a6a25
     </variable_object>
7a6a25
     </objects>
7a6a25
+
7a6a25
+    <variables>
7a6a25
+      <constant_variable id="oval:x:var:1" version="1" comment="x" datatype="int">
7a6a25
+        <value>100</value>
7a6a25
+      </constant_variable>
7a6a25
+    </variables>
7a6a25
+
7a6a25
 </oval_definitions>
7a6a25
 </ds:component>
7a6a25