[Libosinfo] [PATCH] test-os: Add missing XML files

Fabiano Fidêncio fidencio at redhat.com
Mon Nov 19 13:59:53 UTC 2018


Those XMLs should have been added as part be1f2def2 but unfortunately
something went wrong while rebasing the patches.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
Pushed under build-breakage rule.
---
 .../test-os-resources-inheritance-1.xml       | 25 +++++++++++++++++++
 .../test-os-resources-inheritance-2.xml       | 12 +++++++++
 .../test-os-resources-inheritance-3.xml       | 21 ++++++++++++++++
 .../test-os-resources-inheritance-4.xml       | 21 ++++++++++++++++
 .../test-os-resources-inheritance-5.xml       | 12 +++++++++
 5 files changed, 91 insertions(+)
 create mode 100644 tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-1.xml
 create mode 100644 tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-2.xml
 create mode 100644 tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-3.xml
 create mode 100644 tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-4.xml
 create mode 100644 tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-5.xml

diff --git a/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-1.xml b/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-1.xml
new file mode 100644
index 0000000..a9d1e87
--- /dev/null
+++ b/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-1.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<libosinfo version="0.0.1">
+  <os id="http://libosinfo.org/test/os/resources/inheritance/1">
+    <short-id>resourcesinheritance1</short-id>
+    <name>Resources Inheritance 1</name>
+    <vendor>libosinfo.org</vendor>
+    <family>test</family>
+
+    <resources arch="all">
+      <minimum>
+        <n-cpus>1</n-cpus>
+        <cpu>1</cpu>
+        <ram>1</ram>
+        <storage>1</storage>
+      </minimum>
+      <recommended>
+        <n-cpus>2</n-cpus>
+        <cpu>2</cpu>
+        <ram>2</ram>
+        <storage>2</storage>
+      </recommended>
+    </resources>
+
+  </os>
+</libosinfo>
diff --git a/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-2.xml b/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-2.xml
new file mode 100644
index 0000000..555f7c6
--- /dev/null
+++ b/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-2.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<libosinfo version="0.0.1">
+  <os id="http://libosinfo.org/test/os/resources/inheritance/2">
+    <short-id>resourcesinheritance2</short-id>
+    <name>Resources Inheritance 2</name>
+    <vendor>libosinfo.org</vendor>
+    <family>test</family>
+    <derives-from id="http://libosinfo.org/test/os/resources/inheritance/1"/>
+
+    <resources arch="all" inherit="true"/>
+  </os>
+</libosinfo>
diff --git a/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-3.xml b/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-3.xml
new file mode 100644
index 0000000..39d525a
--- /dev/null
+++ b/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-3.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<libosinfo version="0.0.1">
+  <os id="http://libosinfo.org/test/os/resources/inheritance/3">
+    <short-id>resourcesinheritance3</short-id>
+    <name>Resources Inheritance 3</name>
+    <vendor>libosinfo.org</vendor>
+    <family>test</family>
+    <derives-from id="http://libosinfo.org/test/os/resources/inheritance/2"/>
+
+    <resources arch="all">
+      <minimum>
+        <n-cpus>3</n-cpus>
+        <ram>3</ram>
+      </minimum>
+      <recommended>
+        <n-cpus>6</n-cpus>
+        <ram>6</ram>
+      </recommended>
+    </resources>
+  </os>
+</libosinfo>
diff --git a/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-4.xml b/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-4.xml
new file mode 100644
index 0000000..a7bce68
--- /dev/null
+++ b/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-4.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<libosinfo version="0.0.1">
+  <os id="http://libosinfo.org/test/os/resources/inheritance/4">
+    <short-id>resourcesinheritance4</short-id>
+    <name>Resources Inheritance 4</name>
+    <vendor>libosinfo.org</vendor>
+    <family>test</family>
+    <derives-from id="http://libosinfo.org/test/os/resources/inheritance/3"/>
+
+    <resources arch="all">
+      <minimum>
+        <cpu>3</cpu>
+        <storage>3</storage>
+      </minimum>
+      <recommended>
+        <cpu>6</cpu>
+        <storage>6</storage>
+      </recommended>
+    </resources>
+  </os>
+</libosinfo>
diff --git a/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-5.xml b/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-5.xml
new file mode 100644
index 0000000..e5ceab9
--- /dev/null
+++ b/tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-5.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<libosinfo version="0.0.1">
+  <os id="http://libosinfo.org/test/os/resources/inheritance/5">
+    <short-id>resourcesinheritance5</short-id>
+    <name>Resources Inheritance 5</name>
+    <vendor>libosinfo.org</vendor>
+    <family>test</family>
+    <derives-from id="http://libosinfo.org/test/os/resources/inheritance/4"/>
+
+    <resources arch="all" inherit="true"/>
+  </os>
+</libosinfo>
-- 
2.19.1




More information about the Libosinfo mailing list