Support remote API 1.22 subset by KostyaSha · Pull Request #488 · docker-java/docker-java
@KostyaSha AttachContainerCmdImplTest.attachContainerWithTTY is not failing for me even when running all tests from maven. Now I get only:
Tests run: 275, Failures: 2, Errors: 0, Skipped: 2, Time elapsed: 1,007.209 sec <<< FAILURE! - in TestSuite
testBuildFromPrivateRegistry(com.github.dockerjava.core.command.BuildImageCmdImplTest) Time elapsed: 4.698 sec <<< FAILURE!
com.github.dockerjava.api.exception.DockerClientException: Could not build image: Error: image testuser/busybox:latest not found
at com.github.dockerjava.core.command.BuildImageCmdImplTest.testBuildFromPrivateRegistry(BuildImageCmdImplTest.java:298)
testBuildFromPrivateRegistry(com.github.dockerjava.netty.exec.BuildImageCmdExecTest) Time elapsed: 4.29 sec <<< FAILURE!
com.github.dockerjava.api.exception.DockerClientException: Could not build image: Error: image testuser/busybox:latest not found
at com.github.dockerjava.netty.exec.BuildImageCmdExecTest.testBuildFromPrivateRegistry(BuildImageCmdExecTest.java:290)
The strange thing about it is that it seems related to not setting the API version anymore at AbstractDockerClientTest. So when setting the version matching the docker deamon than the test passes. When removing explicit version the test fails. This counts for both docker versions...