Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ppyzik@rudy102:~/repos/testcontainers-java-examples$ sudo gitlab-runner exec docker test-job --docker-volumes "/var/run/docker.sock:/var/run/docker.sock"
- Running with gitlab-ci-multi-runner 9.3.0 (3df822b)
- on ()
- Using Docker executor with image maven:latest ...
- Using docker image sha256:857a296885db30d98f9b8b3e2910dadfe3878ddd6a7021783e7f22fb67b55ed6 for predefined container...
- Pulling docker image maven:latest ...
- Using docker image maven:latest ID=sha256:cbf11492553009027e6c400301aafc967e12c2c73bf71848c16ed6ce48294bf0 for build container...
- Running on runner--project-0-concurrent-0 via rudy102...
- Cloning repository...
- Cloning into '/builds/project-0'...
- done.
- Checking out 8610e1a0 as master...
- Skipping Git submodules setup
- $ echo "checks.disable=true" > ~/.testcontainers.properties
- $ mvn clean install --batch-mode --update-snapshots --errors --file spring-boot/pom.xml -Dmaven.repo.local=/.mvn-repository
- [INFO] Error stacktraces are turned on.
- [INFO] Scanning for projects...
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building spring-boot NOVERSION
- [INFO] ------------------------------------------------------------------------
- [INFO] Downloading: https://jitpack.io/com/github/testcontainers/testcontainers-java/testcontainers/-SNAPSHOT/maven-metadata.xml
- [INFO] Downloaded: https://jitpack.io/com/github/testcontainers/testcontainers-java/testcontainers/-SNAPSHOT/maven-metadata.xml (419 B at 434 B/s)
- [INFO] Downloading: https://jitpack.io/com/github/testcontainers/testcontainers-java/testcontainers-parent/-SNAPSHOT/maven-metadata.xml
- [INFO] Downloading: file://${project.basedir}/testlib/repo/com/github/testcontainers/testcontainers-java/testcontainers-parent/-SNAPSHOT/maven-metadata.xml
- [INFO] Downloaded: https://jitpack.io/com/github/testcontainers/testcontainers-java/testcontainers-parent/-SNAPSHOT/maven-metadata.xml (426 B at 1.5 kB/s)
- [INFO]
- [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ spring-boot ---
- [INFO]
- [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spring-boot ---
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] skip non existing resourceDirectory /builds/project-0/spring-boot/src/main/resources
- [INFO]
- [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ spring-boot ---
- [INFO] Changes detected - recompiling the module!
- [INFO] Compiling 1 source file to /builds/project-0/spring-boot/target/classes
- [INFO]
- [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ spring-boot ---
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] Copying 1 resource
- [INFO]
- [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ spring-boot ---
- [INFO] Changes detected - recompiling the module!
- [INFO] Compiling 2 source files to /builds/project-0/spring-boot/target/test-classes
- [INFO]
- [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ spring-boot ---
- [INFO] Surefire report directory: /builds/project-0/spring-boot/target/surefire-reports
- -------------------------------------------------------
- T E S T S
- -------------------------------------------------------
- Running com.example.DemoApplicationTest
- 2017-09-15 07:56:28.549 INFO --- [ main] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.example.AbstractIntegrationTest]: no resource found for suffixes {-context.xml, Context.groovy}.
- 2017-09-15 07:56:28.640 INFO --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
- 2017-09-15 07:56:28.662 INFO --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@61dd025, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@124c278f, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@15b204a1, org.springframework.test.context.support.DirtiesContextTestExecutionListener@77167fb7, org.springframework.test.context.transaction.TransactionalTestExecutionListener@1fe20588, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@6ce139a4, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@6973bf95, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@2ddc8ecb, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@229d10bd, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@47542153, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@33afa13b, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@7a4ccb53]
- 2017-09-15 07:56:29.200 INFO --- [ main] tAndSystemPropertyClientProviderStrategy : Found docker client settings from environment
- 2017-09-15 07:56:29.214 INFO --- [ main] o.t.d.DockerClientProviderStrategy : Found Docker environment with Environment variables, system properties and defaults. Resolved:
- dockerHost=unix:///var/run/docker.sock
- apiVersion='{UNKNOWN_VERSION}'
- registryUrl='https://index.docker.io/v1/'
- registryUsername='root'
- registryPassword='null'
- registryEmail='null'
- dockerConfig='DefaultDockerClientConfig[dockerHost=unix:///var/run/docker.sock,registryUsername=root,registryPassword=<null>,registryEmail=<null>,registryUrl=https://index.docker.io/v1/,dockerConfig=/root/.docker,sslConfig=<null>,apiVersion={UNKNOWN_VERSION}]'
- 2017-09-15 07:56:30.010 INFO --- [ main] org.testcontainers.DockerClientFactory : Docker host IP address is 172.17.0.1
- 2017-09-15 07:56:30.101 INFO --- [ main] org.testcontainers.DockerClientFactory : Connected to docker:
- Server Version: 17.06.0-ce
- API Version: 1.30
- Operating System: Ubuntu 16.04.2 LTS
- Total Memory: 15952 MB
- 2017-09-15 07:56:30.145 INFO --- [ main] 🐳 [redis:3.0.6] : Creating container for image: redis:3.0.6
- 2017-09-15 07:56:30.273 INFO --- [ main] 🐳 [redis:3.0.6] : Starting container with ID: f0dfadc6fdbdde561e4d5a7e8cb6b8337a5434c734d36277301e80c9bc888669
- 2017-09-15 07:56:30.558 INFO --- [ main] 🐳 [redis:3.0.6] : Container redis:3.0.6 is starting: f0dfadc6fdbdde561e4d5a7e8cb6b8337a5434c734d36277301e80c9bc888669
- 2017-09-15 07:57:30.649 ERROR --- [ main] 🐳 [redis:3.0.6] : Could not start container
- org.testcontainers.containers.ContainerLaunchException: Timed out waiting for container port to open (172.17.0.1:32823 should be listening)
- at org.testcontainers.containers.wait.HostPortWaitStrategy.waitUntilReady(HostPortWaitStrategy.java:91)
- at org.testcontainers.containers.GenericContainer$AbstractWaitStrategy.waitUntilReady(GenericContainer.java:943)
- at org.testcontainers.containers.GenericContainer.waitUntilContainerStarted(GenericContainer.java:466)
- at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:235)
- at org.testcontainers.containers.GenericContainer.lambda$start$0(GenericContainer.java:184)
- at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:76)
- at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:182)
- at org.testcontainers.containers.GenericContainer.starting(GenericContainer.java:544)
- at org.testcontainers.containers.FailureDetectingExternalResource$1.evaluate(FailureDetectingExternalResource.java:29)
- at org.junit.rules.RunRules.evaluate(RunRules.java:20)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
- at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
- at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
- at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
- at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
- at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
- at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
- at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
- 2017-09-15 07:57:30.650 ERROR --- [ main] 🐳 [redis:3.0.6] : Container log output (if any) will follow:
- 2017-09-15 07:57:30.665 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: 1:C 15 Sep 07:56:30.556 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
- 2017-09-15 07:57:30.666 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: _._
- 2017-09-15 07:57:30.667 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: _.-``__ ''-._
- 2017-09-15 07:57:30.668 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: _.-`` `. `_. ''-._ Redis 3.0.6 (00000000/0) 64 bit
- 2017-09-15 07:57:30.670 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: .-`` .-```. ```\/ _.,_ ''-._
- 2017-09-15 07:57:30.671 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: ( ' , .-` | `, ) Running in standalone mode
- 2017-09-15 07:57:30.676 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
- 2017-09-15 07:57:30.676 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: | `-._ `._ / _.-' | PID: 1
- 2017-09-15 07:57:30.677 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: `-._ `-._ `-./ _.-' _.-'
- 2017-09-15 07:57:30.678 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: |`-._`-._ `-.__.-' _.-'_.-'|
- 2017-09-15 07:57:30.679 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: | `-._`-._ _.-'_.-' | http://redis.io
- 2017-09-15 07:57:30.680 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: `-._ `-._`-.__.-'_.-' _.-'
- 2017-09-15 07:57:30.682 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: |`-._`-._ `-.__.-' _.-'_.-'|
- 2017-09-15 07:57:30.683 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: | `-._`-._ _.-'_.-' |
- 2017-09-15 07:57:30.684 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: `-._ `-._`-.__.-'_.-' _.-'
- 2017-09-15 07:57:30.686 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: `-._ `-.__.-' _.-'
- 2017-09-15 07:57:30.686 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: `-._ _.-'
- 2017-09-15 07:57:30.687 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: `-.__.-'
- 2017-09-15 07:57:30.688 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT:
- 2017-09-15 07:57:30.690 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: 1:M 15 Sep 07:56:30.557 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
- 2017-09-15 07:57:30.693 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: 1:M 15 Sep 07:56:30.558 # Server started, Redis version 3.0.6
- 2017-09-15 07:57:30.694 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: 1:M 15 Sep 07:56:30.558 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
- 2017-09-15 07:57:30.695 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: 1:M 15 Sep 07:56:30.558 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
- 2017-09-15 07:57:30.695 INFO --- [rjava-netty-1-6] 🐳 [redis:3.0.6] : STDOUT: 1:M 15 Sep 07:56:30.558 * The server is now ready to accept connections on port 6379
- Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 62.747 sec <<< FAILURE!
- com.example.DemoApplicationTest Time elapsed: 62.746 sec <<< ERROR!
- org.testcontainers.containers.ContainerLaunchException: Container startup failed
- at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:189)
- at org.testcontainers.containers.GenericContainer.starting(GenericContainer.java:544)
- at org.testcontainers.containers.FailureDetectingExternalResource$1.evaluate(FailureDetectingExternalResource.java:29)
- at org.junit.rules.RunRules.evaluate(RunRules.java:20)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
- at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
- at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
- at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
- at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
- at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
- at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
- at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
- Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
- at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:83)
- at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:182)
- ... 17 more
- Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
- at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:256)
- at org.testcontainers.containers.GenericContainer.lambda$start$0(GenericContainer.java:184)
- at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:76)
- ... 18 more
- Caused by: org.testcontainers.containers.ContainerLaunchException: Timed out waiting for container port to open (172.17.0.1:32823 should be listening)
- at org.testcontainers.containers.wait.HostPortWaitStrategy.waitUntilReady(HostPortWaitStrategy.java:91)
- at org.testcontainers.containers.GenericContainer$AbstractWaitStrategy.waitUntilReady(GenericContainer.java:943)
- at org.testcontainers.containers.GenericContainer.waitUntilContainerStarted(GenericContainer.java:466)
- at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:235)
- ... 20 more
- Results :
- Tests in error:
- com.example.DemoApplicationTest: Container startup failed
- Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 01:09 min
- [INFO] Finished at: 2017-09-15T07:57:31Z
- [INFO] Final Memory: 31M/257M
- [INFO] ------------------------------------------------------------------------
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project spring-boot: There are test failures.
- [ERROR]
- [ERROR] Please refer to /builds/project-0/spring-boot/target/surefire-reports for the individual test results.
- [ERROR] -> [Help 1]
- org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project spring-boot: There are test failures.
- Please refer to /builds/project-0/spring-boot/target/surefire-reports for the individual test results.
- at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
- at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
- at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
- at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
- at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
- at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
- at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
- at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
- at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
- at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
- at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
- at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
- at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
- at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
- at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
- at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
- Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
- Please refer to /builds/project-0/spring-boot/target/surefire-reports for the individual test results.
- at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:83)
- at org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(SurefirePlugin.java:176)
- at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:150)
- at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:650)
- at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:586)
- at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
- at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
- ... 20 more
- [ERROR]
- [ERROR] Re-run Maven using the -X switch to enable full debug logging.
- [ERROR]
- [ERROR] For more information about the errors and possible solutions, please read the following articles:
- [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
- Running after script...
- $ cat spring-boot/target/surefire-reports/*.txt
- -------------------------------------------------------------------------------
- Test set: com.example.DemoApplicationTest
- -------------------------------------------------------------------------------
- Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 62.747 sec <<< FAILURE!
- com.example.DemoApplicationTest Time elapsed: 62.746 sec <<< ERROR!
- org.testcontainers.containers.ContainerLaunchException: Container startup failed
- at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:189)
- at org.testcontainers.containers.GenericContainer.starting(GenericContainer.java:544)
- at org.testcontainers.containers.FailureDetectingExternalResource$1.evaluate(FailureDetectingExternalResource.java:29)
- at org.junit.rules.RunRules.evaluate(RunRules.java:20)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
- at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
- at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
- at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
- at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
- at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
- at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
- at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
- Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
- at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:83)
- at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:182)
- ... 17 more
- Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
- at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:256)
- at org.testcontainers.containers.GenericContainer.lambda$start$0(GenericContainer.java:184)
- at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:76)
- ... 18 more
- Caused by: org.testcontainers.containers.ContainerLaunchException: Timed out waiting for container port to open (172.17.0.1:32823 should be listening)
- at org.testcontainers.containers.wait.HostPortWaitStrategy.waitUntilReady(HostPortWaitStrategy.java:91)
- at org.testcontainers.containers.GenericContainer$AbstractWaitStrategy.waitUntilReady(GenericContainer.java:943)
- at org.testcontainers.containers.GenericContainer.waitUntilContainerStarted(GenericContainer.java:466)
- at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:235)
- ... 20 more
- ERROR: Job failed: exit code 1
- FATAL: exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement