Add back in the "errors" wrapper in the Errors serialization
See: https://github.com/docker/distribution/pull/548/files#r32794064 Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
parent
d2ca423500
commit
cb45ec56ff
3 changed files with 18 additions and 12 deletions
|
@ -86,12 +86,14 @@ func TestUploadReadFrom(t *testing.T) {
|
|||
Response: testutil.Response{
|
||||
StatusCode: http.StatusBadRequest,
|
||||
Body: []byte(`
|
||||
[
|
||||
{
|
||||
"code": "BLOB_UPLOAD_INVALID",
|
||||
"detail": "more detail"
|
||||
}
|
||||
] `),
|
||||
{ "errors":
|
||||
[
|
||||
{
|
||||
"code": "BLOB_UPLOAD_INVALID",
|
||||
"detail": "more detail"
|
||||
}
|
||||
]
|
||||
} `),
|
||||
},
|
||||
},
|
||||
// Test 400 invalid json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue