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