opencontainers / distribution-spec

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

[conformance] Allow 404 on tag list for management test #527

Closed shizhMSFT closed 3 months ago

shizhMSFT commented 3 months ago

The management test of conformance test tries to list tags after deleting the last manifest, and the test expect 200 with an empty list.

https://github.com/opencontainers/distribution-spec/blob/a47ad5164a41dd04115eaad0c5a5bec49f96f9ca/conformance/04_management_test.go#L129-L140

The test makes sense if the repository is explicitly created. However, some registry providers consider that the repositories are virtual. That is, when the last manifest is deleted from the repository, the repository is considered non-existing. In that case, calling to the tag list API should return 404 since the repository is not found.