add test for delta rpm.
authorJosef Reidinger <jreidinger@suse.cz>
Tue, 20 May 2008 14:55:11 +0000 (14:55 +0000)
committerJosef Reidinger <jreidinger@suse.cz>
Tue, 20 May 2008 14:55:11 +0000 (14:55 +0000)
tests/zypp/CMakeLists.txt
tests/zypp/data/Delta/repodata/deltainfo.xml [new file with mode: 0644]
tests/zypp/data/Delta/repodata/primary.xml.gz [new file with mode: 0644]
tests/zypp/data/Delta/repodata/repomd.xml [new file with mode: 0644]
tests/zypp/data/Delta/repodata/repomd.xml.asc [new file with mode: 0644]
tests/zypp/data/Delta/repodata/repomd.xml.key [new file with mode: 0644]
tests/zypp/data/Delta/repodata/updateinfo.xml.gz [new file with mode: 0644]

index 83ecf8b..44ed3a1 100644 (file)
@@ -12,6 +12,7 @@ ADD_TESTS(
   Capabilities
   CheckSum
   Digest
+  Deltarpm
   Edition
   Fetcher
   FileChecker
diff --git a/tests/zypp/data/Delta/repodata/deltainfo.xml b/tests/zypp/data/Delta/repodata/deltainfo.xml
new file mode 100644 (file)
index 0000000..2909d1b
--- /dev/null
@@ -0,0 +1,17 @@
+ <deltainfo>
+  <newpackage name="libzypp" epoch="0" version="4.21.3" release="2" arch="i386">
+    <delta oldepoch="0" oldversion="4.21.3" oldrelease="1">
+      <filename>DRPMS/libzypp-4.21.3-1_4.21.3-2.i386.drpm</filename>
+      <sequence>libzypp-4.21.3-1-d3571f98b048b1a870e40241bb46c67ab4</sequence>
+      <size>22452</size>
+      <checksum type="sha">8f05394695dee9399c204614e21e5f6848990ab7</checksum>
+    </delta>
+    <delta oldepoch="0" oldversion="4.21.2" oldrelease="3">
+      <filename>DRPMS/libzypp-4.21.2-3_4.21.3-2.i386.drpm</filename>
+       <sequence>libzypp-4.21.2-3-e82691677eee1e83b4812572c5c9ce8eb</sequence>
+       <size>110362</size>
+       <checksum type="sha">326658fee45c0baec1e70231046dbaf560f941ce</checksum>
+     </delta>
+   </newpackage>
+ </deltainfo>
+
diff --git a/tests/zypp/data/Delta/repodata/primary.xml.gz b/tests/zypp/data/Delta/repodata/primary.xml.gz
new file mode 100644 (file)
index 0000000..b41606a
Binary files /dev/null and b/tests/zypp/data/Delta/repodata/primary.xml.gz differ
diff --git a/tests/zypp/data/Delta/repodata/repomd.xml b/tests/zypp/data/Delta/repodata/repomd.xml
new file mode 100644 (file)
index 0000000..264628d
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<repomd xmlns="http://linux.duke.edu/metadata/repo">
+  <data type="other">
+    <location href="repodata/other.xml.gz"/>
+    <checksum type="sha">d41033826a12ce44a1b33eff2e7905785e0999da</checksum>
+    <timestamp>1211014822</timestamp>
+    <open-checksum type="sha">319b2951aad2417c8961442ba692d4700962043b</open-checksum>
+  </data>
+  <data type="updateinfo">
+    <location href="repodata/updateinfo.xml.gz"/>
+    <checksum type="sha">4f8f83525b232db93a761ed1be79515956b574cf</checksum>
+    <timestamp>1211014822</timestamp>
+    <open-checksum type="sha">70eb95f379e0db1c9815f0a1cb2269d93e408015</open-checksum>
+  </data>
+  <data type="primary">
+    <location href="repodata/primary.xml.gz"/>
+    <checksum type="sha">28a6aae0cd873e1df286d4a07fc7e54263fec79d</checksum>
+    <timestamp>1211014821</timestamp>
+    <open-checksum type="sha">5ad445e403218ef4a6585dbfc37ccf31d5a10096</open-checksum>
+  </data>
+  <data type="filelists">
+    <location href="repodata/filelists.xml.gz"/>
+    <checksum type="sha">553f609c610b0cf51b54efc4c5c618537707ac8d</checksum>
+    <timestamp>1211014821</timestamp>
+    <open-checksum type="sha">8c840e0b03ad8c2ed0d4ddf57f9a6b5cea3ac412</open-checksum>
+  </data>
+  <data type="deltainfo">
+    <location href="repodata/deltainfo.xml"/>
+    <checksum type="sha">596018d6e767808ac6bf4e89cc0ea1ea7a1916a8</checksum>
+    <timestamp>1211279868</timestamp>
+    <open-checksum type="sha">596018d6e767808ac6bf4e89cc0ea1ea7a1916a8</open-checksum>
+  </data>
+</repomd>
diff --git a/tests/zypp/data/Delta/repodata/repomd.xml.asc b/tests/zypp/data/Delta/repodata/repomd.xml.asc
new file mode 100644 (file)
index 0000000..4533fce
--- /dev/null
@@ -0,0 +1,43 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+<?xml version="1.0" encoding="UTF-8"?>
+<repomd xmlns="http://linux.duke.edu/metadata/repo">
+  <data type="other">
+    <location href="repodata/other.xml.gz"/>
+    <checksum type="sha">d41033826a12ce44a1b33eff2e7905785e0999da</checksum>
+    <timestamp>1211014822</timestamp>
+    <open-checksum type="sha">319b2951aad2417c8961442ba692d4700962043b</open-checksum>
+  </data>
+  <data type="updateinfo">
+    <location href="repodata/updateinfo.xml.gz"/>
+    <checksum type="sha">4f8f83525b232db93a761ed1be79515956b574cf</checksum>
+    <timestamp>1211014822</timestamp>
+    <open-checksum type="sha">70eb95f379e0db1c9815f0a1cb2269d93e408015</open-checksum>
+  </data>
+  <data type="primary">
+    <location href="repodata/primary.xml.gz"/>
+    <checksum type="sha">28a6aae0cd873e1df286d4a07fc7e54263fec79d</checksum>
+    <timestamp>1211014821</timestamp>
+    <open-checksum type="sha">5ad445e403218ef4a6585dbfc37ccf31d5a10096</open-checksum>
+  </data>
+  <data type="filelists">
+    <location href="repodata/filelists.xml.gz"/>
+    <checksum type="sha">553f609c610b0cf51b54efc4c5c618537707ac8d</checksum>
+    <timestamp>1211014821</timestamp>
+    <open-checksum type="sha">8c840e0b03ad8c2ed0d4ddf57f9a6b5cea3ac412</open-checksum>
+  </data>
+  <data type="deltainfo">
+    <location href="repodata/deltainfo.xml"/>
+    <checksum type="sha">596018d6e767808ac6bf4e89cc0ea1ea7a1916a8</checksum>
+    <timestamp>1211279868</timestamp>
+    <open-checksum type="sha">596018d6e767808ac6bf4e89cc0ea1ea7a1916a8</open-checksum>
+  </data>
+</repomd>
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkgy4a8ACgkQ1iFKyE0tq/K1UgCgkm7T8QgC27qE9labaumrHo8o
+o/gAoMX7sCbj6CkSTL8a+9eQf+BD0eDV
+=mZtk
+-----END PGP SIGNATURE-----
diff --git a/tests/zypp/data/Delta/repodata/repomd.xml.key b/tests/zypp/data/Delta/repodata/repomd.xml.key
new file mode 100644 (file)
index 0000000..66bd5ed
--- /dev/null
@@ -0,0 +1,43 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+mQGiBEfNOC4RBADigjtTYiTyHJ1Ld9Eiul005PyBoIk0oG30mbsrlx+ETir90aB+
+9FwqfiYBbug0eAuIvF8Cpg2scEqtL8yLQHaeNzVz89iAQvPa1UdCUkn6MLMGLm4F
+R9aaOsVA4yrtUDyoouz8eu/WzZfiwi23auEuBcebb19HPZ38YLLNQP39RwCgzWRr
+pfJLYd/W2TYoAg/zpIh6VsMEAMzVoHQWd/BULoqmXORVvssB4u3apXiL4pThCvGk
+7PlicRTIptJnYUUnXbOBm8kcRmW10Bh/Iahxr7GAjxwADwdXAV/1W9xnj/2uZY09
+EwIrTrVGkEnBM+qciroAwwrR3232f+W/2nKoC+VHfoTdWoYfhh365IpWRlgRhWDc
+fJbNBACuHoGS8yve/hOjyOR6oeqt/vYdTPZZWhCaLME6g41yG19+hosw3a2jjgtK
+eP3pNXUQeSJ4fMzanZcgH2XNNPCljphIogjETLpR11jjoCtQy+N0jNZM27EMCd2g
+LMyW0UFOCqh7hqS0wHbbIkeja2VETsNJhcZEUE/MISdB534LQLQkSm9zZWYgUmVp
+ZGluZ2VyIDxqcmVpZGluZ2VyQHN1c2UuY3o+iGYEExECACYFAkfNOC4CGyMFCQlm
+AYAGCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRDWIUrITS2r8kSdAJ9aAv5D1Vk1
+aAXQtjG8Kbt5OBZcMQCfRvyOql8UUoV30nx3tmfXMWyyYSK5Ag0ER804gBAIAJMI
+aFDKVAnCbm0hm+MjolK3gobEFFr2QZNCu4D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u6dp6N5x+15IIETcWtcIRIhy5Y7qV/AGOX5fFG4YEDnmUIiQ5CpIPEA
+EQEAAbQkSm9zZWYgUmVpZGluZ2VyIDxqcmVpZGluZ2VyQHN1c2UuY3o+iQE2BBMB
+AgAgBQJH8g02AhsDBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQrMbwWCOvAEFw
+dAgA1BvA6/q6rsk0uVsue3sgJunCdQnF9zY2i8FRuOfLwEoOuX3P82TUCrKYT7jq
+NfiWYbtl9+sp4+5TBxY9M5nBgqckMJoze0vrufq8uBLzrsabIYRPjFYpznxjhIeo
+FDA8PcScOYR51K7YhqAk1rU0M9SmeNCh8O6mgI546QZLVHC7w+2SDtsWWoRhn3/k
+WlHBmaU0XYLtyuRIG3uuUjigUU5F9Gz1sj8X/r4WAO4Id9FGruORlGDlW4yK5vVt
+OHE1/vEnpPodJEI4kWisPoJh+/1q4u/zGBtGL724dPmBuqQ3mLwbXiahCaZiGv+p
+SRTL0aukStJZdNaArDg/PTNxFg==
+=ahjB
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/tests/zypp/data/Delta/repodata/updateinfo.xml.gz b/tests/zypp/data/Delta/repodata/updateinfo.xml.gz
new file mode 100644 (file)
index 0000000..28061e0
Binary files /dev/null and b/tests/zypp/data/Delta/repodata/updateinfo.xml.gz differ