From d8606cb9ae5b2132dcfad13e712e78d7dd20d6b9 Mon Sep 17 00:00:00 2001 From: Ivan Bazulic Date: Mon, 19 Aug 2024 10:50:14 -0400 Subject: [PATCH] Add security tests --- test/specs.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/specs.py b/test/specs.py index 03683dde79..ac7fd0eb2b 100644 --- a/test/specs.py +++ b/test/specs.py @@ -670,6 +670,19 @@ def build_v2_index_specs(): IndexV2TestSpec( "v2.write_manifest_by_digest", "PUT", ANOTHER_ORG_REPO, manifest_ref=FAKE_DIGEST ).request_status(401, 401, 401, 401, 400), + # v2.delete_manifest_by_tag + IndexV2TestSpec( + "v2.delete_manifest_by_tag", "DELETE", PUBLIC_REPO, manifest_ref=FAKE_MANIFEST + ).request_status(401, 401, 401, 401, 401), + IndexV2TestSpec( + "v2.delete_manifest_by_tag", "DELETE", PRIVATE_REPO, manifest_ref=FAKE_MANIFEST + ).request_status(401, 401, 401, 401, 404), + IndexV2TestSpec( + "v2.delete_manifest_by_tag", "DELETE", ORG_REPO, manifest_ref=FAKE_MANIFEST + ).request_status(401, 401, 401, 401, 404), + IndexV2TestSpec( + "v2.delete_manifest_by_tag", "DELETE", ANOTHER_ORG_REPO, manifest_ref=FAKE_MANIFEST + ).request_status(401, 401, 401, 401, 404), # v2.delete_manifest_by_digest IndexV2TestSpec( "v2.delete_manifest_by_digest", "DELETE", PUBLIC_REPO, manifest_ref=FAKE_DIGEST