Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Commit

Permalink
ensure RegistryAuth email is set in tests
Browse files Browse the repository at this point in the history
testBadAuth is failing on Docker 1.9 and 1.10 because RegistryAuth.email
is not set when we send it to the daemon
  • Loading branch information
mattnworb committed May 23, 2017
1 parent b6d531d commit 2f67e16
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ public void testAuth() throws Exception {
public void testBadAuth() throws Exception {
final RegistryAuth badRegistryAuth = RegistryAuth.builder()
.username(AUTH_USERNAME)
.email("user@example.com") // docker < 1.11 requires email to be set in RegistryAuth
.password("foobar")
.build();
final int statusCode = sut.auth(badRegistryAuth);
Expand Down

0 comments on commit 2f67e16

Please sign in to comment.