fix: return a response that docker understands better when it doesn't find a manifest #47
Annotations
4 errors
index.test.ts > v2 manifests > HEAD /v2/:name/manifests/:reference NOT FOUND:
index.test.ts#L87
AssertionError: expected { errors: [ { …(3) } ] } to deeply equal { errors: [ { …(3) } ] }
- Expected
+ Received
Object {
"errors": Array [
Object {
"code": "MANIFEST_UNKNOWN",
- "detail": "This error is returned when the manifest, identified by name and tag is unknown to the repository.",
+ "detail": Object {
+ "Tag": "reference",
+ },
"message": "manifest unknown",
},
],
}
❯ index.test.ts:87:18
|
Unit Tests (20.x)
Process completed with exit code 1.
|
index.test.ts > v2 manifests > HEAD /v2/:name/manifests/:reference NOT FOUND:
index.test.ts#L87
AssertionError: expected { errors: [ { …(3) } ] } to deeply equal { errors: [ { …(3) } ] }
- Expected
+ Received
Object {
"errors": Array [
Object {
"code": "MANIFEST_UNKNOWN",
- "detail": "This error is returned when the manifest, identified by name and tag is unknown to the repository.",
+ "detail": Object {
+ "Tag": "reference",
+ },
"message": "manifest unknown",
},
],
}
❯ index.test.ts:87:18
|
Unit Tests (18.x)
Process completed with exit code 1.
|