From 73702a87077822eda9cba10243f9bb0ed8d7ca23 Mon Sep 17 00:00:00 2001 From: Aaron Lehmann Date: Tue, 28 Jul 2015 10:59:11 -0700 Subject: [PATCH] Fix for api_test.go This passed in the #744 before merge, but apparently the test changed since the PR was created in ways that led to a new failures. Signed-off-by: Aaron Lehmann --- registry/handlers/api_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/handlers/api_test.go b/registry/handlers/api_test.go index 4b16127fc..c484835fd 100644 --- a/registry/handlers/api_test.go +++ b/registry/handlers/api_test.go @@ -963,7 +963,7 @@ func testManifestDelete(t *testing.T, env *testEnv, args manifestArgs) { // -------------------- // Re-upload manifest by digest resp = putManifest(t, "putting signed manifest", manifestDigestURL, signedManifest) - checkResponse(t, "putting signed manifest", resp, http.StatusAccepted) + checkResponse(t, "putting signed manifest", resp, http.StatusCreated) checkHeaders(t, resp, http.Header{ "Location": []string{manifestDigestURL}, "Docker-Content-Digest": []string{dgst.String()}, @@ -1372,7 +1372,7 @@ func createRepository(env *testEnv, t *testing.T, imageName string, tag string) checkErr(t, err, "building manifest url") resp := putManifest(t, "putting signed manifest", manifestDigestURL, signedManifest) - checkResponse(t, "putting signed manifest", resp, http.StatusAccepted) + checkResponse(t, "putting signed manifest", resp, http.StatusCreated) checkHeaders(t, resp, http.Header{ "Location": []string{manifestDigestURL}, "Docker-Content-Digest": []string{dgst.String()},