opencontainers / distribution-spec

OCI Distribution Specification
https://opencontainers.org
Apache License 2.0
823 stars 202 forks source link

Conformance Test: `References teardown` should expect 404 response #457

Closed northtyphoon closed 10 months ago

northtyphoon commented 1 year ago

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.

  1. Delete subject manifest https://github.com/opencontainers/distribution-spec/blob/6bc87156eacf3b73362db343eb6b63d7abeedf7e/conformance/03_discovery_test.go#L440

  2. Delete the reference manifest again https://github.com/opencontainers/distribution-spec/blob/6bc87156eacf3b73362db343eb6b63d7abeedf7e/conformance/03_discovery_test.go#L442