You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by Apache Jenkins Server <je...@builds.apache.org> on 2018/09/16 00:52:18 UTC
Build failed in Jenkins: brooklyn-client-master-docker #12
See <https://builds.apache.org/job/brooklyn-client-master-docker/12/display/redirect>
------------------------------------------
[...truncated 248.23 KB...]
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:696)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
... 39 more
2018-09-16 00:52:12,625 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-16 00:52:12,628 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() finished in 1 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:696)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
... 39 more
2018-09-16 00:52:12,629 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-16 00:52:12,636 INFO - Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@522a32b1
ERROR: Unable to create cache directory: /var/maven/.brooklyn/osgi/cache/dMQS85ew
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:193)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
2018-09-16 00:52:12,671 INFO - TESTNG FAILED CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:696)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
... 39 more
2018-09-16 00:52:12,677 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
2018-09-16 00:52:12,765 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps() finished in 88 ms
2018-09-16 00:52:12,766 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
2018-09-16 00:52:12,767 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull() finished in 1 ms
2018-09-16 00:52:12,768 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
2018-09-16 00:52:12,769 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull() finished in 1 ms
2018-09-16 00:52:12,770 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
2018-09-16 00:52:12,819 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError() finished in 49 ms
2018-09-16 00:52:12,819 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
2018-09-16 00:52:12,822 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson() finished in 3 ms
2018-09-16 00:52:12,823 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
2018-09-16 00:52:12,835 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage() finished in 12 ms
2018-09-16 00:52:12,836 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
2018-09-16 00:52:12,839 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse() finished in 3 ms
2018-09-16 00:52:12,840 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
2018-09-16 00:52:12,844 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse() finished in 4 ms
2018-09-16 00:52:12,845 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
2018-09-16 00:52:12,848 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields() finished in 3 ms
2018-09-16 00:52:12,849 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
2018-09-16 00:52:12,852 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError() finished in 3 ms
2018-09-16 00:52:12,852 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
2018-09-16 00:52:12,855 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError() finished in 3 ms
2018-09-16 00:52:12,856 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
2018-09-16 00:52:12,857 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError() finished in 1 ms
2018-09-16 00:52:12,858 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
2018-09-16 00:52:12,859 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError() finished in 1 ms
2018-09-16 00:52:12,861 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-16 00:52:12,870 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 9 ms
2018-09-16 00:52:12,871 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint()
[GC (Metadata GC Threshold) 52132K->8162K(753664K), 0.0158621 secs]
[Full GC (Metadata GC Threshold) 8162K->7873K(753664K), 0.0651628 secs]
Sep 16, 2018 12:52:13 AM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: POST /v1/applications HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 00:52:14,152 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint() finished in 1281 ms
2018-09-16 00:52:14,153 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-16 00:52:14,154 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-16 00:52:14,155 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-16 00:52:14,156 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-16 00:52:14,156 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning()
2018-09-16 00:52:14,197 INFO - Waiting 5m from Sun Sep 16 00:52:14 UTC 2018 for application appId to be RUNNING
Sep 16, 2018 12:52:14 AM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 00:52:14,238 INFO - Application appId is RUNNING
2018-09-16 00:52:14,239 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning() finished in 82 ms
2018-09-16 00:52:14,239 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-16 00:52:14,239 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 0 ms
2018-09-16 00:52:14,240 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-16 00:52:14,241 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-16 00:52:14,241 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError()
2018-09-16 00:52:14,247 INFO - Waiting 5m from Sun Sep 16 00:52:14 UTC 2018 for application appId to be RUNNING
Sep 16, 2018 12:52:14 AM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 00:52:14,261 WARN - Application is not RUNNING within 5m. Status is: ERROR
2018-09-16 00:52:14,262 ERROR - Application is not running. Is: error
Sep 16, 2018 12:52:14 AM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 00:52:14,314 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError() finished in 73 ms
2018-09-16 00:52:14,315 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-16 00:52:14,316 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-16 00:52:14,317 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-16 00:52:14,317 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 0 ms
2018-09-16 00:52:14,318 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown()
2018-09-16 00:52:14,324 INFO - Waiting 5m from Sun Sep 16 00:52:14 UTC 2018 for application appId to be RUNNING
Sep 16, 2018 12:52:14 AM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 00:52:14,338 WARN - Application is not RUNNING within 5m. Status is: UNKNOWN
2018-09-16 00:52:14,338 ERROR - Application is not running. Is: unknown
Sep 16, 2018 12:52:14 AM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 00:52:14,386 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown() finished in 67 ms
2018-09-16 00:52:14,387 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-16 00:52:14,388 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 0 ms
2018-09-16 00:52:14,448 INFO - TESTNG
===============================================
Surefire test
Tests run: 25, Failures: 0, Skips: 8
Configuration Failures: 2, Skips: 0
===============================================
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8, Time elapsed: 4.446 sec <<< FAILURE! - in TestSuite
setUp(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 2.425 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
tearDown(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.047 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Results :
Failed tests:
BrooklynApiRestClientTest.setUp:77->getManagementContext:66 » PropagatedRuntime
BrooklynApiRestClientTest.tearDown:87->getManagementContext:66 » PropagatedRuntime
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Client .................................... SUCCESS [ 4.362 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 39.508 s]
[INFO] Brooklyn REST java Client .......................... FAILURE [ 42.643 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:32 min
[INFO] Finished at: 2018-09-16T00:52:14Z
[INFO] Final Memory: 71M/649M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project brooklyn-rest-client: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/build/java/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-rest-client
Build step 'Execute shell' marked build as failure
Recording test results
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports...
Processing '/x1/jenkins/jenkins-home/jobs/brooklyn-client-master-docker/builds/12/testng/testng-results.xml'
TestNG Reports Processing: FINISH
Jenkins build is back to normal : brooklyn-client-master-docker #27
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/27/display/redirect?page=changes>
Build failed in Jenkins: brooklyn-client-master-docker #26
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/26/display/redirect>
------------------------------------------
Started by timer
[EnvInject] - Loading node environment variables.
Building remotely on H31 (ubuntu xenial) in workspace <https://builds.apache.org/job/brooklyn-client-master-docker/ws/>
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Done
Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to H31
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel.call(Channel.java:955)
at hudson.FilePath.act(FilePath.java:1036)
at hudson.FilePath.act(FilePath.java:1025)
at hudson.FilePath.mkdirs(FilePath.java:1213)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1794)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
java.nio.file.FileSystemException: <https://builds.apache.org/job/brooklyn-client-master-docker/ws/>: No space left on device
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
at hudson.FilePath.mkdirs(FilePath.java:3103)
at hudson.FilePath.access$900(FilePath.java:209)
at hudson.FilePath$Mkdirs.invoke(FilePath.java:1221)
at hudson.FilePath$Mkdirs.invoke(FilePath.java:1217)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2918)
at hudson.remoting.UserRequest.perform(UserRequest.java:212)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused: java.io.IOException: remote file operation failed: <https://builds.apache.org/job/brooklyn-client-master-docker/ws/> at hudson.remoting.Channel@3bc2a34f:H31
at hudson.FilePath.act(FilePath.java:1043)
at hudson.FilePath.act(FilePath.java:1025)
at hudson.FilePath.mkdirs(FilePath.java:1213)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1794)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Retrying after 10 seconds
Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to H31
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel.call(Channel.java:955)
at hudson.FilePath.act(FilePath.java:1036)
at hudson.FilePath.act(FilePath.java:1025)
at hudson.FilePath.mkdirs(FilePath.java:1213)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1794)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
java.nio.file.FileSystemException: <https://builds.apache.org/job/brooklyn-client-master-docker/ws/>: No space left on device
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
at hudson.FilePath.mkdirs(FilePath.java:3103)
at hudson.FilePath.access$900(FilePath.java:209)
at hudson.FilePath$Mkdirs.invoke(FilePath.java:1221)
at hudson.FilePath$Mkdirs.invoke(FilePath.java:1217)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2918)
at hudson.remoting.UserRequest.perform(UserRequest.java:212)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused: java.io.IOException: remote file operation failed: <https://builds.apache.org/job/brooklyn-client-master-docker/ws/> at hudson.remoting.Channel@3bc2a34f:H31
at hudson.FilePath.act(FilePath.java:1043)
at hudson.FilePath.act(FilePath.java:1025)
at hudson.FilePath.mkdirs(FilePath.java:1213)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1794)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Retrying after 10 seconds
Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to H31
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel.call(Channel.java:955)
at hudson.FilePath.act(FilePath.java:1036)
at hudson.FilePath.act(FilePath.java:1025)
at hudson.FilePath.mkdirs(FilePath.java:1213)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1794)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
java.nio.file.FileSystemException: <https://builds.apache.org/job/brooklyn-client-master-docker/ws/>: No space left on device
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
at hudson.FilePath.mkdirs(FilePath.java:3103)
at hudson.FilePath.access$900(FilePath.java:209)
at hudson.FilePath$Mkdirs.invoke(FilePath.java:1221)
at hudson.FilePath$Mkdirs.invoke(FilePath.java:1217)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2918)
at hudson.remoting.UserRequest.perform(UserRequest.java:212)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused: java.io.IOException: remote file operation failed: <https://builds.apache.org/job/brooklyn-client-master-docker/ws/> at hudson.remoting.Channel@3bc2a34f:H31
at hudson.FilePath.act(FilePath.java:1043)
at hudson.FilePath.act(FilePath.java:1025)
at hudson.FilePath.mkdirs(FilePath.java:1213)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1794)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Recording test results
ERROR: Build step failed with exception
Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to H31
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel.call(Channel.java:955)
at hudson.FilePath.act(FilePath.java:1036)
at hudson.FilePath.act(FilePath.java:1025)
at hudson.tasks.junit.JUnitParser.parseResult(JUnitParser.java:114)
at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:136)
at hudson.tasks.junit.JUnitResultArchiver.parseAndAttach(JUnitResultArchiver.java:166)
at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:153)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
at hudson.model.Run.execute(Run.java:1819)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
<https://builds.apache.org/job/brooklyn-client-master-docker/ws/> does not exist.
at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:484)
at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:461)
at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:141)
at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:118)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2918)
at hudson.remoting.UserRequest.perform(UserRequest.java:212)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Build step 'Publish JUnit test result report' marked build as failure
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Did not find any matching files.
Build failed in Jenkins: brooklyn-client-master-docker #25
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/25/display/redirect>
------------------------------------------
[...truncated 296.24 KB...]
... 39 more
2018-09-27 18:58:16,467 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testApplicationApiThrownError()
2018-09-27 18:58:16,468 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testApplicationApiThrownError() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-27 18:58:16,469 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testCatalogApiLocations()
2018-09-27 18:58:16,470 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testCatalogApiLocations() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-27 18:58:16,470 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testCatalogCreate()
2018-09-27 18:58:16,471 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testCatalogCreate() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-27 18:58:16,472 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testLocationApi()
2018-09-27 18:58:16,473 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testLocationApi() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-27 18:58:16,473 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-27 18:58:16,474 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-27 18:58:16,475 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-27 18:58:16,479 INFO - Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@44c5a16f
ERROR: Unable to create cache directory: /var/maven/.brooklyn/osgi/cache/ZsOdfS09
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:193)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
2018-09-27 18:58:16,506 INFO - TESTNG FAILED CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-27 18:58:16,544 INFO - TESTNG
===============================================
Surefire test
Tests run: 25, Failures: 0, Skips: 8
Configuration Failures: 2, Skips: 0
===============================================
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8, Time elapsed: 3.835 sec <<< FAILURE! - in TestSuite
setUp(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 1.003 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
tearDown(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.031 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Results :
Failed tests:
BrooklynApiRestClientTest.setUp:77->getManagementContext:66 » PropagatedRuntime
BrooklynApiRestClientTest.tearDown:87->getManagementContext:66 » PropagatedRuntime
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Client .................................... SUCCESS [ 4.529 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 34.473 s]
[INFO] Brooklyn REST java Client .......................... FAILURE [ 43.262 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:27 min
[INFO] Finished at: 2018-09-27T18:58:17Z
[INFO] Final Memory: 71M/661M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project brooklyn-rest-client: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/build/java/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-rest-client
Build step 'Execute shell' marked build as failure
Recording test results
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports...
Processing '/x1/jenkins/jenkins-home/jobs/brooklyn-client-master-docker/builds/25/testng/testng-results.xml'
TestNG Reports Processing: FINISH
Build failed in Jenkins: brooklyn-client-master-docker #24
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/24/display/redirect>
------------------------------------------
[...truncated 268.90 KB...]
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-26 19:05:53,131 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testCatalogCreate()
2018-09-26 19:05:53,133 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testCatalogCreate() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-26 19:05:53,133 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testLocationApi()
2018-09-26 19:05:53,134 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testLocationApi() finished in 1 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-26 19:05:53,135 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-26 19:05:53,136 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-26 19:05:53,136 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-26 19:05:53,140 INFO - Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@27f1bbe0
ERROR: Unable to create cache directory: /var/maven/.brooklyn/osgi/cache/RvkaXG3Y
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:193)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
2018-09-26 19:05:53,169 INFO - TESTNG FAILED CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-26 19:05:53,170 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
2018-09-26 19:05:53,219 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps() finished in 49 ms
2018-09-26 19:05:53,220 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
2018-09-26 19:05:53,220 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull() finished in 1 ms
2018-09-26 19:05:53,221 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
2018-09-26 19:05:53,221 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull() finished in 0 ms
2018-09-26 19:05:53,222 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
2018-09-26 19:05:53,226 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError() finished in 4 ms
2018-09-26 19:05:53,227 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
2018-09-26 19:05:53,229 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson() finished in 2 ms
2018-09-26 19:05:53,229 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
2018-09-26 19:05:53,230 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage() finished in 1 ms
2018-09-26 19:05:53,231 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
2018-09-26 19:05:53,233 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse() finished in 2 ms
2018-09-26 19:05:53,233 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
2018-09-26 19:05:53,235 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse() finished in 2 ms
2018-09-26 19:05:53,235 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
2018-09-26 19:05:53,237 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields() finished in 2 ms
2018-09-26 19:05:53,237 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
2018-09-26 19:05:53,239 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError() finished in 2 ms
2018-09-26 19:05:53,240 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
2018-09-26 19:05:53,241 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError() finished in 1 ms
2018-09-26 19:05:53,242 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
2018-09-26 19:05:53,242 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError() finished in 0 ms
2018-09-26 19:05:53,243 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
2018-09-26 19:05:53,243 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError() finished in 0 ms
2018-09-26 19:05:53,283 INFO - TESTNG
===============================================
Surefire test
Tests run: 25, Failures: 0, Skips: 8
Configuration Failures: 2, Skips: 0
===============================================
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8, Time elapsed: 3.362 sec <<< FAILURE! - in TestSuite
setUp(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.838 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
tearDown(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.033 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Results :
Failed tests:
BrooklynApiRestClientTest.setUp:77->getManagementContext:66 » PropagatedRuntime
BrooklynApiRestClientTest.tearDown:87->getManagementContext:66 » PropagatedRuntime
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Client .................................... SUCCESS [ 5.105 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 33.950 s]
[INFO] Brooklyn REST java Client .......................... FAILURE [ 38.935 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:23 min
[INFO] Finished at: 2018-09-26T19:05:53Z
[INFO] Final Memory: 71M/658M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project brooklyn-rest-client: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/build/java/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-rest-client
Build step 'Execute shell' marked build as failure
Recording test results
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports...
Processing '/x1/jenkins/jenkins-home/jobs/brooklyn-client-master-docker/builds/24/testng/testng-results.xml'
TestNG Reports Processing: FINISH
Build failed in Jenkins: brooklyn-client-master-docker #23
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/23/display/redirect>
------------------------------------------
[...truncated 209.17 KB...]
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-25 19:18:07,430 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-25 19:18:07,432 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-25 19:18:07,433 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-25 19:18:07,438 INFO - Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@4d722ac9
ERROR: Unable to create cache directory: /var/maven/.brooklyn/osgi/cache/hOGDTgai
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:193)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
2018-09-25 19:18:07,481 INFO - TESTNG FAILED CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-25 19:18:07,486 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
2018-09-25 19:18:07,585 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps() finished in 99 ms
2018-09-25 19:18:07,586 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
2018-09-25 19:18:07,587 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull() finished in 0 ms
2018-09-25 19:18:07,587 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
2018-09-25 19:18:07,588 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull() finished in 1 ms
2018-09-25 19:18:07,588 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
2018-09-25 19:18:07,693 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError() finished in 105 ms
2018-09-25 19:18:07,694 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
2018-09-25 19:18:07,698 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson() finished in 3 ms
2018-09-25 19:18:07,698 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
2018-09-25 19:18:07,708 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage() finished in 10 ms
2018-09-25 19:18:07,708 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
2018-09-25 19:18:07,713 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse() finished in 4 ms
2018-09-25 19:18:07,714 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
2018-09-25 19:18:07,718 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse() finished in 4 ms
2018-09-25 19:18:07,720 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
2018-09-25 19:18:07,724 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields() finished in 5 ms
2018-09-25 19:18:07,725 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
2018-09-25 19:18:07,729 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError() finished in 4 ms
2018-09-25 19:18:07,730 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
2018-09-25 19:18:07,733 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError() finished in 3 ms
2018-09-25 19:18:07,734 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
2018-09-25 19:18:07,735 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError() finished in 1 ms
2018-09-25 19:18:07,736 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
2018-09-25 19:18:07,737 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError() finished in 2 ms
2018-09-25 19:18:07,739 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-25 19:18:07,746 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 8 ms
2018-09-25 19:18:07,746 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint()
[GC (Metadata GC Threshold) 66666K->10888K(753664K), 0.0196167 secs]
[Full GC (Metadata GC Threshold) 10888K->10285K(753664K), 0.0882814 secs]
Sep 25, 2018 7:18:08 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: POST /v1/applications HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-25 19:18:09,217 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint() finished in 1471 ms
2018-09-25 19:18:09,218 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-25 19:18:09,219 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-25 19:18:09,220 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-25 19:18:09,221 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-25 19:18:09,221 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning()
2018-09-25 19:18:09,288 INFO - Waiting 5m from Tue Sep 25 19:18:09 UTC 2018 for application appId to be RUNNING
Sep 25, 2018 7:18:09 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-25 19:18:09,351 INFO - Application appId is RUNNING
2018-09-25 19:18:09,352 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning() finished in 130 ms
2018-09-25 19:18:09,352 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-25 19:18:09,353 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-25 19:18:09,355 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-25 19:18:09,356 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 0 ms
2018-09-25 19:18:09,356 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError()
2018-09-25 19:18:09,372 INFO - Waiting 5m from Tue Sep 25 19:18:09 UTC 2018 for application appId to be RUNNING
Sep 25, 2018 7:18:09 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-25 19:18:09,387 WARN - Application is not RUNNING within 5m. Status is: ERROR
2018-09-25 19:18:09,387 ERROR - Application is not running. Is: error
Sep 25, 2018 7:18:09 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-25 19:18:09,437 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError() finished in 81 ms
2018-09-25 19:18:09,438 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-25 19:18:09,439 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-25 19:18:09,441 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-25 19:18:09,441 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-25 19:18:09,441 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown()
2018-09-25 19:18:09,448 INFO - Waiting 5m from Tue Sep 25 19:18:09 UTC 2018 for application appId to be RUNNING
Sep 25, 2018 7:18:09 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-25 19:18:09,462 WARN - Application is not RUNNING within 5m. Status is: UNKNOWN
2018-09-25 19:18:09,462 ERROR - Application is not running. Is: unknown
Sep 25, 2018 7:18:09 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-25 19:18:09,509 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown() finished in 68 ms
2018-09-25 19:18:09,510 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-25 19:18:09,511 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-25 19:18:09,577 INFO - TESTNG
===============================================
Surefire test
Tests run: 25, Failures: 0, Skips: 8
Configuration Failures: 2, Skips: 0
===============================================
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8, Time elapsed: 4.772 sec <<< FAILURE! - in TestSuite
setUp(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 2.349 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
tearDown(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.053 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Results :
Failed tests:
BrooklynApiRestClientTest.setUp:77->getManagementContext:66 » PropagatedRuntime
BrooklynApiRestClientTest.tearDown:87->getManagementContext:66 » PropagatedRuntime
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Client .................................... SUCCESS [ 5.351 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 42.453 s]
[INFO] Brooklyn REST java Client .......................... FAILURE [ 40.024 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:33 min
[INFO] Finished at: 2018-09-25T19:18:10Z
[INFO] Final Memory: 70M/709M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project brooklyn-rest-client: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/build/java/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-rest-client
Build step 'Execute shell' marked build as failure
Recording test results
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports...
Processing '/x1/jenkins/jenkins-home/jobs/brooklyn-client-master-docker/builds/23/testng/testng-results.xml'
TestNG Reports Processing: FINISH
Build failed in Jenkins: brooklyn-client-master-docker #22
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/22/display/redirect>
------------------------------------------
[...truncated 210.96 KB...]
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-24 18:45:33,215 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-24 18:45:33,216 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-24 18:45:33,217 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-24 18:45:33,222 INFO - Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@4d722ac9
ERROR: Unable to create cache directory: /var/maven/.brooklyn/osgi/cache/GG9Nsb4y
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:193)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
2018-09-24 18:45:33,259 INFO - TESTNG FAILED CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-24 18:45:33,262 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
2018-09-24 18:45:33,347 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps() finished in 85 ms
2018-09-24 18:45:33,349 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
2018-09-24 18:45:33,350 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull() finished in 0 ms
2018-09-24 18:45:33,350 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
2018-09-24 18:45:33,351 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull() finished in 1 ms
2018-09-24 18:45:33,352 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
2018-09-24 18:45:33,400 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError() finished in 48 ms
2018-09-24 18:45:33,400 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
2018-09-24 18:45:33,403 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson() finished in 3 ms
2018-09-24 18:45:33,404 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
2018-09-24 18:45:33,413 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage() finished in 9 ms
2018-09-24 18:45:33,414 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
2018-09-24 18:45:33,416 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse() finished in 2 ms
2018-09-24 18:45:33,417 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
2018-09-24 18:45:33,420 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse() finished in 3 ms
2018-09-24 18:45:33,421 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
2018-09-24 18:45:33,424 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields() finished in 3 ms
2018-09-24 18:45:33,424 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
2018-09-24 18:45:33,427 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError() finished in 3 ms
2018-09-24 18:45:33,428 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
2018-09-24 18:45:33,430 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError() finished in 3 ms
2018-09-24 18:45:33,431 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
2018-09-24 18:45:33,432 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError() finished in 1 ms
2018-09-24 18:45:33,433 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
2018-09-24 18:45:33,434 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError() finished in 0 ms
2018-09-24 18:45:33,435 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-24 18:45:33,444 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 9 ms
2018-09-24 18:45:33,445 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint()
[GC (Metadata GC Threshold) 66760K->10857K(753664K), 0.0225227 secs]
[Full GC (Metadata GC Threshold) 10857K->10471K(753664K), 0.0547824 secs]
Sep 24, 2018 6:45:34 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: POST /v1/applications HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-24 18:45:34,674 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint() finished in 1229 ms
2018-09-24 18:45:34,675 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-24 18:45:34,676 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-24 18:45:34,677 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-24 18:45:34,678 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-24 18:45:34,679 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning()
2018-09-24 18:45:34,721 INFO - Waiting 5m from Mon Sep 24 18:45:34 UTC 2018 for application appId to be RUNNING
Sep 24, 2018 6:45:34 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-24 18:45:34,779 INFO - Application appId is RUNNING
2018-09-24 18:45:34,779 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning() finished in 100 ms
2018-09-24 18:45:34,780 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-24 18:45:34,780 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 0 ms
2018-09-24 18:45:34,781 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-24 18:45:34,782 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-24 18:45:34,782 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError()
2018-09-24 18:45:34,793 INFO - Waiting 5m from Mon Sep 24 18:45:34 UTC 2018 for application appId to be RUNNING
Sep 24, 2018 6:45:34 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-24 18:45:34,815 WARN - Application is not RUNNING within 5m. Status is: ERROR
2018-09-24 18:45:34,815 ERROR - Application is not running. Is: error
Sep 24, 2018 6:45:34 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-24 18:45:34,870 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError() finished in 87 ms
2018-09-24 18:45:34,871 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-24 18:45:34,872 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-24 18:45:34,874 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-24 18:45:34,875 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-24 18:45:34,876 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown()
2018-09-24 18:45:34,887 INFO - Waiting 5m from Mon Sep 24 18:45:34 UTC 2018 for application appId to be RUNNING
Sep 24, 2018 6:45:34 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-24 18:45:34,907 WARN - Application is not RUNNING within 5m. Status is: UNKNOWN
2018-09-24 18:45:34,907 ERROR - Application is not running. Is: unknown
Sep 24, 2018 6:45:34 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-24 18:45:34,958 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown() finished in 81 ms
2018-09-24 18:45:34,959 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-24 18:45:34,960 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-24 18:45:35,026 INFO - TESTNG
===============================================
Surefire test
Tests run: 25, Failures: 0, Skips: 8
Configuration Failures: 2, Skips: 0
===============================================
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8, Time elapsed: 4.118 sec <<< FAILURE! - in TestSuite
setUp(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 2.064 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
tearDown(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.044 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Results :
Failed tests:
BrooklynApiRestClientTest.setUp:77->getManagementContext:66 » PropagatedRuntime
BrooklynApiRestClientTest.tearDown:87->getManagementContext:66 » PropagatedRuntime
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Client .................................... SUCCESS [ 3.828 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 39.752 s]
[INFO] Brooklyn REST java Client .......................... FAILURE [ 33.955 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:22 min
[INFO] Finished at: 2018-09-24T18:45:35Z
[INFO] Final Memory: 70M/655M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project brooklyn-rest-client: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/build/java/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-rest-client
Build step 'Execute shell' marked build as failure
Recording test results
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports...
Processing '/x1/jenkins/jenkins-home/jobs/brooklyn-client-master-docker/builds/22/testng/testng-results.xml'
TestNG Reports Processing: FINISH
Build failed in Jenkins: brooklyn-client-master-docker #21
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/21/display/redirect>
------------------------------------------
[...truncated 243.75 KB...]
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-23 18:47:35,803 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-23 18:47:35,805 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() finished in 1 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-23 18:47:35,807 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-23 18:47:35,813 INFO - Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@4d722ac9
ERROR: Unable to create cache directory: /var/maven/.brooklyn/osgi/cache/VM7gYMCI
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:193)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
2018-09-23 18:47:35,856 INFO - TESTNG FAILED CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-23 18:47:35,861 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
2018-09-23 18:47:35,972 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps() finished in 111 ms
2018-09-23 18:47:35,973 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
2018-09-23 18:47:35,974 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull() finished in 1 ms
2018-09-23 18:47:35,975 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
2018-09-23 18:47:35,976 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull() finished in 1 ms
2018-09-23 18:47:35,977 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
2018-09-23 18:47:36,034 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError() finished in 57 ms
2018-09-23 18:47:36,035 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
2018-09-23 18:47:36,039 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson() finished in 3 ms
2018-09-23 18:47:36,039 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
2018-09-23 18:47:36,049 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage() finished in 10 ms
2018-09-23 18:47:36,050 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
2018-09-23 18:47:36,054 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse() finished in 4 ms
2018-09-23 18:47:36,055 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
2018-09-23 18:47:36,059 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse() finished in 3 ms
2018-09-23 18:47:36,060 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
2018-09-23 18:47:36,063 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields() finished in 4 ms
2018-09-23 18:47:36,064 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
2018-09-23 18:47:36,067 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError() finished in 3 ms
2018-09-23 18:47:36,068 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
2018-09-23 18:47:36,072 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError() finished in 3 ms
2018-09-23 18:47:36,073 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
2018-09-23 18:47:36,074 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError() finished in 1 ms
2018-09-23 18:47:36,075 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
2018-09-23 18:47:36,076 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError() finished in 1 ms
2018-09-23 18:47:36,078 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-23 18:47:36,088 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 10 ms
2018-09-23 18:47:36,089 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint()
[GC (Metadata GC Threshold) 66636K->10844K(753664K), 0.0404826 secs]
[Full GC (Metadata GC Threshold) 10844K->10476K(753664K), 0.0698180 secs]
Sep 23, 2018 6:47:36 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: POST /v1/applications HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-23 18:47:37,313 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint() finished in 1224 ms
2018-09-23 18:47:37,314 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-23 18:47:37,315 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-23 18:47:37,316 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-23 18:47:37,316 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 0 ms
2018-09-23 18:47:37,317 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning()
2018-09-23 18:47:37,351 INFO - Waiting 5m from Sun Sep 23 18:47:37 UTC 2018 for application appId to be RUNNING
Sep 23, 2018 6:47:37 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-23 18:47:37,390 INFO - Application appId is RUNNING
2018-09-23 18:47:37,390 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning() finished in 73 ms
2018-09-23 18:47:37,391 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-23 18:47:37,391 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 0 ms
2018-09-23 18:47:37,392 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-23 18:47:37,392 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 0 ms
2018-09-23 18:47:37,392 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError()
2018-09-23 18:47:37,398 INFO - Waiting 5m from Sun Sep 23 18:47:37 UTC 2018 for application appId to be RUNNING
Sep 23, 2018 6:47:37 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-23 18:47:37,410 WARN - Application is not RUNNING within 5m. Status is: ERROR
2018-09-23 18:47:37,411 ERROR - Application is not running. Is: error
Sep 23, 2018 6:47:37 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-23 18:47:37,461 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError() finished in 69 ms
2018-09-23 18:47:37,462 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-23 18:47:37,463 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-23 18:47:37,464 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-23 18:47:37,464 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-23 18:47:37,464 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown()
2018-09-23 18:47:37,470 INFO - Waiting 5m from Sun Sep 23 18:47:37 UTC 2018 for application appId to be RUNNING
Sep 23, 2018 6:47:37 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-23 18:47:37,482 WARN - Application is not RUNNING within 5m. Status is: UNKNOWN
2018-09-23 18:47:37,482 ERROR - Application is not running. Is: unknown
Sep 23, 2018 6:47:37 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-23 18:47:37,525 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown() finished in 61 ms
2018-09-23 18:47:37,526 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-23 18:47:37,526 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 0 ms
2018-09-23 18:47:37,589 INFO - TESTNG
===============================================
Surefire test
Tests run: 25, Failures: 0, Skips: 8
Configuration Failures: 2, Skips: 0
===============================================
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8, Time elapsed: 4.124 sec <<< FAILURE! - in TestSuite
setUp(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 2.119 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
tearDown(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.054 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Results :
Failed tests:
BrooklynApiRestClientTest.setUp:77->getManagementContext:66 » PropagatedRuntime
BrooklynApiRestClientTest.tearDown:87->getManagementContext:66 » PropagatedRuntime
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Client .................................... SUCCESS [ 4.218 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 38.533 s]
[INFO] Brooklyn REST java Client .......................... FAILURE [ 35.587 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:23 min
[INFO] Finished at: 2018-09-23T18:47:38Z
[INFO] Final Memory: 70M/685M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project brooklyn-rest-client: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/build/java/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-rest-client
Build step 'Execute shell' marked build as failure
Recording test results
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports...
Processing '/x1/jenkins/jenkins-home/jobs/brooklyn-client-master-docker/builds/21/testng/testng-results.xml'
TestNG Reports Processing: FINISH
Build failed in Jenkins: brooklyn-client-master-docker #20
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/20/display/redirect>
------------------------------------------
[...truncated 481.55 KB...]
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-22 18:48:03,367 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-22 18:48:03,370 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() finished in 1 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-22 18:48:03,371 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-22 18:48:03,378 INFO - Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@4d722ac9
ERROR: Unable to create cache directory: /var/maven/.brooklyn/osgi/cache/Q9HKEaNO
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:193)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
2018-09-22 18:48:03,425 INFO - TESTNG FAILED CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-22 18:48:03,430 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-22 18:48:03,440 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 10 ms
2018-09-22 18:48:03,441 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint()
[GC (Metadata GC Threshold) 66664K->10586K(753664K), 0.0179271 secs]
[Full GC (Metadata GC Threshold) 10586K->10255K(753664K), 0.0583482 secs]
Sep 22, 2018 6:48:04 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: POST /v1/applications HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-22 18:48:04,741 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint() finished in 1299 ms
2018-09-22 18:48:04,741 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-22 18:48:04,742 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-22 18:48:04,743 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-22 18:48:04,743 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 0 ms
2018-09-22 18:48:04,744 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning()
2018-09-22 18:48:04,785 INFO - Waiting 5m from Sat Sep 22 18:48:04 UTC 2018 for application appId to be RUNNING
Sep 22, 2018 6:48:04 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-22 18:48:04,838 INFO - Application appId is RUNNING
2018-09-22 18:48:04,839 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning() finished in 95 ms
2018-09-22 18:48:04,840 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-22 18:48:04,840 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 0 ms
2018-09-22 18:48:04,841 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-22 18:48:04,842 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-22 18:48:04,842 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError()
2018-09-22 18:48:04,854 INFO - Waiting 5m from Sat Sep 22 18:48:04 UTC 2018 for application appId to be RUNNING
Sep 22, 2018 6:48:04 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-22 18:48:04,876 WARN - Application is not RUNNING within 5m. Status is: ERROR
2018-09-22 18:48:04,877 ERROR - Application is not running. Is: error
Sep 22, 2018 6:48:04 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-22 18:48:04,933 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError() finished in 90 ms
2018-09-22 18:48:04,934 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-22 18:48:04,935 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-22 18:48:04,937 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-22 18:48:04,938 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-22 18:48:04,938 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown()
2018-09-22 18:48:04,948 INFO - Waiting 5m from Sat Sep 22 18:48:04 UTC 2018 for application appId to be RUNNING
Sep 22, 2018 6:48:04 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-22 18:48:04,966 WARN - Application is not RUNNING within 5m. Status is: UNKNOWN
2018-09-22 18:48:04,967 ERROR - Application is not running. Is: unknown
Sep 22, 2018 6:48:04 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-22 18:48:05,016 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown() finished in 78 ms
2018-09-22 18:48:05,018 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-22 18:48:05,018 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-22 18:48:05,020 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
2018-09-22 18:48:05,103 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps() finished in 83 ms
2018-09-22 18:48:05,104 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
2018-09-22 18:48:05,105 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull() finished in 1 ms
2018-09-22 18:48:05,105 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
2018-09-22 18:48:05,106 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull() finished in 1 ms
2018-09-22 18:48:05,106 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
2018-09-22 18:48:05,113 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError() finished in 7 ms
2018-09-22 18:48:05,113 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
2018-09-22 18:48:05,116 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson() finished in 3 ms
2018-09-22 18:48:05,117 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
2018-09-22 18:48:05,119 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage() finished in 2 ms
2018-09-22 18:48:05,120 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
2018-09-22 18:48:05,124 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse() finished in 3 ms
2018-09-22 18:48:05,124 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
2018-09-22 18:48:05,127 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse() finished in 3 ms
2018-09-22 18:48:05,128 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
2018-09-22 18:48:05,131 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields() finished in 3 ms
2018-09-22 18:48:05,132 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
2018-09-22 18:48:05,135 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError() finished in 2 ms
2018-09-22 18:48:05,135 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
2018-09-22 18:48:05,138 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError() finished in 3 ms
2018-09-22 18:48:05,139 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
2018-09-22 18:48:05,140 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError() finished in 1 ms
2018-09-22 18:48:05,141 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
2018-09-22 18:48:05,142 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError() finished in 1 ms
2018-09-22 18:48:05,204 INFO - TESTNG
===============================================
Surefire test
Tests run: 25, Failures: 0, Skips: 8
Configuration Failures: 2, Skips: 0
===============================================
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8, Time elapsed: 4.309 sec <<< FAILURE! - in TestSuite
setUp(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 2.21 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
tearDown(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.059 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Results :
Failed tests:
BrooklynApiRestClientTest.setUp:77->getManagementContext:66 » PropagatedRuntime
BrooklynApiRestClientTest.tearDown:87->getManagementContext:66 » PropagatedRuntime
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Client .................................... SUCCESS [ 6.212 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 39.914 s]
[INFO] Brooklyn REST java Client .......................... FAILURE [ 47.251 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:38 min
[INFO] Finished at: 2018-09-22T18:48:05Z
[INFO] Final Memory: 71M/711M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project brooklyn-rest-client: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/build/java/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-rest-client
Build step 'Execute shell' marked build as failure
Recording test results
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports...
Processing '/x1/jenkins/jenkins-home/jobs/brooklyn-client-master-docker/builds/20/testng/testng-results.xml'
TestNG Reports Processing: FINISH
Build failed in Jenkins: brooklyn-client-master-docker #19
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/19/display/redirect>
------------------------------------------
[...truncated 210.84 KB...]
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-21 18:55:22,474 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-21 18:55:22,476 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() finished in 1 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-21 18:55:22,477 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-21 18:55:22,483 INFO - Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@4d722ac9
ERROR: Unable to create cache directory: /var/maven/.brooklyn/osgi/cache/Xq7HtIfm
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:193)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
2018-09-21 18:55:22,523 INFO - TESTNG FAILED CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-21 18:55:22,528 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
2018-09-21 18:55:22,646 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps() finished in 117 ms
2018-09-21 18:55:22,647 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
2018-09-21 18:55:22,647 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull() finished in 0 ms
2018-09-21 18:55:22,648 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
2018-09-21 18:55:22,649 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull() finished in 0 ms
2018-09-21 18:55:22,649 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
2018-09-21 18:55:22,709 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError() finished in 60 ms
2018-09-21 18:55:22,710 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
2018-09-21 18:55:22,712 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson() finished in 2 ms
2018-09-21 18:55:22,713 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
2018-09-21 18:55:22,719 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage() finished in 6 ms
2018-09-21 18:55:22,720 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
2018-09-21 18:55:22,724 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse() finished in 3 ms
2018-09-21 18:55:22,725 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
2018-09-21 18:55:22,727 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse() finished in 3 ms
2018-09-21 18:55:22,728 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
2018-09-21 18:55:22,730 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields() finished in 2 ms
2018-09-21 18:55:22,731 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
2018-09-21 18:55:22,733 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError() finished in 2 ms
2018-09-21 18:55:22,733 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
2018-09-21 18:55:22,736 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError() finished in 3 ms
2018-09-21 18:55:22,736 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
2018-09-21 18:55:22,737 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError() finished in 1 ms
2018-09-21 18:55:22,738 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
2018-09-21 18:55:22,738 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError() finished in 1 ms
2018-09-21 18:55:22,740 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-21 18:55:22,749 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 10 ms
2018-09-21 18:55:22,749 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint()
[GC (Metadata GC Threshold) 66601K->10769K(753664K), 0.0207705 secs]
[Full GC (Metadata GC Threshold) 10769K->10290K(753664K), 0.0620081 secs]
Sep 21, 2018 6:55:23 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: POST /v1/applications HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-21 18:55:24,458 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint() finished in 1709 ms
2018-09-21 18:55:24,459 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-21 18:55:24,460 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-21 18:55:24,462 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-21 18:55:24,462 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-21 18:55:24,463 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning()
2018-09-21 18:55:24,497 INFO - Waiting 5m from Fri Sep 21 18:55:24 UTC 2018 for application appId to be RUNNING
Sep 21, 2018 6:55:24 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-21 18:55:24,541 INFO - Application appId is RUNNING
2018-09-21 18:55:24,542 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning() finished in 80 ms
2018-09-21 18:55:24,543 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-21 18:55:24,543 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-21 18:55:24,545 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-21 18:55:24,545 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-21 18:55:24,545 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError()
2018-09-21 18:55:24,557 INFO - Waiting 5m from Fri Sep 21 18:55:24 UTC 2018 for application appId to be RUNNING
Sep 21, 2018 6:55:24 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-21 18:55:24,572 WARN - Application is not RUNNING within 5m. Status is: ERROR
2018-09-21 18:55:24,573 ERROR - Application is not running. Is: error
Sep 21, 2018 6:55:24 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-21 18:55:24,621 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError() finished in 76 ms
2018-09-21 18:55:24,622 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-21 18:55:24,623 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-21 18:55:24,625 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-21 18:55:24,626 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-21 18:55:24,627 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown()
2018-09-21 18:55:24,635 INFO - Waiting 5m from Fri Sep 21 18:55:24 UTC 2018 for application appId to be RUNNING
Sep 21, 2018 6:55:24 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-21 18:55:24,652 WARN - Application is not RUNNING within 5m. Status is: UNKNOWN
2018-09-21 18:55:24,652 ERROR - Application is not running. Is: unknown
Sep 21, 2018 6:55:24 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-21 18:55:24,702 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown() finished in 75 ms
2018-09-21 18:55:24,703 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-21 18:55:24,703 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-21 18:55:24,760 INFO - TESTNG
===============================================
Surefire test
Tests run: 25, Failures: 0, Skips: 8
Configuration Failures: 2, Skips: 0
===============================================
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8, Time elapsed: 4.932 sec <<< FAILURE! - in TestSuite
setUp(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 2.429 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
tearDown(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.049 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Results :
Failed tests:
BrooklynApiRestClientTest.setUp:77->getManagementContext:66 » PropagatedRuntime
BrooklynApiRestClientTest.tearDown:87->getManagementContext:66 » PropagatedRuntime
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Client .................................... SUCCESS [ 4.879 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 41.199 s]
[INFO] Brooklyn REST java Client .......................... FAILURE [ 39.845 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:32 min
[INFO] Finished at: 2018-09-21T18:55:25Z
[INFO] Final Memory: 70M/666M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project brooklyn-rest-client: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/build/java/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-rest-client
Build step 'Execute shell' marked build as failure
Recording test results
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports...
Processing '/x1/jenkins/jenkins-home/jobs/brooklyn-client-master-docker/builds/19/testng/testng-results.xml'
TestNG Reports Processing: FINISH
Build failed in Jenkins: brooklyn-client-master-docker #18
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/18/display/redirect>
------------------------------------------
[...truncated 784.41 KB...]
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-20 19:08:28,918 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testCatalogCreate()
2018-09-20 19:08:28,920 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testCatalogCreate() finished in 1 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-20 19:08:28,921 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testLocationApi()
2018-09-20 19:08:28,922 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testLocationApi() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-20 19:08:28,924 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-20 19:08:28,925 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() finished in 1 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-20 19:08:28,926 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-20 19:08:28,932 INFO - Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@6f8f8a80
ERROR: Unable to create cache directory: /var/maven/.brooklyn/osgi/cache/HQSnLyKd
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:193)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
2018-09-20 19:08:28,969 INFO - TESTNG FAILED CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-20 19:08:28,971 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
2018-09-20 19:08:29,033 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps() finished in 61 ms
2018-09-20 19:08:29,034 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
2018-09-20 19:08:29,034 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull() finished in 1 ms
2018-09-20 19:08:29,035 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
2018-09-20 19:08:29,036 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull() finished in 0 ms
2018-09-20 19:08:29,036 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
2018-09-20 19:08:29,043 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError() finished in 7 ms
2018-09-20 19:08:29,044 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
2018-09-20 19:08:29,047 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson() finished in 2 ms
2018-09-20 19:08:29,047 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
2018-09-20 19:08:29,049 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage() finished in 2 ms
2018-09-20 19:08:29,050 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
2018-09-20 19:08:29,052 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse() finished in 2 ms
2018-09-20 19:08:29,053 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
2018-09-20 19:08:29,055 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse() finished in 2 ms
2018-09-20 19:08:29,056 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
2018-09-20 19:08:29,058 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields() finished in 2 ms
2018-09-20 19:08:29,059 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
2018-09-20 19:08:29,061 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError() finished in 2 ms
2018-09-20 19:08:29,062 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
2018-09-20 19:08:29,065 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError() finished in 3 ms
2018-09-20 19:08:29,065 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
2018-09-20 19:08:29,066 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError() finished in 1 ms
2018-09-20 19:08:29,066 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
2018-09-20 19:08:29,067 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError() finished in 1 ms
2018-09-20 19:08:29,112 INFO - TESTNG
===============================================
Surefire test
Tests run: 25, Failures: 0, Skips: 8
Configuration Failures: 2, Skips: 0
===============================================
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8, Time elapsed: 4.014 sec <<< FAILURE! - in TestSuite
setUp(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.838 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
tearDown(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.046 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Results :
Failed tests:
BrooklynApiRestClientTest.setUp:77->getManagementContext:66 » PropagatedRuntime
BrooklynApiRestClientTest.tearDown:87->getManagementContext:66 » PropagatedRuntime
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Client .................................... SUCCESS [ 4.853 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 39.785 s]
[INFO] Brooklyn REST java Client .......................... FAILURE [01:18 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:08 min
[INFO] Finished at: 2018-09-20T19:08:29Z
[INFO] Final Memory: 71M/758M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project brooklyn-rest-client: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/build/java/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-rest-client
Build step 'Execute shell' marked build as failure
Recording test results
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports...
Processing '/x1/jenkins/jenkins-home/jobs/brooklyn-client-master-docker/builds/18/testng/testng-results.xml'
TestNG Reports Processing: FINISH
Build failed in Jenkins: brooklyn-client-master-docker #17
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/17/display/redirect>
------------------------------------------
[...truncated 249.58 KB...]
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-19 18:47:37,875 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-19 18:47:37,877 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-19 18:47:37,878 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-19 18:47:37,884 INFO - Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@4d722ac9
ERROR: Unable to create cache directory: /var/maven/.brooklyn/osgi/cache/IL61WKMH
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:193)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
2018-09-19 18:47:37,916 INFO - TESTNG FAILED CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-19 18:47:37,917 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-19 18:47:37,924 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 7 ms
2018-09-19 18:47:37,925 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint()
[GC (Metadata GC Threshold) 66656K->10640K(753664K), 0.0183660 secs]
[Full GC (Metadata GC Threshold) 10640K->10251K(753664K), 0.0485724 secs]
Sep 19, 2018 6:47:38 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: POST /v1/applications HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-19 18:47:39,001 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint() finished in 1077 ms
2018-09-19 18:47:39,002 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-19 18:47:39,003 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-19 18:47:39,004 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-19 18:47:39,005 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-19 18:47:39,006 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning()
2018-09-19 18:47:39,036 INFO - Waiting 5m from Wed Sep 19 18:47:39 UTC 2018 for application appId to be RUNNING
Sep 19, 2018 6:47:39 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-19 18:47:39,089 INFO - Application appId is RUNNING
2018-09-19 18:47:39,090 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning() finished in 83 ms
2018-09-19 18:47:39,090 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-19 18:47:39,091 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-19 18:47:39,092 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-19 18:47:39,092 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 0 ms
2018-09-19 18:47:39,092 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError()
2018-09-19 18:47:39,103 INFO - Waiting 5m from Wed Sep 19 18:47:39 UTC 2018 for application appId to be RUNNING
Sep 19, 2018 6:47:39 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-19 18:47:39,119 WARN - Application is not RUNNING within 5m. Status is: ERROR
2018-09-19 18:47:39,119 ERROR - Application is not running. Is: error
Sep 19, 2018 6:47:39 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-19 18:47:39,171 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError() finished in 79 ms
2018-09-19 18:47:39,172 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-19 18:47:39,173 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-19 18:47:39,173 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-19 18:47:39,174 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-19 18:47:39,174 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown()
2018-09-19 18:47:39,180 INFO - Waiting 5m from Wed Sep 19 18:47:39 UTC 2018 for application appId to be RUNNING
Sep 19, 2018 6:47:39 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-19 18:47:39,193 WARN - Application is not RUNNING within 5m. Status is: UNKNOWN
2018-09-19 18:47:39,193 ERROR - Application is not running. Is: unknown
Sep 19, 2018 6:47:39 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-19 18:47:39,239 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown() finished in 65 ms
2018-09-19 18:47:39,240 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-19 18:47:39,240 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-19 18:47:39,243 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
2018-09-19 18:47:39,299 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps() finished in 57 ms
2018-09-19 18:47:39,300 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
2018-09-19 18:47:39,300 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull() finished in 0 ms
2018-09-19 18:47:39,300 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
2018-09-19 18:47:39,301 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull() finished in 1 ms
2018-09-19 18:47:39,301 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
2018-09-19 18:47:39,307 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError() finished in 6 ms
2018-09-19 18:47:39,307 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
2018-09-19 18:47:39,310 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson() finished in 3 ms
2018-09-19 18:47:39,310 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
2018-09-19 18:47:39,312 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage() finished in 2 ms
2018-09-19 18:47:39,312 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
2018-09-19 18:47:39,315 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse() finished in 2 ms
2018-09-19 18:47:39,315 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
2018-09-19 18:47:39,317 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse() finished in 2 ms
2018-09-19 18:47:39,317 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
2018-09-19 18:47:39,319 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields() finished in 2 ms
2018-09-19 18:47:39,320 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
2018-09-19 18:47:39,322 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError() finished in 2 ms
2018-09-19 18:47:39,323 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
2018-09-19 18:47:39,325 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError() finished in 2 ms
2018-09-19 18:47:39,326 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
2018-09-19 18:47:39,326 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError() finished in 0 ms
2018-09-19 18:47:39,327 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
2018-09-19 18:47:39,327 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError() finished in 0 ms
2018-09-19 18:47:39,381 INFO - TESTNG
===============================================
Surefire test
Tests run: 25, Failures: 0, Skips: 8
Configuration Failures: 2, Skips: 0
===============================================
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8, Time elapsed: 3.421 sec <<< FAILURE! - in TestSuite
setUp(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 1.698 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
tearDown(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.042 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Results :
Failed tests:
BrooklynApiRestClientTest.setUp:77->getManagementContext:66 » PropagatedRuntime
BrooklynApiRestClientTest.tearDown:87->getManagementContext:66 » PropagatedRuntime
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Client .................................... SUCCESS [ 3.315 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 32.448 s]
[INFO] Brooklyn REST java Client .......................... FAILURE [ 35.483 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:15 min
[INFO] Finished at: 2018-09-19T18:47:39Z
[INFO] Final Memory: 71M/657M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project brooklyn-rest-client: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/build/java/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-rest-client
Build step 'Execute shell' marked build as failure
Recording test results
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports...
Processing '/x1/jenkins/jenkins-home/jobs/brooklyn-client-master-docker/builds/17/testng/testng-results.xml'
TestNG Reports Processing: FINISH
Build failed in Jenkins: brooklyn-client-master-docker #16
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/16/display/redirect>
------------------------------------------
[...truncated 242.38 KB...]
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-18 18:55:30,826 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-18 18:55:30,829 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() finished in 1 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-18 18:55:30,831 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-18 18:55:30,838 INFO - Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@4d722ac9
ERROR: Unable to create cache directory: /var/maven/.brooklyn/osgi/cache/G9UW17J1
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:193)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
2018-09-18 18:55:30,879 INFO - TESTNG FAILED CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:697)
at org.apache.felix.framework.Felix.init(Felix.java:626)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:692)
... 39 more
2018-09-18 18:55:30,883 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
2018-09-18 18:55:30,959 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps() finished in 77 ms
2018-09-18 18:55:30,961 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
2018-09-18 18:55:30,962 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull() finished in 1 ms
2018-09-18 18:55:30,963 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
2018-09-18 18:55:30,964 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull() finished in 0 ms
2018-09-18 18:55:30,965 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
2018-09-18 18:55:31,021 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError() finished in 55 ms
2018-09-18 18:55:31,022 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
2018-09-18 18:55:31,025 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson() finished in 4 ms
2018-09-18 18:55:31,026 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
2018-09-18 18:55:31,035 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage() finished in 9 ms
2018-09-18 18:55:31,036 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
2018-09-18 18:55:31,039 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse() finished in 3 ms
2018-09-18 18:55:31,040 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
2018-09-18 18:55:31,044 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse() finished in 4 ms
2018-09-18 18:55:31,045 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
2018-09-18 18:55:31,049 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields() finished in 4 ms
2018-09-18 18:55:31,050 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
2018-09-18 18:55:31,053 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError() finished in 3 ms
2018-09-18 18:55:31,054 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
2018-09-18 18:55:31,058 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError() finished in 4 ms
2018-09-18 18:55:31,059 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
2018-09-18 18:55:31,060 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError() finished in 0 ms
2018-09-18 18:55:31,060 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
2018-09-18 18:55:31,062 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError() finished in 1 ms
2018-09-18 18:55:31,064 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-18 18:55:31,074 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 10 ms
2018-09-18 18:55:31,075 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint()
[GC (Metadata GC Threshold) 66749K->10804K(753664K), 0.0207341 secs]
[Full GC (Metadata GC Threshold) 10804K->10477K(753664K), 0.0833947 secs]
Sep 18, 2018 6:55:31 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: POST /v1/applications HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-18 18:55:32,279 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint() finished in 1203 ms
2018-09-18 18:55:32,280 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-18 18:55:32,281 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 2 ms
2018-09-18 18:55:32,282 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-18 18:55:32,283 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-18 18:55:32,283 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning()
2018-09-18 18:55:32,324 INFO - Waiting 5m from Tue Sep 18 18:55:32 UTC 2018 for application appId to be RUNNING
Sep 18, 2018 6:55:32 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-18 18:55:32,360 INFO - Application appId is RUNNING
2018-09-18 18:55:32,360 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning() finished in 77 ms
2018-09-18 18:55:32,361 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-18 18:55:32,361 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 0 ms
2018-09-18 18:55:32,362 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-18 18:55:32,363 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-18 18:55:32,363 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError()
2018-09-18 18:55:32,370 INFO - Waiting 5m from Tue Sep 18 18:55:32 UTC 2018 for application appId to be RUNNING
Sep 18, 2018 6:55:32 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-18 18:55:32,384 WARN - Application is not RUNNING within 5m. Status is: ERROR
2018-09-18 18:55:32,384 ERROR - Application is not running. Is: error
Sep 18, 2018 6:55:32 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-18 18:55:32,434 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError() finished in 70 ms
2018-09-18 18:55:32,434 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-18 18:55:32,435 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-18 18:55:32,436 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-18 18:55:32,436 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 0 ms
2018-09-18 18:55:32,437 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown()
2018-09-18 18:55:32,445 INFO - Waiting 5m from Tue Sep 18 18:55:32 UTC 2018 for application appId to be RUNNING
Sep 18, 2018 6:55:32 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-18 18:55:32,461 WARN - Application is not RUNNING within 5m. Status is: UNKNOWN
2018-09-18 18:55:32,462 ERROR - Application is not running. Is: unknown
Sep 18, 2018 6:55:32 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-18 18:55:32,510 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown() finished in 73 ms
2018-09-18 18:55:32,511 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-18 18:55:32,511 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-18 18:55:32,576 INFO - TESTNG
===============================================
Surefire test
Tests run: 25, Failures: 0, Skips: 8
Configuration Failures: 2, Skips: 0
===============================================
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8, Time elapsed: 4.435 sec <<< FAILURE! - in TestSuite
setUp(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 2.45 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
tearDown(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.053 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Results :
Failed tests:
BrooklynApiRestClientTest.setUp:77->getManagementContext:66 » PropagatedRuntime
BrooklynApiRestClientTest.tearDown:87->getManagementContext:66 » PropagatedRuntime
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Client .................................... SUCCESS [ 3.932 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 40.749 s]
[INFO] Brooklyn REST java Client .......................... FAILURE [ 35.487 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:26 min
[INFO] Finished at: 2018-09-18T18:55:33Z
[INFO] Final Memory: 70M/662M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project brooklyn-rest-client: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/build/java/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-rest-client
Build step 'Execute shell' marked build as failure
Recording test results
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports...
Processing '/x1/jenkins/jenkins-home/jobs/brooklyn-client-master-docker/builds/16/testng/testng-results.xml'
TestNG Reports Processing: FINISH
Build failed in Jenkins: brooklyn-client-master-docker #15
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/15/display/redirect>
------------------------------------------
[...truncated 289.55 KB...]
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:696)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
... 39 more
2018-09-17 18:48:04,525 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-17 18:48:04,526 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:696)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
... 39 more
2018-09-17 18:48:04,527 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-17 18:48:04,532 INFO - Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@522a32b1
ERROR: Unable to create cache directory: /var/maven/.brooklyn/osgi/cache/s8nZttum
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:193)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
2018-09-17 18:48:04,565 INFO - TESTNG FAILED CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:696)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
... 39 more
2018-09-17 18:48:04,567 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-17 18:48:04,575 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 8 ms
2018-09-17 18:48:04,575 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint()
[GC (Metadata GC Threshold) 59603K->9922K(753664K), 0.0170124 secs]
[Full GC (Metadata GC Threshold) 9922K->9620K(753664K), 0.0629175 secs]
Sep 17, 2018 6:48:05 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: POST /v1/applications HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-17 18:48:05,991 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint() finished in 1416 ms
2018-09-17 18:48:05,992 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-17 18:48:05,993 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-17 18:48:05,994 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-17 18:48:05,995 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-17 18:48:05,995 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning()
2018-09-17 18:48:06,028 INFO - Waiting 5m from Mon Sep 17 18:48:06 UTC 2018 for application appId to be RUNNING
Sep 17, 2018 6:48:06 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-17 18:48:06,077 INFO - Application appId is RUNNING
2018-09-17 18:48:06,078 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning() finished in 83 ms
2018-09-17 18:48:06,079 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-17 18:48:06,080 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-17 18:48:06,081 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-17 18:48:06,082 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-17 18:48:06,082 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError()
2018-09-17 18:48:06,090 INFO - Waiting 5m from Mon Sep 17 18:48:06 UTC 2018 for application appId to be RUNNING
Sep 17, 2018 6:48:06 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-17 18:48:06,112 WARN - Application is not RUNNING within 5m. Status is: ERROR
2018-09-17 18:48:06,112 ERROR - Application is not running. Is: error
Sep 17, 2018 6:48:06 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-17 18:48:06,165 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError() finished in 82 ms
2018-09-17 18:48:06,166 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-17 18:48:06,166 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-17 18:48:06,168 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-17 18:48:06,168 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-17 18:48:06,168 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown()
2018-09-17 18:48:06,177 INFO - Waiting 5m from Mon Sep 17 18:48:06 UTC 2018 for application appId to be RUNNING
Sep 17, 2018 6:48:06 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-17 18:48:06,192 WARN - Application is not RUNNING within 5m. Status is: UNKNOWN
2018-09-17 18:48:06,192 ERROR - Application is not running. Is: unknown
Sep 17, 2018 6:48:06 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-17 18:48:06,241 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown() finished in 72 ms
2018-09-17 18:48:06,242 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-17 18:48:06,243 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-17 18:48:06,247 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
2018-09-17 18:48:06,332 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps() finished in 85 ms
2018-09-17 18:48:06,333 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
2018-09-17 18:48:06,334 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull() finished in 1 ms
2018-09-17 18:48:06,334 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
2018-09-17 18:48:06,335 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull() finished in 1 ms
2018-09-17 18:48:06,335 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
2018-09-17 18:48:06,342 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError() finished in 7 ms
2018-09-17 18:48:06,343 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
2018-09-17 18:48:06,345 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson() finished in 2 ms
2018-09-17 18:48:06,346 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
2018-09-17 18:48:06,348 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage() finished in 2 ms
2018-09-17 18:48:06,349 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
2018-09-17 18:48:06,352 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse() finished in 3 ms
2018-09-17 18:48:06,352 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
2018-09-17 18:48:06,354 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse() finished in 2 ms
2018-09-17 18:48:06,355 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
2018-09-17 18:48:06,357 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields() finished in 2 ms
2018-09-17 18:48:06,357 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
2018-09-17 18:48:06,359 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError() finished in 2 ms
2018-09-17 18:48:06,360 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
2018-09-17 18:48:06,362 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError() finished in 2 ms
2018-09-17 18:48:06,363 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
2018-09-17 18:48:06,364 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError() finished in 1 ms
2018-09-17 18:48:06,365 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
2018-09-17 18:48:06,366 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError() finished in 1 ms
2018-09-17 18:48:06,410 INFO - TESTNG
===============================================
Surefire test
Tests run: 25, Failures: 0, Skips: 8
Configuration Failures: 2, Skips: 0
===============================================
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8, Time elapsed: 4.425 sec <<< FAILURE! - in TestSuite
setUp(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 2.325 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
tearDown(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.041 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Results :
Failed tests:
BrooklynApiRestClientTest.setUp:77->getManagementContext:66 » PropagatedRuntime
BrooklynApiRestClientTest.tearDown:87->getManagementContext:66 » PropagatedRuntime
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Client .................................... SUCCESS [ 5.371 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 40.011 s]
[INFO] Brooklyn REST java Client .......................... FAILURE [ 45.532 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:36 min
[INFO] Finished at: 2018-09-17T18:48:06Z
[INFO] Final Memory: 71M/776M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project brooklyn-rest-client: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/build/java/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-rest-client
Build step 'Execute shell' marked build as failure
Recording test results
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports...
Processing '/x1/jenkins/jenkins-home/jobs/brooklyn-client-master-docker/builds/15/testng/testng-results.xml'
TestNG Reports Processing: FINISH
Build failed in Jenkins: brooklyn-client-master-docker #14
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/14/display/redirect>
------------------------------------------
[...truncated 32.29 KB...]
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:696)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
... 39 more
2018-09-16 18:45:10,327 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-16 18:45:10,329 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() finished in 1 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:696)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
... 39 more
2018-09-16 18:45:10,330 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-16 18:45:10,335 INFO - Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@522a32b1
ERROR: Unable to create cache directory: /var/maven/.brooklyn/osgi/cache/Ep1ecbSw
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:193)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
2018-09-16 18:45:10,371 INFO - TESTNG FAILED CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:696)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
... 39 more
2018-09-16 18:45:10,376 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-16 18:45:10,384 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 9 ms
2018-09-16 18:45:10,385 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint()
[GC (Metadata GC Threshold) 59505K->9974K(753664K), 0.0227723 secs]
[Full GC (Metadata GC Threshold) 9974K->9619K(753664K), 0.0690480 secs]
Sep 16, 2018 6:45:11 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: POST /v1/applications HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 18:45:11,644 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint() finished in 1259 ms
2018-09-16 18:45:11,645 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-16 18:45:11,646 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-16 18:45:11,647 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-16 18:45:11,647 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 0 ms
2018-09-16 18:45:11,648 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning()
2018-09-16 18:45:11,686 INFO - Waiting 5m from Sun Sep 16 18:45:11 UTC 2018 for application appId to be RUNNING
Sep 16, 2018 6:45:11 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 18:45:11,719 INFO - Application appId is RUNNING
2018-09-16 18:45:11,720 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning() finished in 73 ms
2018-09-16 18:45:11,720 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-16 18:45:11,721 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-16 18:45:11,722 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-16 18:45:11,722 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 0 ms
2018-09-16 18:45:11,722 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError()
2018-09-16 18:45:11,728 INFO - Waiting 5m from Sun Sep 16 18:45:11 UTC 2018 for application appId to be RUNNING
Sep 16, 2018 6:45:11 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 18:45:11,740 WARN - Application is not RUNNING within 5m. Status is: ERROR
2018-09-16 18:45:11,740 ERROR - Application is not running. Is: error
Sep 16, 2018 6:45:11 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 18:45:11,789 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError() finished in 66 ms
2018-09-16 18:45:11,790 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-16 18:45:11,791 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-16 18:45:11,793 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-16 18:45:11,793 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-16 18:45:11,793 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown()
2018-09-16 18:45:11,798 INFO - Waiting 5m from Sun Sep 16 18:45:11 UTC 2018 for application appId to be RUNNING
Sep 16, 2018 6:45:11 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 18:45:11,811 WARN - Application is not RUNNING within 5m. Status is: UNKNOWN
2018-09-16 18:45:11,811 ERROR - Application is not running. Is: unknown
Sep 16, 2018 6:45:11 PM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 18:45:11,860 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown() finished in 67 ms
2018-09-16 18:45:11,861 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-16 18:45:11,862 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-16 18:45:11,863 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
2018-09-16 18:45:11,918 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps() finished in 55 ms
2018-09-16 18:45:11,920 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
2018-09-16 18:45:11,920 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull() finished in 0 ms
2018-09-16 18:45:11,921 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
2018-09-16 18:45:11,921 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull() finished in 0 ms
2018-09-16 18:45:11,922 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
2018-09-16 18:45:11,928 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError() finished in 6 ms
2018-09-16 18:45:11,928 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
2018-09-16 18:45:11,931 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson() finished in 2 ms
2018-09-16 18:45:11,931 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
2018-09-16 18:45:11,932 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage() finished in 1 ms
2018-09-16 18:45:11,933 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
2018-09-16 18:45:11,935 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse() finished in 2 ms
2018-09-16 18:45:11,935 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
2018-09-16 18:45:11,937 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse() finished in 2 ms
2018-09-16 18:45:11,937 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
2018-09-16 18:45:11,939 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields() finished in 2 ms
2018-09-16 18:45:11,939 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
2018-09-16 18:45:11,941 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError() finished in 2 ms
2018-09-16 18:45:11,942 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
2018-09-16 18:45:11,944 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError() finished in 2 ms
2018-09-16 18:45:11,945 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
2018-09-16 18:45:11,945 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError() finished in 0 ms
2018-09-16 18:45:11,946 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
2018-09-16 18:45:11,947 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError() finished in 1 ms
2018-09-16 18:45:11,990 INFO - TESTNG
===============================================
Surefire test
Tests run: 25, Failures: 0, Skips: 8
Configuration Failures: 2, Skips: 0
===============================================
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8, Time elapsed: 4.16 sec <<< FAILURE! - in TestSuite
setUp(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 2.244 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
tearDown(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.045 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Results :
Failed tests:
BrooklynApiRestClientTest.setUp:77->getManagementContext:66 » PropagatedRuntime
BrooklynApiRestClientTest.tearDown:87->getManagementContext:66 » PropagatedRuntime
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Client .................................... SUCCESS [ 3.764 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 38.017 s]
[INFO] Brooklyn REST java Client .......................... FAILURE [ 15.104 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 58.422 s
[INFO] Finished at: 2018-09-16T18:45:12Z
[INFO] Final Memory: 66M/648M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project brooklyn-rest-client: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/build/java/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-rest-client
Build step 'Execute shell' marked build as failure
Recording test results
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports...
Processing '/x1/jenkins/jenkins-home/jobs/brooklyn-client-master-docker/builds/14/testng/testng-results.xml'
TestNG Reports Processing: FINISH
Build failed in Jenkins: brooklyn-client-master-docker #13
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/brooklyn-client-master-docker/13/display/redirect>
------------------------------------------
[...truncated 207.55 KB...]
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:696)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
... 39 more
2018-09-16 09:44:53,704 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2018-09-16 09:44:53,705 INFO - TESTNG SKIPPED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:696)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
... 39 more
2018-09-16 09:44:53,706 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2018-09-16 09:44:53,711 INFO - Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@56aaaecd
ERROR: Unable to create cache directory: /var/maven/.brooklyn/osgi/cache/hBmTxFLi
ERROR: Error creating bundle cache.
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:193)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
2018-09-16 09:44:53,744 INFO - TESTNG FAILED CONFIGURATION: "Surefire test" - @AfterClass org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished in 0 ms
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: BundleException: Error creating bundle cache.
at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:112)
at org.apache.brooklyn.rt.felix.EmbeddedFramework.getFramework(EmbeddedFramework.java:30)
at org.apache.brooklyn.util.core.osgi.Osgis.getFramework(Osgis.java:301)
at org.apache.brooklyn.core.mgmt.ha.OsgiManager.start(OsgiManager.java:273)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:184)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:163)
at org.apache.brooklyn.core.mgmt.internal.LocalManagementContext.<init>(LocalManagementContext.java:149)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:696)
at org.apache.felix.framework.Felix.init(Felix.java:625)
at org.apache.brooklyn.rt.felix.EmbeddedFelixFramework.newFrameworkStarted(EmbeddedFelixFramework.java:107)
... 37 more
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:131)
at org.apache.felix.framework.Felix.init(Felix.java:691)
... 39 more
2018-09-16 09:44:53,747 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-16 09:44:53,767 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 19 ms
2018-09-16 09:44:53,767 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint()
[GC (Metadata GC Threshold) 59870K->10046K(753664K), 0.0206940 secs]
[Full GC (Metadata GC Threshold) 10046K->9620K(753664K), 0.0552697 secs]
Sep 16, 2018 9:44:54 AM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: POST /v1/applications HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 09:44:55,110 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint() finished in 1343 ms
2018-09-16 09:44:55,111 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-16 09:44:55,112 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 1 ms
2018-09-16 09:44:55,114 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-16 09:44:55,115 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-16 09:44:55,116 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning()
2018-09-16 09:44:55,158 INFO - Waiting 5m from Sun Sep 16 09:44:55 UTC 2018 for application appId to be RUNNING
Sep 16, 2018 9:44:55 AM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 09:44:55,202 INFO - Application appId is RUNNING
2018-09-16 09:44:55,202 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning() finished in 86 ms
2018-09-16 09:44:55,203 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-16 09:44:55,203 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 0 ms
2018-09-16 09:44:55,204 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-16 09:44:55,205 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 1 ms
2018-09-16 09:44:55,205 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError()
2018-09-16 09:44:55,214 INFO - Waiting 5m from Sun Sep 16 09:44:55 UTC 2018 for application appId to be RUNNING
Sep 16, 2018 9:44:55 AM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 09:44:55,230 WARN - Application is not RUNNING within 5m. Status is: ERROR
2018-09-16 09:44:55,230 ERROR - Application is not running. Is: error
Sep 16, 2018 9:44:55 AM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 09:44:55,281 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError() finished in 75 ms
2018-09-16 09:44:55,283 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-16 09:44:55,284 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 2 ms
2018-09-16 09:44:55,286 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2018-09-16 09:44:55,287 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished in 2 ms
2018-09-16 09:44:55,287 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown()
2018-09-16 09:44:55,298 INFO - Waiting 5m from Sun Sep 16 09:44:55 UTC 2018 for application appId to be RUNNING
Sep 16, 2018 9:44:55 AM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 09:44:55,319 WARN - Application is not RUNNING within 5m. Status is: UNKNOWN
2018-09-16 09:44:55,320 ERROR - Application is not running. Is: unknown
Sep 16, 2018 9:44:55 AM com.google.mockwebserver.MockWebServer$2 processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: HTTP/1.1 200 OK
2018-09-16 09:44:55,369 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown() finished in 81 ms
2018-09-16 09:44:55,370 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2018-09-16 09:44:55,370 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished in 0 ms
2018-09-16 09:44:55,372 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
2018-09-16 09:44:55,452 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps() finished in 79 ms
2018-09-16 09:44:55,452 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
2018-09-16 09:44:55,453 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull() finished in 1 ms
2018-09-16 09:44:55,453 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
2018-09-16 09:44:55,454 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull() finished in 0 ms
2018-09-16 09:44:55,454 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
2018-09-16 09:44:55,469 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError() finished in 15 ms
2018-09-16 09:44:55,470 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
2018-09-16 09:44:55,473 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson() finished in 3 ms
2018-09-16 09:44:55,474 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
2018-09-16 09:44:55,476 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage() finished in 2 ms
2018-09-16 09:44:55,477 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
2018-09-16 09:44:55,479 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse() finished in 2 ms
2018-09-16 09:44:55,479 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
2018-09-16 09:44:55,481 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse() finished in 2 ms
2018-09-16 09:44:55,482 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
2018-09-16 09:44:55,484 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields() finished in 2 ms
2018-09-16 09:44:55,485 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
2018-09-16 09:44:55,487 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError() finished in 1 ms
2018-09-16 09:44:55,487 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
2018-09-16 09:44:55,489 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError() finished in 2 ms
2018-09-16 09:44:55,489 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
2018-09-16 09:44:55,490 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError() finished in 1 ms
2018-09-16 09:44:55,490 INFO - TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
2018-09-16 09:44:55,491 INFO - TESTNG PASSED: "Surefire test" - org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError() finished in 1 ms
2018-09-16 09:44:55,544 INFO - TESTNG
===============================================
Surefire test
Tests run: 25, Failures: 0, Skips: 8
Configuration Failures: 2, Skips: 0
===============================================
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8, Time elapsed: 4.573 sec <<< FAILURE! - in TestSuite
setUp(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 2.532 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.setUp(BrooklynApiRestClientTest.java:77)
tearDown(org.apache.brooklyn.rest.client.BrooklynApiRestClientTest) Time elapsed: 0.038 sec <<< FAILURE!
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.getManagementContext(BrooklynApiRestClientTest.java:66)
at org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown(BrooklynApiRestClientTest.java:87)
Results :
Failed tests:
BrooklynApiRestClientTest.setUp:77->getManagementContext:66 » PropagatedRuntime
BrooklynApiRestClientTest.tearDown:87->getManagementContext:66 » PropagatedRuntime
Tests run: 27, Failures: 2, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Client .................................... SUCCESS [ 6.896 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 40.342 s]
[INFO] Brooklyn REST java Client .......................... FAILURE [ 36.182 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:29 min
[INFO] Finished at: 2018-09-16T09:44:56Z
[INFO] Final Memory: 70M/708M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project brooklyn-rest-client: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/build/java/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-rest-client
Build step 'Execute shell' marked build as failure
Recording test results
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports...
Processing '/x1/jenkins/jenkins-home/jobs/brooklyn-client-master-docker/builds/13/testng/testng-results.xml'
TestNG Reports Processing: FINISH