After deleting the subject manifest, the registry can trigger cascade deletion and automatically delete the reference manifest. If the test tries to delete the reference manifest again, it should also expect 404 response.
-
Delete subject manifest
|
req = client.NewRequest(reggie.DELETE, "/v2/<name>/manifests/<digest>", reggie.WithDigest(manifests[4].Digest)) |
-
Delete the reference manifest again
|
req = client.NewRequest(reggie.DELETE, "/v2/<name>/manifests/<reference>", |
After deleting the subject manifest, the registry can trigger cascade deletion and automatically delete the reference manifest. If the test tries to delete the reference manifest again, it should also expect 404 response.
Delete subject manifest
distribution-spec/conformance/03_discovery_test.go
Line 440 in 6bc8715
Delete the reference manifest again
distribution-spec/conformance/03_discovery_test.go
Line 442 in 6bc8715