Browse code

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 <mickael.laventure@gmail.com>

Kenfe-Mickael Laventure authored on 2016/03/23 08:15:29
Showing 1 changed files
... ...
@@ -653,7 +653,7 @@ func (s *DockerSuite) TestPushToCentralRegistryUnauthorized(c *check.C) {
653 653
 	out, _, err := dockerCmdWithError("push", repoName)
654 654
 	c.Assert(err, check.NotNil, check.Commentf(out))
655 655
 	c.Assert(out, check.Not(checker.Contains), "Retrying")
656
-	c.Assert(out, checker.Contains, "unauthorized: access to the requested resource is not authorized")
656
+	c.Assert(out, checker.Contains, "unauthorized: authentication required")
657 657
 }
658 658
 
659 659
 func getTestTokenService(status int, body string) *httptest.Server {