arquillian / arquillian-cube

Control (docker, kubernetes, openshift) containers in your tests with ease!
http://arquillian.org/arquillian-cube/
120 stars 98 forks source link

Build on master fails on Fedora with Docker Daemon #413

Open bartoszmajsak opened 8 years ago

bartoszmajsak commented 8 years ago

When running the tests @24836f0eff93824325f7d965f61fdfbe8203af23 on Fedora 24 with Docker Daemon I am getting following test failures

Failed tests: 
  CubeConfiguratorTest.shouldUseDockerMachineIfDockerHostIsNotSetAndOnlyOneMachineIsRunning:172 
Expected: map containing ["serverUri"->"tcp://192.168.99.100:2376"]
     but: map was [<serverUri=tcp://localhost:4243>, <dockerServerIp=localhost>, <tlsVerify=false>]
  CubeConfiguratorTest.shouldUseHostEnvIfDockerHostIsSetOnServerURIAndSystemEnvironmentVarIsSet:235 
Expected: map containing ["serverUri"->"tcp://127.0.0.1:22222"]
     but: map was [<serverUri=tcp://localhost:4243>, <dockerServerIp=localhost>, <tlsVerify=false>]

My environment details

╰─ mvn --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: /usr/share/maven/latest
Java version: 1.8.0_77, vendor: Oracle Corporation
Java home: /usr/java/jdk1.8.0_77/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.6.4-301.fc24.x86_64", arch: "amd64", family: "unix"
╰─ uname -a
Linux Fedora 24 4.6.4-301.fc24.x86_64 #1 SMP Tue Jul 12 11:50:00 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
╰─ docker --version
Docker version 1.10.3, build 1ecb834/1.10.3
bartoszmajsak commented 8 years ago

First failing test (shouldUseDockerMachineIfDockerHostIsNotSetAndOnlyOneMachineIsRunning) is docker-machine specific. But it doesn't have @RequiresDockerMachine annotation on it. But even when I put it there it's still failing.

Second test assumes something about DOCKER_HOST environment variable, but in my case it's set to

╰─ echo $DOCKER_HOST
tcp://localhost:4243

Interesting part is... it works from the IDE. The test with annotation is properly skipped, and the one concerning DOCKER_HOST works, as there is no DOCKER_HOST env variable set I guess (I don't start IDEA from the shell).

bartoszmajsak commented 8 years ago

@iocanel can you run mvn build against latest master on your box?

iocanel commented 8 years ago

No! TodoBrowserTest.org.arquillian.cube.drone.TodoBrowserTest fails with Host does not exist: "dev".

On Fri, Aug 5, 2016 at 11:36 PM, Bartosz Majsak notifications@github.com wrote:

@iocanel https://github.com/iocanel can you run mvn build against latest master on your box?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arquillian/arquillian-cube/issues/413#issuecomment-237957652, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYiWD3qye4-LtOK0RYEKpTniWRNF3kXks5qc57egaJpZM4Jd9HP .

Ioannis Canellos

Blog: http://iocanel.blogspot.com http://iocanel.blogspot.com/ Twitter: iocanel

bartoszmajsak commented 8 years ago

But at least you can reach that point :) I'm failing way before.

lordofthejars commented 8 years ago

I need to annotate drone tests with new runner annotations

El 5 ago. 2016 10:39 p. m., "Ioannis Canellos" notifications@github.com escribió:

No! TodoBrowserTest.org.arquillian.cube.drone.TodoBrowserTest fails with Host does not exist: "dev".

On Fri, Aug 5, 2016 at 11:36 PM, Bartosz Majsak notifications@github.com wrote:

@iocanel https://github.com/iocanel can you run mvn build against latest master on your box?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arquillian/arquillian-cube/issues/413#issuecomment- 237957652, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYiWD3qye4- LtOK0RYEKpTniWRNF3kXks5qc57egaJpZM4Jd9HP .

Ioannis Canellos

Blog: http://iocanel.blogspot.com http://iocanel.blogspot.com/ Twitter: iocanel

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/arquillian/arquillian-cube/issues/413#issuecomment-237958612, or mute the thread https://github.com/notifications/unsubscribe-auth/ABcmYaHPamTMEcqpNQRDrD99-6bPHDiPks5qc59-gaJpZM4Jd9HP .