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:
Doug Davis 2015-06-18 18:00:26 -07:00
parent d2ca423500
commit cb45ec56ff
3 changed files with 18 additions and 12 deletions

View file

@ -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