|
@@ -28,17 +28,3 @@ func (s *DockerRegistryAuthHtpasswdSuite) TestLoginToPrivateRegistry(c *check.C)
|
|
|
// now it's fine
|
|
|
dockerCmd(c, "login", "-u", s.reg.username, "-p", s.reg.password, privateRegistryURL)
|
|
|
}
|
|
|
-
|
|
|
-func (s *DockerRegistryAuthHtpasswdSuite) TestLoginToPrivateRegistryDeprecatedEmailFlag(c *check.C) {
|
|
|
- // Test to make sure login still works with the deprecated -e and --email flags
|
|
|
- // wrong credentials
|
|
|
- out, _, err := dockerCmdWithError("login", "-u", s.reg.username, "-p", "WRONGPASSWORD", "-e", s.reg.email, privateRegistryURL)
|
|
|
- c.Assert(err, checker.NotNil, check.Commentf(out))
|
|
|
- c.Assert(out, checker.Contains, "401 Unauthorized")
|
|
|
-
|
|
|
- // now it's fine
|
|
|
- // -e flag
|
|
|
- dockerCmd(c, "login", "-u", s.reg.username, "-p", s.reg.password, "-e", s.reg.email, privateRegistryURL)
|
|
|
- // --email flag
|
|
|
- dockerCmd(c, "login", "-u", s.reg.username, "-p", s.reg.password, "--email", s.reg.email, privateRegistryURL)
|
|
|
-}
|