From 37e2103e640861b02a1ea0253df749a527a87e1b Mon Sep 17 00:00:00 2001 From: Kenfe-Mickael Laventure Date: Tue, 22 Mar 2016 16:15:29 -0700 Subject: [PATCH] Update TestPushToCentralRegistryUnauthorized to match updated hub The error message was changed from "unauthorized: access to the requested resource is not authorized" to "unauthorized: authentication required". Signed-off-by: Kenfe-Mickael Laventure --- integration-cli/docker_cli_push_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-cli/docker_cli_push_test.go b/integration-cli/docker_cli_push_test.go index 6459cc031a..e390d8e52f 100644 --- a/integration-cli/docker_cli_push_test.go +++ b/integration-cli/docker_cli_push_test.go @@ -653,7 +653,7 @@ func (s *DockerSuite) TestPushToCentralRegistryUnauthorized(c *check.C) { out, _, err := dockerCmdWithError("push", repoName) c.Assert(err, check.NotNil, check.Commentf(out)) c.Assert(out, check.Not(checker.Contains), "Retrying") - c.Assert(out, checker.Contains, "unauthorized: access to the requested resource is not authorized") + c.Assert(out, checker.Contains, "unauthorized: authentication required") } func getTestTokenService(status int, body string) *httptest.Server {