Привет всем! Тоько начинаю изучать docker, такая проблема: selenoid и selenoid-ui поднимаются, а вот тесты не прогоняются.
docker-compose.yml
version: '3'
services:
selenoid:
image: aerokube/selenoid:latest-release
network_mode: bridge
ports:
- "4444:4444"
volumes:
- ".:/etc/selenoid"
- "/var/run/docker.sock:/var/run/docker.sock"
selenoid-ui:
image: aerokube/selenoid-ui:latest-release
network_mode: bridge
links:
- selenoid
ports:
- "8080:8080"
command: ["--selenoid-uri", "http://selenoid:4444"]
test:
image: maven
volumes:
- ./tests:/tests
- ./m2:/root/.m2
working_dir: /tests
command: mvn clean test -P aut_default,env_docker_selenoid,tests_default -Dcheckstyle.skip
Мой env_docker_selenoid.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<entry key="browserName">chrome</entry>
<entry key="remote">true</entry>
<entry key="seleniumUrl">http://selenoid:4444/wd/hub</entry>
<entry key="pageLoadTimeout">25</entry>
<entry key="explicitTimeout">20</entry>
</properties>
Выдает такую ошибку:
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestSuite
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[ERROR] Tests run: 19, Failures: 2, Errors: 0, Skipped: 17, Time elapsed: 6.257 s <<< FAILURE! - in TestSuite
[ERROR] setEnvironment(tests.ui.EstimateTests) Time elapsed: 5.244 s <<< FAILURE!
org.openqa.selenium.remote.UnreachableBrowserException:
Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '3.9.1', revision: '63f7b50', time: '2018-02-07T22:25:02.294Z'
Driver info: driver.version: RemoteWebDriver
Caused by: java.net.UnknownHostException: selenoid: Name or service not known
[ERROR] setEnvironment(tests.ui.LoginTests) Time elapsed: 0.137 s <<< FAILURE!
org.openqa.selenium.remote.UnreachableBrowserException:
Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '3.9.1', revision: '63f7b50', time: '2018-02-07T22:25:02.294Z'
Driver info: driver.version: RemoteWebDriver
at tests.ui.LoginTests.setEnvironment(LoginTests.java:32)
Caused by: java.net.UnknownHostException: selenoid
at tests.ui.LoginTests.setEnvironment(LoginTests.java:32)
Кто-то сталкивался с такой проблемой? Как победили?