Search in sources :

Example 6 with Version

use of com.spotify.docker.client.messages.Version in project helios by spotify.

the class ExecHealthCheckerTest method testIncompatibleVersion.

@Test
public void testIncompatibleVersion() throws Exception {
    final Version version = mock(Version.class);
    when(version.apiVersion()).thenReturn("1.15");
    when(docker.version()).thenReturn(version);
    exception.expect(UnsupportedOperationException.class);
    checker.check(CONTAINER_ID);
}
Also used : Version(com.spotify.docker.client.messages.Version) Test(org.junit.Test)

Aggregations

Version (com.spotify.docker.client.messages.Version)6 Info (com.spotify.docker.client.messages.Info)2 Test (org.junit.Test)2 DockerClient (com.spotify.docker.client.DockerClient)1 LogStream (com.spotify.docker.client.LogStream)1 VersionCompare.compareVersion (com.spotify.docker.client.VersionCompare.compareVersion)1 ContainerInfo (com.spotify.docker.client.messages.ContainerInfo)1 ExecState (com.spotify.docker.client.messages.ExecState)1 ImageInfo (com.spotify.docker.client.messages.ImageInfo)1 ExecHealthChecker (com.spotify.helios.agent.HealthCheckerFactory.ExecHealthChecker)1 ExecHealthCheck (com.spotify.helios.common.descriptors.ExecHealthCheck)1 ServiceEndpoint (com.spotify.helios.common.descriptors.ServiceEndpoint)1 Endpoint (com.spotify.helios.serviceregistration.ServiceRegistration.Endpoint)1 IOException (java.io.IOException)1 ExecutorService (java.util.concurrent.ExecutorService)1 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1 DockerException (org.eclipse.linuxtools.docker.core.DockerException)1 IDockerConnectionInfo (org.eclipse.linuxtools.docker.core.IDockerConnectionInfo)1 IDockerContainerInfo (org.eclipse.linuxtools.docker.core.IDockerContainerInfo)1