Browse code

fixing tests for updated CLI output Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)

David Lawrence authored on 2015/11/13 05:09:31
Showing 1 changed files
... ...
@@ -227,7 +227,7 @@ func (s *DockerTrustSuite) TestTrustedPushWithIncorrectPassphraseForNonRoot(c *c
227 227
 	s.trustedCmdWithPassphrases(pushCmd, "12345678", "87654321")
228 228
 	out, _, err = runCommandWithOutput(pushCmd)
229 229
 	c.Assert(err, check.NotNil, check.Commentf("Error missing from trusted push with short targets passphrase: \n%s", out))
230
-	c.Assert(out, checker.Contains, "password invalid, operation has failed", check.Commentf("Missing expected output on trusted push with short targets/snapsnot passphrase"))
230
+	c.Assert(out, checker.Contains, "could not find necessary signing keys", check.Commentf("Missing expected output on trusted push with short targets/snapsnot passphrase"))
231 231
 }
232 232
 
233 233
 // This test ensures backwards compatibility with old ENV variables. Should be
... ...
@@ -249,7 +249,7 @@ func (s *DockerTrustSuite) TestTrustedPushWithIncorrectDeprecatedPassphraseForNo
249 249
 	s.trustedCmdWithDeprecatedEnvPassphrases(pushCmd, "12345678", "87654321")
250 250
 	out, _, err = runCommandWithOutput(pushCmd)
251 251
 	c.Assert(err, check.NotNil, check.Commentf("Error missing from trusted push with short targets passphrase: \n%s", out))
252
-	c.Assert(out, checker.Contains, "password invalid, operation has failed", check.Commentf("Missing expected output on trusted push with short targets/snapsnot passphrase"))
252
+	c.Assert(out, checker.Contains, "could not find necessary signing keys", check.Commentf("Missing expected output on trusted push with short targets/snapsnot passphrase"))
253 253
 }
254 254
 
255 255
 func (s *DockerTrustSuite) TestTrustedPushWithExpiredSnapshot(c *check.C) {