mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
506fb9810c
commit
37e2103e64
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue