From 9be5be1f05bae2761db4f105d0c16dc1753232cb Mon Sep 17 00:00:00 2001 From: Graham Miln Date: Wed, 21 Jun 2023 19:37:46 +0200 Subject: [PATCH] Fix incorrect test HTTP method (#331) Change HTTP method from GET to HEAD to match test's description. 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 9212a6d2..0a5e7bcd 100644 --- a/conformance/01_pull_test.go +++ b/conformance/01_pull_test.go @@ -154,7 +154,7 @@ var test01Pull = func() { g.Specify("HEAD request to manifest path (tag) should yield 200 response", func() { SkipIfDisabled(pull) Expect(tag).ToNot(BeEmpty()) - req := client.NewRequest(reggie.GET, "/v2//manifests/", reggie.WithReference(tag)). + req := client.NewRequest(reggie.HEAD, "/v2//manifests/", reggie.WithReference(tag)). SetHeader("Accept", "application/vnd.oci.image.manifest.v1+json") resp, err := client.Do(req) Expect(err).To(BeNil())