POST request to mount another repository's blob should return 201 or 202
Context
Related to &10345 (closed).
Problem
After adding OCI conformance tests to the CI pipeline, we have identified this failure:
------------------------------
• Failure [0.114 seconds]
OCI Distribution Conformance Tests
/builds/gitlab-org/ci-cd/package-stage/oci-conformance/test/distribution-spec/conformance/00_conformance_suite_test.go:12
Push
/builds/gitlab-org/ci-cd/package-stage/oci-conformance/test/distribution-spec/conformance/02_push_test.go:13
Cross-Repository Blob Mount
/builds/gitlab-org/ci-cd/package-stage/oci-conformance/test/distribution-spec/conformance/02_push_test.go:206
POST request to mount another repository's blob should return 201 or 202 [It]
/builds/gitlab-org/ci-cd/package-stage/oci-conformance/test/distribution-spec/conformance/02_push_test.go:207
Expected
<int>: 401
To satisfy at least one of these matchers: [%!s(*matchers.EqualMatcher=&{201}) %!s(*matchers.EqualMatcher=&{202})]
/builds/gitlab-org/ci-cd/package-stage/oci-conformance/test/distribution-spec/conformance/02_push_test.go:215
------------------------------
I currently don't know the root cause for this so it requires some investigation.
https://gitlab.com/gitlab-org/ci-cd/package-stage/oci-conformance/distribution/-/jobs/4825189234