Skip to content

Commit 73fe777

Browse files
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 <graham.miln@miln.eu> Co-authored-by: Josh Dolitsky <josh@dolit.ski>
1 parent aef0f61 commit 73fe777

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

conformance/01_pull_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ var test01Pull = func() {
196196
g.Context("Error codes", func() {
197197
g.Specify("400 response body should contain OCI-conforming JSON message", func() {
198198
SkipIfDisabled(pull)
199-
req := client.NewRequest(reggie.PUT, "/v2/<name>/manifests/<reference>",
199+
req := client.NewRequest(reggie.GET, "/v2/<name>/manifests/<reference>",
200200
reggie.WithReference("sha256:totallywrong")).
201201
SetHeader("Content-Type", "application/vnd.oci.image.manifest.v1+json").
202202
SetBody(invalidManifestContent)

0 commit comments

Comments
 (0)