Advertisement
Guest User

Untitled

a guest
Feb 17th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.94 KB | None | 0 0
  1. /usr/lib/jvm/java-8-oracle/bin/java -Dmaven.multiModuleProjectDirectory=/home/peter/git/testcontainers-java-examples/spring-boot -Dmaven.home=/opt/idea-IC/plugins/maven/lib/maven3 -Dclassworlds.conf=/opt/idea-IC/plugins/maven/lib/maven3/bin/m2.conf -Didea.launcher.port=7540 -Didea.launcher.bin.path=/opt/idea-IC/bin -Dfile.encoding=UTF-8 -classpath /opt/idea-IC/plugins/maven/lib/maven3/boot/plexus-classworlds-2.5.2.jar:/opt/idea-IC/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=2016.3.4 test
  2. [INFO] Scanning for projects...
  3. [INFO]
  4. [INFO] ------------------------------------------------------------------------
  5. [INFO] Building spring-boot NOVERSION
  6. [INFO] ------------------------------------------------------------------------
  7. [INFO]
  8. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spring-boot ---
  9. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  10. [INFO] skip non existing resourceDirectory /home/peter/git/testcontainers-java-examples/spring-boot/src/main/resources
  11. [INFO]
  12. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ spring-boot ---
  13. [INFO] Nothing to compile - all classes are up to date
  14. [INFO]
  15. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ spring-boot ---
  16. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  17. [INFO] Copying 1 resource
  18. [INFO]
  19. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ spring-boot ---
  20. [INFO] Nothing to compile - all classes are up to date
  21. [INFO]
  22. [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ spring-boot ---
  23. [INFO] Surefire report directory: /home/peter/git/testcontainers-java-examples/spring-boot/target/surefire-reports
  24.  
  25. -------------------------------------------------------
  26. T E S T S
  27. -------------------------------------------------------
  28. Running com.example.DemoApplicationTest
  29. 2017-02-17 15:32:12.613 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}.
  30. 2017-02-17 15:32:12.628 INFO --- [ main] WebAppIntegrationTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [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]
  31. 2017-02-17 15:32:12.641 INFO --- [ main] WebAppIntegrationTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@3d3fcdb0, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@641147d0, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@6e38921c, org.springframework.test.context.support.DirtiesContextTestExecutionListener@64d7f7e0, org.springframework.test.context.transaction.TransactionalTestExecutionListener@27c6e487, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@49070868]
  32. 2017-02-17 15:32:13.090 INFO --- [ main] o.t.d.DockerClientProviderStrategy : Found docker client settings from environment
  33. 2017-02-17 15:32:13.111 INFO --- [ main] o.t.d.DockerClientProviderStrategy : Looking for Docker environment. Tried Environment variables, system properties and defaults. Resolved:
  34. dockerHost=unix:///var/run/docker.sock
  35. apiVersion='{UNKNOWN_VERSION}'
  36. registryUrl='https://index.docker.io/v1/'
  37. registryUsername='peter'
  38. registryPassword='null'
  39. registryEmail='null'
  40. dockerConfig='DefaultDockerClientConfig[dockerHost=unix:///var/run/docker.sock,registryUsername=peter,registryPassword=<null>,registryEmail=<null>,registryUrl=https://index.docker.io/v1/,dockerConfig=/home/peter/.docker,sslConfig=<null>,apiVersion={UNKNOWN_VERSION}]'
  41.  
  42. 2017-02-17 15:32:13.121 INFO --- [ main] org.testcontainers.DockerClientFactory : Docker host IP address is localhost
  43. 2017-02-17 15:32:13.498 INFO --- [ main] org.testcontainers.DockerClientFactory : Connected to docker:
  44. Server Version: 1.13.1
  45. API Version: 1.26
  46. Operating System: Ubuntu 16.04.2 LTS
  47. Total Memory: 3951 MB
  48. Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.434 sec <<< FAILURE!
  49. com.example.DemoApplicationTest Time elapsed: 1.434 sec <<< ERROR!
  50. java.lang.ExceptionInInitializerError
  51. at sun.misc.Unsafe.ensureClassInitialized(Native Method)
  52. at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
  53. at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:156)
  54. at java.lang.reflect.Field.acquireFieldAccessor(Field.java:1088)
  55. at java.lang.reflect.Field.getFieldAccessor(Field.java:1069)
  56. at java.lang.reflect.Field.get(Field.java:393)
  57. at org.junit.runners.model.FrameworkField.get(FrameworkField.java:73)
  58. at org.junit.runners.model.TestClass.getAnnotatedFieldValues(TestClass.java:230)
  59. at org.junit.runners.ParentRunner.classRules(ParentRunner.java:255)
  60. at org.junit.runners.ParentRunner.withClassRules(ParentRunner.java:244)
  61. at org.junit.runners.ParentRunner.classBlock(ParentRunner.java:194)
  62. at org.junit.runners.ParentRunner.run(ParentRunner.java:362)
  63. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
  64. at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
  65. at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
  66. at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
  67. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  68. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  69. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  70. at java.lang.reflect.Method.invoke(Method.java:498)
  71. at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
  72. at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
  73. at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
  74. at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
  75. at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
  76. Caused by: org.testcontainers.shaded.com.github.dockerjava.api.exception.DockerClientException: Failed to parse dockerCfgFile
  77. at org.testcontainers.shaded.com.github.dockerjava.core.DefaultDockerClientConfig.effectiveAuthConfig(DefaultDockerClientConfig.java:268)
  78. at org.testcontainers.shaded.com.github.dockerjava.core.DockerClientImpl.pullImageCmd(DockerClientImpl.java:215)
  79. at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:103)
  80. at org.testcontainers.containers.GenericContainer.<init>(GenericContainer.java:113)
  81. at com.example.AbstractIntegrationTest.<clinit>(AbstractIntegrationTest.java:20)
  82. ... 25 more
  83. Caused by: java.io.IOException: Invalid Auth config file
  84. at org.testcontainers.shaded.com.github.dockerjava.core.AuthConfigFile.loadConfig(AuthConfigFile.java:146)
  85. at org.testcontainers.shaded.com.github.dockerjava.core.DefaultDockerClientConfig.effectiveAuthConfig(DefaultDockerClientConfig.java:266)
  86. ... 29 more
  87.  
  88.  
  89. Results :
  90.  
  91. Tests in error:
  92. com.example.DemoApplicationTest
  93.  
  94. Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
  95.  
  96. [INFO] ------------------------------------------------------------------------
  97. [INFO] BUILD FAILURE
  98. [INFO] ------------------------------------------------------------------------
  99. [INFO] Total time: 3.813 s
  100. [INFO] Finished at: 2017-02-17T15:32:13+09:00
  101. [INFO] Final Memory: 14M/174M
  102. [INFO] ------------------------------------------------------------------------
  103. [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.
  104. [ERROR]
  105. [ERROR] Please refer to /home/peter/git/testcontainers-java-examples/spring-boot/target/surefire-reports for the individual test results.
  106. [ERROR] -> [Help 1]
  107. [ERROR]
  108. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  109. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  110. [ERROR]
  111. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  112. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  113.  
  114. Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement