diff options
author | Sam James <sam@gentoo.org> | 2022-09-16 03:08:13 +0100 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-09-16 08:05:37 +0300 |
commit | 2f417fd947cb4d481abfc77c3be3b068f80676e7 (patch) | |
tree | e71bfaf55d1e9e817c436f861aa8947eb3050f1f /testdata | |
parent | RedundantVersionCheck: add `--stable-only` option (diff) | |
download | pkgcheck-2f417fd947cb4d481abfc77c3be3b068f80676e7.tar.gz pkgcheck-2f417fd947cb4d481abfc77c3be3b068f80676e7.tar.bz2 pkgcheck-2f417fd947cb4d481abfc77c3be3b068f80676e7.zip |
network: Add `savannah` and `savannah-nongnu` remote-ids
Signed-off-by: Sam James <sam@gentoo.org>
Closes: https://github.com/pkgcore/pkgcheck/pull/446
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'testdata')
8 files changed, 44 insertions, 0 deletions
diff --git a/testdata/data/repos/network/MetadataUrlCheck/DeadUrl-savannah-nongnu/expected.json b/testdata/data/repos/network/MetadataUrlCheck/DeadUrl-savannah-nongnu/expected.json new file mode 100644 index 00000000..fca78734 --- /dev/null +++ b/testdata/data/repos/network/MetadataUrlCheck/DeadUrl-savannah-nongnu/expected.json @@ -0,0 +1 @@ +{"__class__": "DeadUrl", "category": "MetadataUrlCheck", "package": "DeadUrl-savannah-nongnu", "version": "0", "attr": "metadata.xml: remote-id", "url": "https://savannah.nongnu.org/projects/pkgcheck", "message": "404 Client Error: Not Found for url: https://savannah.nongnu.org/projects/pkgcheck"} diff --git a/testdata/data/repos/network/MetadataUrlCheck/DeadUrl-savannah/expected.json b/testdata/data/repos/network/MetadataUrlCheck/DeadUrl-savannah/expected.json new file mode 100644 index 00000000..413c1305 --- /dev/null +++ b/testdata/data/repos/network/MetadataUrlCheck/DeadUrl-savannah/expected.json @@ -0,0 +1 @@ +{"__class__": "DeadUrl", "category": "MetadataUrlCheck", "package": "DeadUrl-savannah", "version": "0", "attr": "metadata.xml: remote-id", "url": "https://savannah.gnu.org/projects/pkgcheck", "message": "404 Client Error: Not Found for url: https://savannah.gnu.org/projects/pkgcheck"} diff --git a/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah-nongnu/DeadUrl-savannah-nongnu-0.ebuild b/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah-nongnu/DeadUrl-savannah-nongnu-0.ebuild new file mode 100644 index 00000000..4fbd693b --- /dev/null +++ b/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah-nongnu/DeadUrl-savannah-nongnu-0.ebuild @@ -0,0 +1,4 @@ +DESCRIPTION="Ebuild with a dead metadata.xml URL" +HOMEPAGE="https://savannah.nongnu.org/projects/pkgcheck" +LICENSE="BSD" +SLOT="0" diff --git a/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah-nongnu/metadata.xml b/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah-nongnu/metadata.xml new file mode 100644 index 00000000..f9804551 --- /dev/null +++ b/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah-nongnu/metadata.xml @@ -0,0 +1,7 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <remote-id type="savannah-nongnu">pkgcheck</remote-id> + </upstream> +</pkgmetadata> diff --git a/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah-nongnu/responses.py b/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah-nongnu/responses.py new file mode 100644 index 00000000..d5aeb788 --- /dev/null +++ b/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah-nongnu/responses.py @@ -0,0 +1,10 @@ +import io + +from requests.models import Response + +r = Response() +r.status_code = 404 +r.reason = 'Not Found' +r.url = 'https://savannah.nongnu.org/projects/pkgcheck' +r.raw = io.StringIO() +responses = [r] diff --git a/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah/DeadUrl-savannah-0.ebuild b/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah/DeadUrl-savannah-0.ebuild new file mode 100644 index 00000000..9fca839a --- /dev/null +++ b/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah/DeadUrl-savannah-0.ebuild @@ -0,0 +1,4 @@ +DESCRIPTION="Ebuild with a dead metadata.xml URL" +HOMEPAGE="https://savannah.gnu.org/projects/pkgcheck" +LICENSE="BSD" +SLOT="0" diff --git a/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah/metadata.xml b/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah/metadata.xml new file mode 100644 index 00000000..952e2ca9 --- /dev/null +++ b/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah/metadata.xml @@ -0,0 +1,7 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <remote-id type="savannah">pkgcheck</remote-id> + </upstream> +</pkgmetadata> diff --git a/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah/responses.py b/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah/responses.py new file mode 100644 index 00000000..fb20f23f --- /dev/null +++ b/testdata/repos/network/MetadataUrlCheck/DeadUrl-savannah/responses.py @@ -0,0 +1,10 @@ +import io + +from requests.models import Response + +r = Response() +r.status_code = 404 +r.reason = 'Not Found' +r.url = 'https://savannah.gnu.org/projects/pkgcheck' +r.raw = io.StringIO() +responses = [r] |