aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-07-07 16:26:22 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2023-07-14 08:48:41 +0300
commita4fdd4b970e2bb0c87a019c2ffc514d5428b726d (patch)
treef3f0510cc894203a97d7893c91aeca13f3bfc6d8 /testdata
parentscan: add `--git-remote` option to select remote (diff)
downloadpkgcheck-a4fdd4b970e2bb0c87a019c2ffc514d5428b726d.tar.gz
pkgcheck-a4fdd4b970e2bb0c87a019c2ffc514d5428b726d.tar.bz2
pkgcheck-a4fdd4b970e2bb0c87a019c2ffc514d5428b726d.zip
RepoManifestHashCheck: check for deprecated repo manifest-hashes
Resolves: https://github.com/pkgcore/pkgcheck/issues/508 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'testdata')
-rw-r--r--testdata/data/repos/standalone/RepoManifestHashCheck/DeprecatedRepoHash/expected.json1
-rw-r--r--testdata/repos/standalone/metadata/layout.conf1
2 files changed, 2 insertions, 0 deletions
diff --git a/testdata/data/repos/standalone/RepoManifestHashCheck/DeprecatedRepoHash/expected.json b/testdata/data/repos/standalone/RepoManifestHashCheck/DeprecatedRepoHash/expected.json
new file mode 100644
index 00000000..4d753b93
--- /dev/null
+++ b/testdata/data/repos/standalone/RepoManifestHashCheck/DeprecatedRepoHash/expected.json
@@ -0,0 +1 @@
+{"__class__": "DeprecatedRepoHash", "hashes": ["sha1", "whirlpool"]}
diff --git a/testdata/repos/standalone/metadata/layout.conf b/testdata/repos/standalone/metadata/layout.conf
index 46e02cb8..5add29b7 100644
--- a/testdata/repos/standalone/metadata/layout.conf
+++ b/testdata/repos/standalone/metadata/layout.conf
@@ -5,3 +5,4 @@ eapis-banned = 1
eapis-deprecated = 5
properties-allowed = interactive live
restrict-allowed = bindist fetch mirror test
+manifest-hashes = BLAKE2B SHA1 SHA512 WHIRLPOOL