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

Commit

Permalink
Skip unit tests that require Docker Hub passwords
Browse files Browse the repository at this point in the history
that are only stored encrypted in Travis.
  • Loading branch information
davidxia committed Jun 26, 2018
1 parent 946cf8a commit 3ee80ea
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -734,6 +734,9 @@ public void testVersion() throws Exception {

@Test
public void testAuth() throws Exception {
// The Docker Hub password is stored encrypted in Travis. So only run on Travis.
assumeTrue(TRAVIS);

final int statusCode = sut.auth(registryAuth);
assertThat(statusCode, equalTo(200));
}
Expand Down Expand Up @@ -986,6 +989,9 @@ public void progress(ProgressMessage message) throws DockerException {

@Test
public void testBuildImageIdWithAuth() throws Exception {
// The Docker Hub password is stored encrypted in Travis. So only run on Travis.
assumeTrue(TRAVIS);

final Path dockerDirectory = getResource("dockerDirectory");
final AtomicReference<String> imageIdFromMessage = new AtomicReference<>();

Expand Down

0 comments on commit 3ee80ea

Please sign in to comment.