Advertisement
Guest User

Untitled

a guest
Sep 15th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 24.40 KB | None | 0 0
  1. ppyzik@rudy102:~/repos/testcontainers-java-examples$ sudo gitlab-runner exec docker test-job --docker-volumes "/var/run/docker.sock:/var/run/docker.sock"
  2. Running with gitlab-ci-multi-runner 9.3.0 (3df822b)
  3.   on  ()
  4. Using Docker executor with image maven:latest ...
  5. Using docker image sha256:857a296885db30d98f9b8b3e2910dadfe3878ddd6a7021783e7f22fb67b55ed6 for predefined container...
  6. Pulling docker image maven:latest ...
  7. Using docker image maven:latest ID=sha256:cbf11492553009027e6c400301aafc967e12c2c73bf71848c16ed6ce48294bf0 for build container...
  8. Running on runner--project-0-concurrent-0 via rudy102...
  9. Cloning repository...
  10. Cloning into '/builds/project-0'...
  11. done.
  12. Checking out 8610e1a0 as master...
  13. Skipping Git submodules setup
  14. $ echo "checks.disable=true" > ~/.testcontainers.properties
  15.  
  16. $ mvn clean install --batch-mode --update-snapshots --errors --file spring-boot/pom.xml -Dmaven.repo.local=/.mvn-repository
  17. [INFO] Error stacktraces are turned on.
  18. [INFO] Scanning for projects...
  19. [INFO]
  20. [INFO] ------------------------------------------------------------------------
  21. [INFO] Building spring-boot NOVERSION
  22. [INFO] ------------------------------------------------------------------------
  23. [INFO] Downloading: https://jitpack.io/com/github/testcontainers/testcontainers-java/testcontainers/-SNAPSHOT/maven-metadata.xml
  24. [INFO] Downloaded: https://jitpack.io/com/github/testcontainers/testcontainers-java/testcontainers/-SNAPSHOT/maven-metadata.xml (419 B at 434 B/s)
  25. [INFO] Downloading: https://jitpack.io/com/github/testcontainers/testcontainers-java/testcontainers-parent/-SNAPSHOT/maven-metadata.xml
  26. [INFO] Downloading: file://${project.basedir}/testlib/repo/com/github/testcontainers/testcontainers-java/testcontainers-parent/-SNAPSHOT/maven-metadata.xml
  27. [INFO] Downloaded: https://jitpack.io/com/github/testcontainers/testcontainers-java/testcontainers-parent/-SNAPSHOT/maven-metadata.xml (426 B at 1.5 kB/s)
  28. [INFO]
  29. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ spring-boot ---
  30. [INFO]
  31. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spring-boot ---
  32. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  33. [INFO] skip non existing resourceDirectory /builds/project-0/spring-boot/src/main/resources
  34. [INFO]
  35. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ spring-boot ---
  36. [INFO] Changes detected - recompiling the module!
  37. [INFO] Compiling 1 source file to /builds/project-0/spring-boot/target/classes
  38. [INFO]
  39. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ spring-boot ---
  40. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  41. [INFO] Copying 1 resource
  42. [INFO]
  43. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ spring-boot ---
  44. [INFO] Changes detected - recompiling the module!
  45. [INFO] Compiling 2 source files to /builds/project-0/spring-boot/target/test-classes
  46. [INFO]
  47. [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ spring-boot ---
  48. [INFO] Surefire report directory: /builds/project-0/spring-boot/target/surefire-reports
  49.  
  50. -------------------------------------------------------
  51.  T E S T S
  52. -------------------------------------------------------
  53. Running com.example.DemoApplicationTest
  54. 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}.
  55. 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]
  56. 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]
  57. 2017-09-15 07:56:29.200  INFO   --- [           main] tAndSystemPropertyClientProviderStrategy : Found docker client settings from environment
  58. 2017-09-15 07:56:29.214  INFO   --- [           main] o.t.d.DockerClientProviderStrategy       : Found Docker environment with Environment variables, system properties and defaults. Resolved:
  59.     dockerHost=unix:///var/run/docker.sock
  60.     apiVersion='{UNKNOWN_VERSION}'
  61.     registryUrl='https://index.docker.io/v1/'
  62.     registryUsername='root'
  63.     registryPassword='null'
  64.     registryEmail='null'
  65.     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}]'
  66.  
  67. 2017-09-15 07:56:30.010  INFO   --- [           main] org.testcontainers.DockerClientFactory   : Docker host IP address is 172.17.0.1
  68. 2017-09-15 07:56:30.101  INFO   --- [           main] org.testcontainers.DockerClientFactory   : Connected to docker:
  69.   Server Version: 17.06.0-ce
  70.   API Version: 1.30
  71.   Operating System: Ubuntu 16.04.2 LTS
  72.   Total Memory: 15952 MB
  73. 2017-09-15 07:56:30.145  INFO   --- [           main] 🐳 [redis:3.0.6]                         : Creating container for image: redis:3.0.6
  74. 2017-09-15 07:56:30.273  INFO   --- [           main] 🐳 [redis:3.0.6]                         : Starting container with ID: f0dfadc6fdbdde561e4d5a7e8cb6b8337a5434c734d36277301e80c9bc888669
  75. 2017-09-15 07:56:30.558  INFO   --- [           main] 🐳 [redis:3.0.6]                         : Container redis:3.0.6 is starting: f0dfadc6fdbdde561e4d5a7e8cb6b8337a5434c734d36277301e80c9bc888669
  76. 2017-09-15 07:57:30.649 ERROR   --- [           main] 🐳 [redis:3.0.6]                         : Could not start container
  77.  
  78. org.testcontainers.containers.ContainerLaunchException: Timed out waiting for container port to open (172.17.0.1:32823 should be listening)
  79.     at org.testcontainers.containers.wait.HostPortWaitStrategy.waitUntilReady(HostPortWaitStrategy.java:91)
  80.     at org.testcontainers.containers.GenericContainer$AbstractWaitStrategy.waitUntilReady(GenericContainer.java:943)
  81.     at org.testcontainers.containers.GenericContainer.waitUntilContainerStarted(GenericContainer.java:466)
  82.     at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:235)
  83.     at org.testcontainers.containers.GenericContainer.lambda$start$0(GenericContainer.java:184)
  84.     at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:76)
  85.     at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:182)
  86.     at org.testcontainers.containers.GenericContainer.starting(GenericContainer.java:544)
  87.     at org.testcontainers.containers.FailureDetectingExternalResource$1.evaluate(FailureDetectingExternalResource.java:29)
  88.     at org.junit.rules.RunRules.evaluate(RunRules.java:20)
  89.     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
  90.     at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
  91.     at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
  92.     at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
  93.     at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
  94.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  95.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  96.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  97.     at java.lang.reflect.Method.invoke(Method.java:498)
  98.     at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
  99.     at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
  100.     at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
  101.     at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
  102.     at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
  103.  
  104. 2017-09-15 07:57:30.650 ERROR   --- [           main] 🐳 [redis:3.0.6]                         : Container log output (if any) will follow:
  105. 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
  106. 2017-09-15 07:57:30.666  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: _._
  107. 2017-09-15 07:57:30.667  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: _.-``__ ''-._
  108. 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
  109. 2017-09-15 07:57:30.670  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: .-`` .-```.  ```\/    _.,_ ''-._
  110. 2017-09-15 07:57:30.671  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: (    '      ,       .-`  | `,    )     Running in standalone mode
  111. 2017-09-15 07:57:30.676  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
  112. 2017-09-15 07:57:30.676  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: |    `-._   `._    /     _.-'    |     PID: 1
  113. 2017-09-15 07:57:30.677  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: `-._    `-._  `-./  _.-'    _.-'
  114. 2017-09-15 07:57:30.678  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: |`-._`-._    `-.__.-'    _.-'_.-'|
  115. 2017-09-15 07:57:30.679  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: |    `-._`-._        _.-'_.-'    |           http://redis.io
  116. 2017-09-15 07:57:30.680  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: `-._    `-._`-.__.-'_.-'    _.-'
  117. 2017-09-15 07:57:30.682  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: |`-._`-._    `-.__.-'    _.-'_.-'|
  118. 2017-09-15 07:57:30.683  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: |    `-._`-._        _.-'_.-'    |
  119. 2017-09-15 07:57:30.684  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: `-._    `-._`-.__.-'_.-'    _.-'
  120. 2017-09-15 07:57:30.686  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: `-._    `-.__.-'    _.-'
  121. 2017-09-15 07:57:30.686  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: `-._        _.-'
  122. 2017-09-15 07:57:30.687  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT: `-.__.-'
  123. 2017-09-15 07:57:30.688  INFO   --- [rjava-netty-1-6] 🐳 [redis:3.0.6]                         : STDOUT:
  124. 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.
  125. 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
  126. 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.
  127. 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.
  128. 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
  129. Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 62.747 sec <<< FAILURE!
  130. com.example.DemoApplicationTest  Time elapsed: 62.746 sec  <<< ERROR!
  131. org.testcontainers.containers.ContainerLaunchException: Container startup failed
  132.     at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:189)
  133.     at org.testcontainers.containers.GenericContainer.starting(GenericContainer.java:544)
  134.     at org.testcontainers.containers.FailureDetectingExternalResource$1.evaluate(FailureDetectingExternalResource.java:29)
  135.     at org.junit.rules.RunRules.evaluate(RunRules.java:20)
  136.     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
  137.     at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
  138.     at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
  139.     at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
  140.     at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
  141.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  142.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  143.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  144.     at java.lang.reflect.Method.invoke(Method.java:498)
  145.     at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
  146.     at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
  147.     at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
  148.     at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
  149.     at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
  150. Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
  151.     at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:83)
  152.     at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:182)
  153.     ... 17 more
  154. Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
  155.     at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:256)
  156.     at org.testcontainers.containers.GenericContainer.lambda$start$0(GenericContainer.java:184)
  157.     at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:76)
  158.     ... 18 more
  159. Caused by: org.testcontainers.containers.ContainerLaunchException: Timed out waiting for container port to open (172.17.0.1:32823 should be listening)
  160.     at org.testcontainers.containers.wait.HostPortWaitStrategy.waitUntilReady(HostPortWaitStrategy.java:91)
  161.     at org.testcontainers.containers.GenericContainer$AbstractWaitStrategy.waitUntilReady(GenericContainer.java:943)
  162.     at org.testcontainers.containers.GenericContainer.waitUntilContainerStarted(GenericContainer.java:466)
  163.     at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:235)
  164.     ... 20 more
  165.  
  166.  
  167. Results :
  168.  
  169. Tests in error:
  170.   com.example.DemoApplicationTest: Container startup failed
  171.  
  172. Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
  173.  
  174. [INFO] ------------------------------------------------------------------------
  175. [INFO] BUILD FAILURE
  176. [INFO] ------------------------------------------------------------------------
  177. [INFO] Total time: 01:09 min
  178. [INFO] Finished at: 2017-09-15T07:57:31Z
  179. [INFO] Final Memory: 31M/257M
  180. [INFO] ------------------------------------------------------------------------
  181. [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.
  182. [ERROR]
  183. [ERROR] Please refer to /builds/project-0/spring-boot/target/surefire-reports for the individual test results.
  184. [ERROR] -> [Help 1]
  185. 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.
  186.  
  187. Please refer to /builds/project-0/spring-boot/target/surefire-reports for the individual test results.
  188.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
  189.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
  190.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
  191.     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
  192.     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
  193.     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
  194.     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
  195.     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
  196.     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
  197.     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
  198.     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
  199.     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
  200.     at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
  201.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  202.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  203.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  204.     at java.lang.reflect.Method.invoke(Method.java:498)
  205.     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
  206.     at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
  207.     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
  208.     at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  209. Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
  210.  
  211. Please refer to /builds/project-0/spring-boot/target/surefire-reports for the individual test results.
  212.     at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:83)
  213.     at org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(SurefirePlugin.java:176)
  214.     at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:150)
  215.     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:650)
  216.     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:586)
  217.     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
  218.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
  219.     ... 20 more
  220. [ERROR]
  221. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  222. [ERROR]
  223. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  224. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  225. Running after script...
  226. $ cat spring-boot/target/surefire-reports/*.txt
  227. -------------------------------------------------------------------------------
  228. Test set: com.example.DemoApplicationTest
  229. -------------------------------------------------------------------------------
  230. Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 62.747 sec <<< FAILURE!
  231. com.example.DemoApplicationTest  Time elapsed: 62.746 sec  <<< ERROR!
  232. org.testcontainers.containers.ContainerLaunchException: Container startup failed
  233.     at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:189)
  234.     at org.testcontainers.containers.GenericContainer.starting(GenericContainer.java:544)
  235.     at org.testcontainers.containers.FailureDetectingExternalResource$1.evaluate(FailureDetectingExternalResource.java:29)
  236.     at org.junit.rules.RunRules.evaluate(RunRules.java:20)
  237.     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
  238.     at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
  239.     at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
  240.     at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
  241.     at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
  242.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  243.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  244.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  245.     at java.lang.reflect.Method.invoke(Method.java:498)
  246.     at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
  247.     at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
  248.     at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
  249.     at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
  250.     at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
  251. Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
  252.     at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:83)
  253.     at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:182)
  254.     ... 17 more
  255. Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
  256.     at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:256)
  257.     at org.testcontainers.containers.GenericContainer.lambda$start$0(GenericContainer.java:184)
  258.     at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:76)
  259.     ... 18 more
  260. Caused by: org.testcontainers.containers.ContainerLaunchException: Timed out waiting for container port to open (172.17.0.1:32823 should be listening)
  261.     at org.testcontainers.containers.wait.HostPortWaitStrategy.waitUntilReady(HostPortWaitStrategy.java:91)
  262.     at org.testcontainers.containers.GenericContainer$AbstractWaitStrategy.waitUntilReady(GenericContainer.java:943)
  263.     at org.testcontainers.containers.GenericContainer.waitUntilContainerStarted(GenericContainer.java:466)
  264.     at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:235)
  265.     ... 20 more
  266.  
  267.  
  268. ERROR: Job failed: exit code 1
  269. FATAL: exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement