diff --git a/pulp_deb/tests/functional/api/test_sync.py b/pulp_deb/tests/functional/api/test_sync.py index c8df1d38e..0a16ca261 100644 --- a/pulp_deb/tests/functional/api/test_sync.py +++ b/pulp_deb/tests/functional/api/test_sync.py @@ -14,7 +14,8 @@ DEB_FIXTURE_STANDARD_REPOSITORY_NAME, DEB_FIXTURE_SUMMARY, DEB_FIXTURE_UPDATE_REPOSITORY_NAME, - DEB_FULL_FIXTURE_SUMMARY, + DEB_INSTALLER_FIXTURE_SUMMARY, + DEB_INSTALLER_SOURCE_FIXTURE_SUMMARY, DEB_REPORT_CODE_SKIP_PACKAGE, DEB_REPORT_CODE_SKIP_RELEASE, DEB_SIGNING_KEY, @@ -26,7 +27,11 @@ "remote_params, fixture_summary", [ ({"gpgkey": DEB_SIGNING_KEY}, DEB_FIXTURE_SUMMARY), - ({"gpgkey": DEB_SIGNING_KEY, "sync_udebs": True}, DEB_FULL_FIXTURE_SUMMARY), + ({"gpgkey": DEB_SIGNING_KEY, "sync_udebs": True}, DEB_INSTALLER_FIXTURE_SUMMARY), + ( + {"gpgkey": DEB_SIGNING_KEY, "sync_udebs": True, "sync_sources": True}, + DEB_INSTALLER_SOURCE_FIXTURE_SUMMARY, + ), ], ) def test_sync( diff --git a/pulp_deb/tests/functional/constants.py b/pulp_deb/tests/functional/constants.py index 79162eb8e..be48fd881 100644 --- a/pulp_deb/tests/functional/constants.py +++ b/pulp_deb/tests/functional/constants.py @@ -27,14 +27,17 @@ def _clean_dict(d): DEB_RELEASE_ARCHITECTURE_NAME = "deb.release_architecture" DEB_RELEASE_COMPONENT_NAME = "deb.release_component" DEB_PACKAGE_RELEASE_COMPONENT_NAME = "deb.package_release_component" +DEB_SOURCE_PACKAGE_RELEASE_COMPONENT_NAME = "deb.source_package_release_component" # Metadata files DEB_RELEASE_FILE_NAME = "deb.release_file" DEB_PACKAGE_INDEX_NAME = "deb.package_index" DEB_INSTALLER_FILE_INDEX_NAME = "deb.installer_file_index" +DEB_SOURCE_INDEX_NAME = "deb.source_index" # Content DEB_PACKAGE_NAME = "deb.package" DEB_INSTALLER_PACKAGE_NAME = "deb.installer_package" DEB_GENERIC_CONTENT_NAME = "deb.generic" +DEB_SOURCE_PACKAGE_NAME = "deb.source_package" DEB_PACKAGE_PATH = urljoin(BASE_CONTENT_PATH, "deb/packages/") DEB_GENERIC_CONTENT_PATH = urljoin(BASE_CONTENT_PATH, "deb/generic_contents/") @@ -75,10 +78,13 @@ def _clean_dict(d): DEB_PACKAGE_NAME: 4, DEB_INSTALLER_PACKAGE_NAME: 0, DEB_GENERIC_CONTENT_NAME: 0, + DEB_SOURCE_INDEX_NAME: 0, + DEB_SOURCE_PACKAGE_RELEASE_COMPONENT_NAME: 0, + DEB_SOURCE_PACKAGE_NAME: 0, } ) -DEB_FULL_FIXTURE_SUMMARY = _clean_dict( +DEB_INSTALLER_FIXTURE_SUMMARY = _clean_dict( { DEB_RELEASE_NAME: 2, DEB_RELEASE_ARCHITECTURE_NAME: 3, @@ -90,6 +96,27 @@ def _clean_dict(d): DEB_PACKAGE_NAME: 4, DEB_INSTALLER_PACKAGE_NAME: 1, DEB_GENERIC_CONTENT_NAME: 0, + DEB_SOURCE_INDEX_NAME: 0, + DEB_SOURCE_PACKAGE_RELEASE_COMPONENT_NAME: 0, + DEB_SOURCE_PACKAGE_NAME: 0, + } +) + +DEB_INSTALLER_SOURCE_FIXTURE_SUMMARY = _clean_dict( + { + DEB_RELEASE_NAME: 2, + DEB_RELEASE_ARCHITECTURE_NAME: 3, + DEB_RELEASE_COMPONENT_NAME: 3, + DEB_RELEASE_FILE_NAME: 2, + DEB_PACKAGE_INDEX_NAME: 7, + DEB_PACKAGE_RELEASE_COMPONENT_NAME: 7, + DEB_INSTALLER_FILE_INDEX_NAME: 0, + DEB_PACKAGE_NAME: 4, + DEB_INSTALLER_PACKAGE_NAME: 1, + DEB_GENERIC_CONTENT_NAME: 0, + DEB_SOURCE_INDEX_NAME: 2, + DEB_SOURCE_PACKAGE_RELEASE_COMPONENT_NAME: 1, + DEB_SOURCE_PACKAGE_NAME: 1, } ) diff --git a/pulp_deb/tests/functional/data/debian/dists/ragnarok/InRelease b/pulp_deb/tests/functional/data/debian/dists/ragnarok/InRelease index 640ea95c2..ff75d974d 100644 --- a/pulp_deb/tests/functional/data/debian/dists/ragnarok/InRelease +++ b/pulp_deb/tests/functional/data/debian/dists/ragnarok/InRelease @@ -17,12 +17,20 @@ MD5Sum: 2dd699736bea3699c402ab67140f1786 57 asgard/binary-ppc64/Release 2616b8f984c0e6e3aa1726ff251d7695 556 asgard/debian-installer/binary-ppc64/Packages 8123e632c7bb3afd23b8d19d09017a1c 404 asgard/debian-installer/binary-ppc64/Packages.gz + 9b0cebfeff18cbdbd7d14d11be598e83 143 asgard/source/Release + c1db7cf0fa7f1b075903f70e46b7c8e9 1695 asgard/source/Sources + d532a9642e4c713f3647f78279dd8129 990 asgard/source/Sources.bz2 + e867a2e63c30df349194249e217a5a73 917 asgard/source/Sources.gz d4f49d07e548ccfaa7a4e64778f2ed55 499 jotunheimr/binary-armeb/Packages b2d7ef9fcfc575216329467b820f93db 376 jotunheimr/binary-armeb/Packages.gz 3a3f681d97bdc7e2f33e6d7f6ced07b9 61 jotunheimr/binary-armeb/Release d41d8cd98f00b204e9800998ecf8427e 0 jotunheimr/binary-ppc64/Packages 7029066c27ac6f5ef18d660d5741979a 20 jotunheimr/binary-ppc64/Packages.gz eae9c1a3c81c9de36590540c800a4059 61 jotunheimr/binary-ppc64/Release + 1eb39c6bec1c9d790f3e0780b438e5c6 147 jotunheimr/source/Release + d41d8cd98f00b204e9800998ecf8427e 0 jotunheimr/source/Sources + 4059d198768f9f8dc9372dc1c54bc3c3 14 jotunheimr/source/Sources.bz2 + 0dd8c8fe39086fba587f2761ff659024 25 jotunheimr/source/Sources.gz SHA1: da39a3ee5e6b4b0d3255bfef95601890afd80709 0 asgard/binary-armeb/Packages 46c6643f07aa7f6bfe7118de926b86defc5087c4 20 asgard/binary-armeb/Packages.gz @@ -34,12 +42,20 @@ SHA1: 3560e122f5cd211da533538e402665e417cf29a2 57 asgard/binary-ppc64/Release 3d949cff0ce9995d94dff308fc4434e26064d426 556 asgard/debian-installer/binary-ppc64/Packages 34a59904483447f134d3623af733769b887d1a42 404 asgard/debian-installer/binary-ppc64/Packages.gz + 38a1e100cbbfdc84b6074a58bcbbdbf23a751814 143 asgard/source/Release + b8f91d25a3b2f93760bed3d29f87f4fea04a694e 1695 asgard/source/Sources + f720f5534a27ca09e23f5e40a9358d1c10f7f65b 990 asgard/source/Sources.bz2 + 31d4e0a5942a58c8ed9e4245ff0d160587f3403f 917 asgard/source/Sources.gz e4fc11dc39c045a906ce3d68c728b9bcd4e17c6b 499 jotunheimr/binary-armeb/Packages 8dd01754c15b181ab8c9f166930e6a8de077cbe2 376 jotunheimr/binary-armeb/Packages.gz eb841b7bab312f73587275780af83109cdd30321 61 jotunheimr/binary-armeb/Release da39a3ee5e6b4b0d3255bfef95601890afd80709 0 jotunheimr/binary-ppc64/Packages 46c6643f07aa7f6bfe7118de926b86defc5087c4 20 jotunheimr/binary-ppc64/Packages.gz ef9a8a328e4ab667dc165d5d39fb987c83019f8c 61 jotunheimr/binary-ppc64/Release + c73e6ccd3e936adf68c6565112edd5697b9a2c34 147 jotunheimr/source/Release + da39a3ee5e6b4b0d3255bfef95601890afd80709 0 jotunheimr/source/Sources + 64a543afbb5f4bf728636bdcbbe7a2ed0804adc2 14 jotunheimr/source/Sources.bz2 + 8c20f45e1e8c9aec7e49c4ef9dc498880e35b5c6 25 jotunheimr/source/Sources.gz SHA256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 0 asgard/binary-armeb/Packages 59869db34853933b239f1e2219cf7d431da006aa919635478511fabbfc8849d2 20 asgard/binary-armeb/Packages.gz @@ -51,20 +67,28 @@ SHA256: 77626f06a3cfb729d1bef0432b7d5d2ec96a36461c4a702cb5822e09ec322484 57 asgard/binary-ppc64/Release 9b22985a79cd906ca901bf4d247751735f76aa5d8c10d08eb655e431c4161299 556 asgard/debian-installer/binary-ppc64/Packages 205b10f234d3094dcee30a8bb3559854758a0a91167e794c16459127c2ff4ca5 404 asgard/debian-installer/binary-ppc64/Packages.gz + 9f2ac31edfdd6793aac204dd6d9d74608fcf089843d1ae9cc88781a459d3bc01 143 asgard/source/Release + 8bc02c7f1b8e08e18f370c46334cc8fb999fcb2a1d629bf95f31d3e6c8ee423e 1695 asgard/source/Sources + 93085317a94c50a78b6f45fdcf103dfffbb849e86c4b865196902d62c5c4ca12 990 asgard/source/Sources.bz2 + 978df1fdfedda83aa271250c0143ea6c0939744325768856f003653a87a0524c 917 asgard/source/Sources.gz 6a2caa1e11172e49852969dabe6e77bda0a2b7c060a7127ca51ef9bc77a1cd56 499 jotunheimr/binary-armeb/Packages d433b23b20fa5f34af00187739d883fa546cce3c918caab5c8fe609ac929baae 376 jotunheimr/binary-armeb/Packages.gz 596f4bd08b59e71fab6926768af1a9f7b7e83aef72c00213248aab709d9f5ec1 61 jotunheimr/binary-armeb/Release e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 0 jotunheimr/binary-ppc64/Packages 59869db34853933b239f1e2219cf7d431da006aa919635478511fabbfc8849d2 20 jotunheimr/binary-ppc64/Packages.gz 4fb4eb7d074617966e0fcfcd7c0fcbdc737e7c65dbdd191f79e4a86de9dec27e 61 jotunheimr/binary-ppc64/Release + 4379be08adb0bb51b8340a2659a74d65a22e31cc11affdab3cdffc8442b96b65 147 jotunheimr/source/Release + e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 0 jotunheimr/source/Sources + d3dda84eb03b9738d118eb2be78e246106900493c0ae07819ad60815134a8058 14 jotunheimr/source/Sources.bz2 + 56061a2727129d03575feb70ff7d610c6b1fdc7d35159ec124ab237823ee68bd 25 jotunheimr/source/Sources.gz -----BEGIN PGP SIGNATURE----- -iQEzBAEBCAAdFiEEbt8wElZIC5uAHro9BaXm2iadnZgFAmPSi8wACgkQBaXm2iad -nZhVQwf/QCtEZaDVBJMwYD+nmGORJakXOuyMmBh6IRXmyfdfqBYuquRGZ9E2YyAF -gl8tC/ynov26/9F5bQhYUIIWQxGzWIAU4njgQlz4EOrLwFDRkEmiQ8mNtm4OHoyN -WcQXo25xasb1y/g+R+oiHKsyhAUTXFkZqDkOYXEbBTxuDI/pQUZqEr9wOy1nrFwx -/ANZywyAu4LgpOYOFvcpP1CzO7oVcJuS2Posjd5RlVx9IHZBJmBOvEl95ZcJ6+5Q -Ka5lW2m5KuD3R6wzCteUjR8/02bvptl62lRfeW8vFJtO0zwmp50ZNgkqM5hYZXk7 -vPbIxQZ157JPDxQPGqG2m9pLEE/daA== -=xmDK +iQEzBAEBCAAdFiEEbt8wElZIC5uAHro9BaXm2iadnZgFAmQkeWwACgkQBaXm2iad +nZhanwgAqS35bunweDMarfOuW6jxhDlQPR5wJpxdqOWk4gtqcxdROOu/x/rvpcp7 +RdbFFvsluYl7Lm9NiD2RfZUmJKQByPcI/vFQZTK9xDOU7S+CQ0Bn34UyI3992m8O +s0m8Qjk2HM4tKVIlDSE84bY6OmgWtE+eGn1ZwrO6j9cVj9aAbToQvwNfQmFYfQCh +NeDUNwWHaG3Xou8A1Ff88XcjWkBIcDtOsR/FJnVQBrLnESz8ZSAQJ8fdnV3uQ5Mv +7NmqsyLipeZ3KS3tKj0atJly0A8Lfpd1/laCDuMkt2bsSpWJMmiTZ52+DHud9t+q +qV3F7aGor6Q3z6E6zdNYV9pB2VAVzw== +=HHbM -----END PGP SIGNATURE----- diff --git a/pulp_deb/tests/functional/data/debian/dists/ragnarok/Release b/pulp_deb/tests/functional/data/debian/dists/ragnarok/Release index 4062dafa1..ac723a140 100644 --- a/pulp_deb/tests/functional/data/debian/dists/ragnarok/Release +++ b/pulp_deb/tests/functional/data/debian/dists/ragnarok/Release @@ -14,12 +14,20 @@ MD5Sum: 2dd699736bea3699c402ab67140f1786 57 asgard/binary-ppc64/Release 2616b8f984c0e6e3aa1726ff251d7695 556 asgard/debian-installer/binary-ppc64/Packages 8123e632c7bb3afd23b8d19d09017a1c 404 asgard/debian-installer/binary-ppc64/Packages.gz + 9b0cebfeff18cbdbd7d14d11be598e83 143 asgard/source/Release + c1db7cf0fa7f1b075903f70e46b7c8e9 1695 asgard/source/Sources + d532a9642e4c713f3647f78279dd8129 990 asgard/source/Sources.bz2 + e867a2e63c30df349194249e217a5a73 917 asgard/source/Sources.gz d4f49d07e548ccfaa7a4e64778f2ed55 499 jotunheimr/binary-armeb/Packages b2d7ef9fcfc575216329467b820f93db 376 jotunheimr/binary-armeb/Packages.gz 3a3f681d97bdc7e2f33e6d7f6ced07b9 61 jotunheimr/binary-armeb/Release d41d8cd98f00b204e9800998ecf8427e 0 jotunheimr/binary-ppc64/Packages 7029066c27ac6f5ef18d660d5741979a 20 jotunheimr/binary-ppc64/Packages.gz eae9c1a3c81c9de36590540c800a4059 61 jotunheimr/binary-ppc64/Release + 1eb39c6bec1c9d790f3e0780b438e5c6 147 jotunheimr/source/Release + d41d8cd98f00b204e9800998ecf8427e 0 jotunheimr/source/Sources + 4059d198768f9f8dc9372dc1c54bc3c3 14 jotunheimr/source/Sources.bz2 + 0dd8c8fe39086fba587f2761ff659024 25 jotunheimr/source/Sources.gz SHA1: da39a3ee5e6b4b0d3255bfef95601890afd80709 0 asgard/binary-armeb/Packages 46c6643f07aa7f6bfe7118de926b86defc5087c4 20 asgard/binary-armeb/Packages.gz @@ -31,12 +39,20 @@ SHA1: 3560e122f5cd211da533538e402665e417cf29a2 57 asgard/binary-ppc64/Release 3d949cff0ce9995d94dff308fc4434e26064d426 556 asgard/debian-installer/binary-ppc64/Packages 34a59904483447f134d3623af733769b887d1a42 404 asgard/debian-installer/binary-ppc64/Packages.gz + 38a1e100cbbfdc84b6074a58bcbbdbf23a751814 143 asgard/source/Release + b8f91d25a3b2f93760bed3d29f87f4fea04a694e 1695 asgard/source/Sources + f720f5534a27ca09e23f5e40a9358d1c10f7f65b 990 asgard/source/Sources.bz2 + 31d4e0a5942a58c8ed9e4245ff0d160587f3403f 917 asgard/source/Sources.gz e4fc11dc39c045a906ce3d68c728b9bcd4e17c6b 499 jotunheimr/binary-armeb/Packages 8dd01754c15b181ab8c9f166930e6a8de077cbe2 376 jotunheimr/binary-armeb/Packages.gz eb841b7bab312f73587275780af83109cdd30321 61 jotunheimr/binary-armeb/Release da39a3ee5e6b4b0d3255bfef95601890afd80709 0 jotunheimr/binary-ppc64/Packages 46c6643f07aa7f6bfe7118de926b86defc5087c4 20 jotunheimr/binary-ppc64/Packages.gz ef9a8a328e4ab667dc165d5d39fb987c83019f8c 61 jotunheimr/binary-ppc64/Release + c73e6ccd3e936adf68c6565112edd5697b9a2c34 147 jotunheimr/source/Release + da39a3ee5e6b4b0d3255bfef95601890afd80709 0 jotunheimr/source/Sources + 64a543afbb5f4bf728636bdcbbe7a2ed0804adc2 14 jotunheimr/source/Sources.bz2 + 8c20f45e1e8c9aec7e49c4ef9dc498880e35b5c6 25 jotunheimr/source/Sources.gz SHA256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 0 asgard/binary-armeb/Packages 59869db34853933b239f1e2219cf7d431da006aa919635478511fabbfc8849d2 20 asgard/binary-armeb/Packages.gz @@ -48,9 +64,17 @@ SHA256: 77626f06a3cfb729d1bef0432b7d5d2ec96a36461c4a702cb5822e09ec322484 57 asgard/binary-ppc64/Release 9b22985a79cd906ca901bf4d247751735f76aa5d8c10d08eb655e431c4161299 556 asgard/debian-installer/binary-ppc64/Packages 205b10f234d3094dcee30a8bb3559854758a0a91167e794c16459127c2ff4ca5 404 asgard/debian-installer/binary-ppc64/Packages.gz + 9f2ac31edfdd6793aac204dd6d9d74608fcf089843d1ae9cc88781a459d3bc01 143 asgard/source/Release + 8bc02c7f1b8e08e18f370c46334cc8fb999fcb2a1d629bf95f31d3e6c8ee423e 1695 asgard/source/Sources + 93085317a94c50a78b6f45fdcf103dfffbb849e86c4b865196902d62c5c4ca12 990 asgard/source/Sources.bz2 + 978df1fdfedda83aa271250c0143ea6c0939744325768856f003653a87a0524c 917 asgard/source/Sources.gz 6a2caa1e11172e49852969dabe6e77bda0a2b7c060a7127ca51ef9bc77a1cd56 499 jotunheimr/binary-armeb/Packages d433b23b20fa5f34af00187739d883fa546cce3c918caab5c8fe609ac929baae 376 jotunheimr/binary-armeb/Packages.gz 596f4bd08b59e71fab6926768af1a9f7b7e83aef72c00213248aab709d9f5ec1 61 jotunheimr/binary-armeb/Release e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 0 jotunheimr/binary-ppc64/Packages 59869db34853933b239f1e2219cf7d431da006aa919635478511fabbfc8849d2 20 jotunheimr/binary-ppc64/Packages.gz 4fb4eb7d074617966e0fcfcd7c0fcbdc737e7c65dbdd191f79e4a86de9dec27e 61 jotunheimr/binary-ppc64/Release + 4379be08adb0bb51b8340a2659a74d65a22e31cc11affdab3cdffc8442b96b65 147 jotunheimr/source/Release + e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 0 jotunheimr/source/Sources + d3dda84eb03b9738d118eb2be78e246106900493c0ae07819ad60815134a8058 14 jotunheimr/source/Sources.bz2 + 56061a2727129d03575feb70ff7d610c6b1fdc7d35159ec124ab237823ee68bd 25 jotunheimr/source/Sources.gz diff --git a/pulp_deb/tests/functional/data/debian/dists/ragnarok/Release.gpg b/pulp_deb/tests/functional/data/debian/dists/ragnarok/Release.gpg index 9c8118def..34348d082 100644 --- a/pulp_deb/tests/functional/data/debian/dists/ragnarok/Release.gpg +++ b/pulp_deb/tests/functional/data/debian/dists/ragnarok/Release.gpg @@ -1,11 +1,11 @@ -----BEGIN PGP SIGNATURE----- -iQEzBAABCAAdFiEEbt8wElZIC5uAHro9BaXm2iadnZgFAmPSi8wACgkQBaXm2iad -nZhZ+wgAkMYfPALeb2q4bBQedLm7mebXxWiW6JuPmkz51V6e5sluWJA7Yfe/VmJC -xqggHNa0AnQ7F730PK6a8bnvFxFHr1MrT4eJxT+1P32c9PUf1nUrv3oAwTCgKifX -Crk/FodEgUJFrwWWpp4RHAVWZlN0P0bLdFUmLsNPmxciExm/xYpHnerIyK7maTOI -UwMb+vM5ZIBnIS1t/7D5oa+OcKTrMKbbLch4hXmYkvbCq0dLnTd+tcO8TX+8avrh -+S1KLGJMmW0BPIr2MMS8Tiehf398ffcgYOGFjir8S6NcLzRaWibk3KF48+cECP/z -Ixpp/N6bAT+4CH1bfUWOnGt25e30Tw== -=b9pr +iQEzBAABCAAdFiEEbt8wElZIC5uAHro9BaXm2iadnZgFAmQkeWwACgkQBaXm2iad +nZhFkwgAkLsbSn7tkxHdl3j3fdiFQwV0wjO5R3TJw0LwPrdHFDmW5kfrIx0NLyYK +NL00EJbQ99wsysyA7RTYb/IQUa2gyOxGdcFb8mWqaZH4ilF0+EsKoSW5tt+vqza/ +TTx8uMuOKqppCL2ITAXgnpkbiUu/u+yBoUaDcyt0w8SRBx+Annd3zGb3enCnY7TM ++cXxp2bu0zB1k1zNsU4BTkNZJaE0xVWmnaI2n81aKv7VZCEyJfW5acdr788d17sy +ZGyX7lBI38+d9P+MPaPLCnQroMQpiZ/3J8gseSKbpHMbOXPXM68dubqtg6BMN9WK +Vm9/7S+u72lzV+40Kfa7v5kBT/RdRw== +=EDi7 -----END PGP SIGNATURE----- diff --git a/pulp_deb/tests/functional/data/debian/dists/ragnarok/asgard/source/Release b/pulp_deb/tests/functional/data/debian/dists/ragnarok/asgard/source/Release new file mode 100644 index 000000000..dfa5576c9 --- /dev/null +++ b/pulp_deb/tests/functional/data/debian/dists/ragnarok/asgard/source/Release @@ -0,0 +1,7 @@ +Origin: upstream ragnarok +Label: upstream ragnarok +Archive: ragnarok +Suite: ragnarok +Codename: ragnarok +Architecture: source +Component: asgard diff --git a/pulp_deb/tests/functional/data/debian/dists/ragnarok/asgard/source/Sources b/pulp_deb/tests/functional/data/debian/dists/ragnarok/asgard/source/Sources new file mode 100644 index 000000000..c6aaed943 --- /dev/null +++ b/pulp_deb/tests/functional/data/debian/dists/ragnarok/asgard/source/Sources @@ -0,0 +1,31 @@ +Package: hello +Binary: hello +Version: 2.10-2ubuntu4 +Maintainer: Ubuntu Developers +Original-Maintainer: Santiago Vila +Build-Depends: debhelper-compat (= 9) +Architecture: any +Standards-Version: 4.3.0 +Format: 3.0 (quilt) +Directory: pool/asgard/h/hello +Files: + 43f8fd6bd1aef52786beb6e171368ecf 6832 hello_2.10-2ubuntu4.debian.tar.xz + c9766c32fececc15fb0e0f397e858da2 1465 hello_2.10-2ubuntu4.dsc + 6cd0ffea3884a4e79330338dcc2987d6 725946 hello_2.10.orig.tar.gz +Checksums-Sha1: + ce06556db96050340cc26a5c5b563bdc57d46f0e 6832 hello_2.10-2ubuntu4.debian.tar.xz + 4dea94ca1d01d8903a6afa3bd75ffa01f2739117 1465 hello_2.10-2ubuntu4.dsc + f7bebf6f9c62a2295e889f66e05ce9bfaed9ace3 725946 hello_2.10.orig.tar.gz +Checksums-Sha256: + 1fd3b7bdee98c1314a43700f42fc0df8a06e194eda40117d096c8e26f5198a8a 6832 hello_2.10-2ubuntu4.debian.tar.xz + 47ec81bf3c2c5d6d9e05cf5f3ad764b21483313b30217cab55855363fe516880 1465 hello_2.10-2ubuntu4.dsc + 31e066137a962676e89f69d1b65382de95a7ef7d914b8cb956f41ea72e0f516b 725946 hello_2.10.orig.tar.gz +Checksums-Sha512: + 0e324a69a58c05dcc7c271a0927bac94d120fd405eb52c71fdbd3ee4a9f4dc0ae06d46659dee060493d260c91404111a51f6fb768ce45b3ee8c4915d9a639afe 6832 hello_2.10-2ubuntu4.debian.tar.xz + d4947f9c0189cf3979d91bc87d14ab9dcdb2a12a937d8f2d4844daaa0dbdec50e3ffbd53b5d19e1a2695a5fde43ab9a79acff18489cd01c41544aac8f211bc55 1465 hello_2.10-2ubuntu4.dsc + e301d785135c52575a8b4c35994c0316f8d366451f604eb5e74c1f907077502aebd5a1a32cd1e26cd7ca32c22f4de5623a335f8ae7e735ac977420df664f01de 725946 hello_2.10.orig.tar.gz +Homepage: http://www.gnu.org/software/hello/ +Package-List: + hello deb devel optional arch=any +Testsuite: autopkgtest + diff --git a/pulp_deb/tests/functional/data/debian/dists/ragnarok/asgard/source/Sources.bz2 b/pulp_deb/tests/functional/data/debian/dists/ragnarok/asgard/source/Sources.bz2 new file mode 100644 index 000000000..87a7803a9 Binary files /dev/null and b/pulp_deb/tests/functional/data/debian/dists/ragnarok/asgard/source/Sources.bz2 differ diff --git a/pulp_deb/tests/functional/data/debian/dists/ragnarok/asgard/source/Sources.gz b/pulp_deb/tests/functional/data/debian/dists/ragnarok/asgard/source/Sources.gz new file mode 100644 index 000000000..f7342932d Binary files /dev/null and b/pulp_deb/tests/functional/data/debian/dists/ragnarok/asgard/source/Sources.gz differ diff --git a/pulp_deb/tests/functional/data/debian/dists/ragnarok/jotunheimr/source/Release b/pulp_deb/tests/functional/data/debian/dists/ragnarok/jotunheimr/source/Release new file mode 100644 index 000000000..cf7e213d5 --- /dev/null +++ b/pulp_deb/tests/functional/data/debian/dists/ragnarok/jotunheimr/source/Release @@ -0,0 +1,7 @@ +Origin: upstream ragnarok +Label: upstream ragnarok +Archive: ragnarok +Suite: ragnarok +Codename: ragnarok +Architecture: source +Component: jotunheimr diff --git a/pulp_deb/tests/functional/data/debian/dists/ragnarok/jotunheimr/source/Sources b/pulp_deb/tests/functional/data/debian/dists/ragnarok/jotunheimr/source/Sources new file mode 100644 index 000000000..e69de29bb diff --git a/pulp_deb/tests/functional/data/debian/dists/ragnarok/jotunheimr/source/Sources.bz2 b/pulp_deb/tests/functional/data/debian/dists/ragnarok/jotunheimr/source/Sources.bz2 new file mode 100644 index 000000000..b56f3b974 Binary files /dev/null and b/pulp_deb/tests/functional/data/debian/dists/ragnarok/jotunheimr/source/Sources.bz2 differ diff --git a/pulp_deb/tests/functional/data/debian/dists/ragnarok/jotunheimr/source/Sources.gz b/pulp_deb/tests/functional/data/debian/dists/ragnarok/jotunheimr/source/Sources.gz new file mode 100644 index 000000000..701b8ab69 Binary files /dev/null and b/pulp_deb/tests/functional/data/debian/dists/ragnarok/jotunheimr/source/Sources.gz differ diff --git a/pulp_deb/tests/functional/data/debian/pool/asgard/h/hello/hello_2.10-2ubuntu4.debian.tar.xz b/pulp_deb/tests/functional/data/debian/pool/asgard/h/hello/hello_2.10-2ubuntu4.debian.tar.xz new file mode 100644 index 000000000..11a3b27d8 Binary files /dev/null and b/pulp_deb/tests/functional/data/debian/pool/asgard/h/hello/hello_2.10-2ubuntu4.debian.tar.xz differ diff --git a/pulp_deb/tests/functional/data/debian/pool/asgard/h/hello/hello_2.10-2ubuntu4.dsc b/pulp_deb/tests/functional/data/debian/pool/asgard/h/hello/hello_2.10-2ubuntu4.dsc new file mode 100644 index 000000000..5e3f4de1a --- /dev/null +++ b/pulp_deb/tests/functional/data/debian/pool/asgard/h/hello/hello_2.10-2ubuntu4.dsc @@ -0,0 +1,37 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA512 + +Format: 3.0 (quilt) +Source: hello +Binary: hello +Architecture: any +Version: 2.10-2ubuntu4 +Maintainer: Ubuntu Developers +Homepage: http://www.gnu.org/software/hello/ +Standards-Version: 4.3.0 +Testsuite: autopkgtest +Build-Depends: debhelper-compat (= 9) +Package-List: + hello deb devel optional arch=any +Checksums-Sha1: + f7bebf6f9c62a2295e889f66e05ce9bfaed9ace3 725946 hello_2.10.orig.tar.gz + ce06556db96050340cc26a5c5b563bdc57d46f0e 6832 hello_2.10-2ubuntu4.debian.tar.xz +Checksums-Sha256: + 31e066137a962676e89f69d1b65382de95a7ef7d914b8cb956f41ea72e0f516b 725946 hello_2.10.orig.tar.gz + 1fd3b7bdee98c1314a43700f42fc0df8a06e194eda40117d096c8e26f5198a8a 6832 hello_2.10-2ubuntu4.debian.tar.xz +Files: + 6cd0ffea3884a4e79330338dcc2987d6 725946 hello_2.10.orig.tar.gz + 43f8fd6bd1aef52786beb6e171368ecf 6832 hello_2.10-2ubuntu4.debian.tar.xz +Original-Maintainer: Santiago Vila + +-----BEGIN PGP SIGNATURE----- + +iQEzBAEBCgAdFiEEqx+XcX7ftBm4bj5/AhnKGdA0MwwFAmI7J1gACgkQAhnKGdA0 +MwzXIQgAkmOdM1IKmE7R/mLSPQuTR0NI1h0/8glf9sgi5mX3EgBvyreDumNXLJK7 +S4KV1JLZ1pd6fmwxFFm5jwWve5R5Jb1EUt5bJFUtWVQtz2E9G9CeWPuzKpXdHx44 +OcpB5dk10XZCSHiNTy6o9FvdKfeqNyUJK19HnvmBp2XFgs4QgXNpmU9Ys+4NrMDE +H3/3JOaqPtAYU9l2yi9txQfzr778nJ3/vwOWXqpDbeSi7NCjb4/6dkv1i7b4JOD4 +mN3ejf6lZxq3rcNCFKRFIujwVH52YcEci5CkCAzKD1EMgd4Nb0GfJ1Hqaen6TDQL +E8eh2tpBiKkVcIhDbYdT4Bf/rGFzqQ== +=x/WD +-----END PGP SIGNATURE----- diff --git a/pulp_deb/tests/functional/data/debian/pool/asgard/h/hello/hello_2.10.orig.tar.gz b/pulp_deb/tests/functional/data/debian/pool/asgard/h/hello/hello_2.10.orig.tar.gz new file mode 100644 index 000000000..cae6b33cc Binary files /dev/null and b/pulp_deb/tests/functional/data/debian/pool/asgard/h/hello/hello_2.10.orig.tar.gz differ diff --git a/pulp_deb/tests/functional/utils.py b/pulp_deb/tests/functional/utils.py index 27c440eda..a94764b44 100644 --- a/pulp_deb/tests/functional/utils.py +++ b/pulp_deb/tests/functional/utils.py @@ -91,6 +91,7 @@ def gen_local_deb_remote( url, distributions=DEB_FIXTURE_DISTRIBUTIONS, sync_udebs=False, + sync_sources=False, gpgkey=None, **kwargs, ): @@ -106,6 +107,7 @@ def gen_local_deb_remote( "url": url, "distributions": distributions, "sync_udebs": sync_udebs, + "sync_sources": sync_sources, } data.update(kwargs) return data @@ -115,6 +117,7 @@ def gen_deb_remote( url=DEB_FIXTURE_URL, distributions=DEB_FIXTURE_DISTRIBUTIONS, sync_udebs=False, + sync_sources=False, gpgkey=None, **kwargs, ): @@ -124,7 +127,9 @@ def gen_deb_remote( """ if gpgkey: kwargs["gpgkey"] = gpgkey - return gen_remote(url, distributions=distributions, sync_udebs=sync_udebs, **kwargs) + return gen_remote( + url, distributions=distributions, sync_udebs=sync_udebs, sync_sources=sync_sources, **kwargs + ) def get_deb_content_unit_paths(repo, version_href=None):