diff options
author | valerijf <valerijf@yahoo-inc.com> | 2016-10-17 14:31:55 +0200 |
---|---|---|
committer | valerijf <valerijf@yahoo-inc.com> | 2016-10-17 14:31:55 +0200 |
commit | 41b2b3905f56c1e0ea9f8b9e07102793412522e4 (patch) | |
tree | e3521b5ddb2463d601704f69d9fd59ba06ce875f /docker-api/src | |
parent | 7869afadaec0ef8802932b7c9c2e608fa865adf0 (diff) |
Dont have to check if docker daemon is present inside every test - check is made in @Before.
Removed testGetAllManagedContainersNoContainersRunning() - covered by testContainerCycle()
Diffstat (limited to 'docker-api/src')
-rw-r--r-- | docker-api/src/test/java/com/yahoo/vespa/hosted/dockerapi/DockerTest.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/docker-api/src/test/java/com/yahoo/vespa/hosted/dockerapi/DockerTest.java b/docker-api/src/test/java/com/yahoo/vespa/hosted/dockerapi/DockerTest.java index d9acb13d293..1acaab26c2e 100644 --- a/docker-api/src/test/java/com/yahoo/vespa/hosted/dockerapi/DockerTest.java +++ b/docker-api/src/test/java/com/yahoo/vespa/hosted/dockerapi/DockerTest.java @@ -52,20 +52,10 @@ public class DockerTest { .uri(operatingSystem == OS.Mac_OS_X ? "tcp://192.168.99.100:2376" : "tcp://localhost:2376")); private static final DockerImage dockerImage = new DockerImage("simple-ipv6-server:Dockerfile"); - @Test - public void testGetAllManagedContainersNoContainersRunning() { - assumeTrue(dockerDaemonIsPresent()); - - List<Container> containers = docker.getAllManagedContainers(); - assertThat(containers.isEmpty(), is(true)); - } - // It is ignored since it is a bit slow and unstable, at least on Mac. @Ignore @Test public void testDockerImagePull() throws ExecutionException, InterruptedException { - assumeTrue(dockerDaemonIsPresent()); - DockerImage dockerImage = new DockerImage("busybox:1.24.0"); // Pull the image and wait for the pull to complete @@ -82,8 +72,6 @@ public class DockerTest { @Test public void testContainerCycle() throws IOException, InterruptedException, ExecutionException { - assumeTrue(dockerDaemonIsPresent()); - ContainerName containerName = new ContainerName("foo"); docker.createContainerCommand(dockerImage, containerName, "hostName1").create(); List<Container> managedContainers = docker.getAllManagedContainers(); @@ -109,8 +97,6 @@ public class DockerTest { @Test public void testDockerNetworking() throws InterruptedException, ExecutionException, IOException { - assumeTrue(dockerDaemonIsPresent()); - String hostName1 = "docker10.test.yahoo.com"; String hostName2 = "docker11.test.yahoo.com"; ContainerName containerName1 = new ContainerName("test-container-1"); |