From 73fe7772cf5706342be9c44604f7cb807e6c016e Mon Sep 17 00:00:00 2001 From: Graham Miln Date: Wed, 21 Jun 2023 19:33:47 +0200 Subject: [PATCH] Conformance: fix inappropriate test HTTP method (#332) Change HTTP method from PUT to GET to allow a pull only registry to be tested. PUT requests should not be used during pull testing. Signed-off-by: Graham Miln Co-authored-by: Josh Dolitsky --- conformance/01_pull_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conformance/01_pull_test.go b/conformance/01_pull_test.go index 2954894d..9212a6d2 100644 --- a/conformance/01_pull_test.go +++ b/conformance/01_pull_test.go @@ -196,7 +196,7 @@ var test01Pull = func() { g.Context("Error codes", func() { g.Specify("400 response body should contain OCI-conforming JSON message", func() { SkipIfDisabled(pull) - req := client.NewRequest(reggie.PUT, "/v2//manifests/", + req := client.NewRequest(reggie.GET, "/v2//manifests/", reggie.WithReference("sha256:totallywrong")). SetHeader("Content-Type", "application/vnd.oci.image.manifest.v1+json"). SetBody(invalidManifestContent)