diff --git a/conformance/02_push_test.go b/conformance/02_push_test.go index 12013a10..9f939fff 100644 --- a/conformance/02_push_test.go +++ b/conformance/02_push_test.go @@ -393,7 +393,7 @@ var test02Push = func() { Equal(http.StatusMethodNotAllowed), )) if emptyLayerManifestRef != "" { - req = client.NewRequest(reggie.DELETE, emptyLayerManifestRef) + req = client.NewRequest(reggie.DELETE, "/v2//manifests/", reggie.WithReference(emptyLayerManifestDigest)) resp, err = client.Do(req) Expect(err).To(BeNil()) Expect(resp.StatusCode()).To(SatisfyAny( @@ -452,7 +452,7 @@ var test02Push = func() { Equal(http.StatusMethodNotAllowed), )) if emptyLayerManifestRef != "" { - req = client.NewRequest(reggie.DELETE, emptyLayerManifestRef) + req = client.NewRequest(reggie.DELETE, "/v2//manifests/", reggie.WithReference(emptyLayerManifestDigest)) resp, err = client.Do(req) Expect(err).To(BeNil()) Expect(resp.StatusCode()).To(SatisfyAny( diff --git a/conformance/setup.go b/conformance/setup.go index e38a3cec..4ade7bbe 100644 --- a/conformance/setup.go +++ b/conformance/setup.go @@ -133,6 +133,7 @@ var ( layerBlobDigest string layerBlobContentLength string emptyLayerManifestContent []byte + emptyLayerManifestDigest string nonexistentManifest string emptyJSONBlob []byte emptyJSONDescriptor Descriptor @@ -299,6 +300,7 @@ func init() { if err != nil { log.Fatal(err) } + emptyLayerManifestDigest = string(godigest.FromBytes(emptyLayerManifestContent)) nonexistentManifest = ".INVALID_MANIFEST_NAME" invalidManifestContent = []byte("blablabla")