See 
<https://ci-builds.apache.org/job/Brooklyn/job/brooklyn-client/job/master/15/display/redirect>

Changes:


------------------------------------------
[...truncated 39150 lines...]
        at 
org.apache.brooklyn.core.typereg.RegisteredTypeKindVisitor.visit(RegisteredTypeKindVisitor.java:32)
        at 
org.apache.brooklyn.core.typereg.AbstractTypePlanTransformer.create(AbstractTypePlanTransformer.java:145)
        at 
org.apache.brooklyn.core.typereg.TypePlanTransformers.transform(TypePlanTransformers.java:110)
        ... 68 common frames omitted
2021-08-06 19:12:49,667 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testCatalogCreateFromYamlDeprecated()
 finished in 207 ms
2021-08-06 19:12:49,668 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testLocationApi()
2021-08-06 19:12:49,669 INFO  - Testing location API
2021-08-06 19:12:49,687 INFO  - locations located are: {}
2021-08-06 19:12:49,688 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testLocationApi() 
finished in 19 ms
2021-08-06 19:12:49,688 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl()
2021-08-06 19:12:49,709 WARN  - Unsupported session impl in 
org.apache.cxf.jaxrs.impl.tl.ThreadLocalHttpServletRequest@1bdda624[/v1/server/version@null]
2021-08-06 19:12:49,710 WARN  - Unsupported session impl in 
org.apache.cxf.jaxrs.impl.tl.ThreadLocalHttpServletRequest@5fe3a0dc[/v1/server/version@null]
2021-08-06 19:12:49,711 WARN  - Did not find handler in bundle 
org.apache.cxf.cxf-rt-transports-http; not using server-wide handler; check 
whether bundle is installed!
2021-08-06 19:12:49,716 WARN  - Unsupported session impl in 
org.apache.cxf.jaxrs.impl.tl.ThreadLocalHttpServletRequest@1bdda624[/v1/server/version@null]
2021-08-06 19:12:49,716 WARN  - Did not find handler in bundle 
org.apache.cxf.cxf-rt-transports-http; not using server-wide handler; check 
whether bundle is installed!
[GC (Allocation Failure)  250340K->49345K(754688K), 0.0084928 secs]
2021-08-06 19:12:50,284 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.testNoV1InUrl() 
finished in 596 ms
2021-08-06 19:12:50,286 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @AfterClass 
org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown()
2021-08-06 19:12:50,288 INFO  kkLHvZMm-[lyujlseepb] Stopping application 
BasicApplicationImpl{id=lyujlseepb, name=test-1234}
2021-08-06 19:12:50,299 INFO  kkLHvZMm-[lyujlseepb] Stopped application 
BasicApplicationImpl{id=lyujlseepb, name=test-1234}
2021-08-06 19:12:50,472 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@AfterClass 
org.apache.brooklyn.rest.client.BrooklynApiRestClientTest.tearDown() finished 
in 187 ms
2021-08-06 19:12:50,475 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
2021-08-06 19:12:50,521 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsEmptyMaps()
 finished in 46 ms
2021-08-06 19:12:50,522 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
2021-08-06 19:12:50,522 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityAllowsNull()
 finished in 0 ms
2021-08-06 19:12:50,523 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
2021-08-06 19:12:50,523 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityDisallowsNull()
 finished in 0 ms
2021-08-06 19:12:50,524 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
2021-08-06 19:12:50,524 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsIfLooksLikeApiError()
 finished in 0 ms
2021-08-06 19:12:50,525 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
2021-08-06 19:12:50,527 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsOnNonJson()
 finished in 2 ms
2021-08-06 19:12:50,527 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
2021-08-06 19:12:50,528 WARN  - Detail of unexpected error: 
java.lang.ClassCastException: Cannot cast java.lang.String to 
org.apache.brooklyn.rest.domain.TaskSummary
java.lang.ClassCastException: Cannot cast java.lang.String to 
org.apache.brooklyn.rest.domain.TaskSummary
        at java.lang.Class.cast(Class.java:3369)
        at 
org.apache.brooklyn.rest.client.BrooklynApi.getEntity(BrooklynApi.java:359)
        at 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage(BrooklynApiGetEntityTest.java:91)
        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:132)
        at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
        at 
org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
        at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
        at 
org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
        at 
org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
        at 
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
        at java.util.ArrayList.forEach(ArrayList.java:1257)
        at org.testng.TestRunner.privateRun(TestRunner.java:764)
        at org.testng.TestRunner.run(TestRunner.java:585)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
        at org.testng.SuiteRunner.run(SuiteRunner.java:286)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
        at org.testng.TestNG.runSuites(TestNG.java:1069)
        at org.testng.TestNG.run(TestNG.java:1037)
        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)
2021-08-06 19:12:50,530 INFO  - TESTNG FAILED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage()
 finished in 2 ms
java.lang.AssertionError: Failed containsLiteral("Foo"): Cannot cast 
java.lang.String to org.apache.brooklyn.rest.domain.TaskSummary
        at org.apache.brooklyn.test.Asserts.fail(Asserts.java:752)
        at org.apache.brooklyn.test.Asserts.assertThat(Asserts.java:1159)
        at org.apache.brooklyn.test.Asserts.assertThat(Asserts.java:1155)
        at 
org.apache.brooklyn.test.Asserts.assertStringContains(Asserts.java:1165)
        at 
org.apache.brooklyn.test.Asserts.expectedFailureContains(Asserts.java:1295)
        at 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage(BrooklynApiGetEntityTest.java:96)
        at java.util.ArrayList.forEach(ArrayList.java:1257)
2021-08-06 19:12:50,537 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
2021-08-06 19:12:50,538 INFO  - TESTNG FAILED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse()
 finished in 0 ms
java.lang.ClassCastException: Cannot cast java.lang.String to 
org.apache.brooklyn.rest.domain.TaskSummary
        at java.lang.Class.cast(Class.java:3369)
        at 
org.apache.brooklyn.rest.client.BrooklynApi.getEntity(BrooklynApi.java:359)
        at 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse(BrooklynApiGetEntityTest.java:76)
        at java.util.ArrayList.forEach(ArrayList.java:1257)
2021-08-06 19:12:50,538 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
2021-08-06 19:12:50,544 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBuiltResponse()
 finished in 5 ms
2021-08-06 19:12:50,544 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
2021-08-06 19:12:50,547 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresExtraFields()
 finished in 3 ms
2021-08-06 19:12:50,547 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
2021-08-06 19:12:50,548 INFO  - TESTNG FAILED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError()
 finished in 1 ms
java.lang.ClassCastException: Cannot cast java.lang.String to 
org.apache.brooklyn.rest.domain.ApiError
        at java.lang.Class.cast(Class.java:3369)
        at 
org.apache.brooklyn.rest.client.BrooklynApi.getEntity(BrooklynApi.java:359)
        at 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError(BrooklynApiGetEntityTest.java:102)
        at java.util.ArrayList.forEach(ArrayList.java:1257)
2021-08-06 19:12:50,549 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
2021-08-06 19:12:50,550 INFO  - TESTNG FAILED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError()
 finished in 1 ms
java.lang.ClassCastException: Cannot cast java.lang.String to 
org.apache.brooklyn.rest.domain.TaskSummary
        at java.lang.Class.cast(Class.java:3369)
        at 
org.apache.brooklyn.rest.client.BrooklynApi.getEntity(BrooklynApi.java:359)
        at 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError(BrooklynApiGetEntityTest.java:116)
        at java.util.ArrayList.forEach(ArrayList.java:1257)
2021-08-06 19:12:50,551 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
2021-08-06 19:12:50,552 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntityFailsOnAnyError()
 finished in 1 ms
2021-08-06 19:12:50,552 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
2021-08-06 19:12:50,553 INFO  - TESTNG FAILED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError()
 finished in 1 ms
java.lang.ClassCastException: Cannot cast java.lang.String to 
org.apache.brooklyn.rest.domain.ApiError
        at java.lang.Class.cast(Class.java:3369)
        at 
org.apache.brooklyn.rest.client.BrooklynApi.getEntity(BrooklynApi.java:359)
        at 
org.apache.brooklyn.rest.client.BrooklynApi.getEntityOnSuccess(BrooklynApi.java:365)
        at 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError(BrooklynApiGetEntityTest.java:123)
        at java.util.ArrayList.forEach(ArrayList.java:1257)
2021-08-06 19:12:50,555 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2021-08-06 19:12:50,563 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished 
in 7 ms
2021-08-06 19:12:50,563 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint()
Aug 06, 2021 7:12:50 PM com.google.mockwebserver.MockWebServer$2 
processOneRequest
INFO: Received request: POST /v1/applications HTTP/1.1 and responded: HTTP/1.1 
200 OK
2021-08-06 19:12:50,589 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testDeployBlueprint() 
finished in 26 ms
2021-08-06 19:12:50,590 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @AfterMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2021-08-06 19:12:50,590 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@AfterMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished 
in 0 ms
2021-08-06 19:12:50,591 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2021-08-06 19:12:50,592 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished 
in 1 ms
2021-08-06 19:12:50,592 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning()
2021-08-06 19:12:50,602 INFO  - Waiting 5m from Fri Aug 06 19:12:50 UTC 2021 
for application appId to be RUNNING
Aug 06, 2021 7:12:50 PM com.google.mockwebserver.MockWebServer$2 
processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: 
HTTP/1.1 200 OK
2021-08-06 19:12:50,615 INFO  - Application appId is RUNNING
2021-08-06 19:12:50,615 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningExitsCleanlyWhenAppRunning()
 finished in 23 ms
2021-08-06 19:12:50,616 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @AfterMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2021-08-06 19:12:50,616 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@AfterMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished 
in 0 ms
2021-08-06 19:12:50,617 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2021-08-06 19:12:50,617 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished 
in 0 ms
2021-08-06 19:12:50,618 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError()
2021-08-06 19:12:50,623 INFO  - Waiting 5m from Fri Aug 06 19:12:50 UTC 2021 
for application appId to be RUNNING
Aug 06, 2021 7:12:50 PM com.google.mockwebserver.MockWebServer$2 
processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: 
HTTP/1.1 200 OK
2021-08-06 19:12:50,638 WARN  - Application is not RUNNING within 5m. Status 
is: ERROR
2021-08-06 19:12:50,638 ERROR - Application is not running. Is: error
Aug 06, 2021 7:12:50 PM com.google.mockwebserver.MockWebServer$2 
processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: 
HTTP/1.1 200 OK
2021-08-06 19:12:50,694 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusError()
 finished in 76 ms
2021-08-06 19:12:50,695 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @AfterMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2021-08-06 19:12:50,696 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@AfterMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished 
in 1 ms
2021-08-06 19:12:50,697 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer()
2021-08-06 19:12:50,697 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.newMockWebServer() finished 
in 0 ms
2021-08-06 19:12:50,698 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown()
2021-08-06 19:12:50,705 INFO  - Waiting 5m from Fri Aug 06 19:12:50 UTC 2021 
for application appId to be RUNNING
Aug 06, 2021 7:12:50 PM com.google.mockwebserver.MockWebServer$2 
processOneRequest
INFO: Received request: GET /v1/applications/appId HTTP/1.1 and responded: 
HTTP/1.1 200 OK
2021-08-06 19:12:50,719 WARN  - Application is not RUNNING within 5m. Status 
is: UNKNOWN
2021-08-06 19:12:50,719 ERROR - Application is not running. Is: unknown
Aug 06, 2021 7:12:50 PM com.google.mockwebserver.MockWebServer$2 
processOneRequest
INFO: Received request: GET /v1/activities/taskId HTTP/1.1 and responded: 
HTTP/1.1 200 OK
2021-08-06 19:12:50,766 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.testWaitForRunningFailsWhenAppStatusUnknown()
 finished in 68 ms
2021-08-06 19:12:50,767 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @AfterMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer()
2021-08-06 19:12:50,768 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@AfterMethod 
org.apache.brooklyn.rest.client.BrooklynApiUtilTest.shutDownServer() finished 
in 1 ms
2021-08-06 19:12:50,816 INFO  - TESTNG 
===============================================
    Surefire test
    Tests run: 27, Failures: 5, Skips: 0
===============================================
[GC (Allocation Failure)  248001K->53200K(754688K), 0.0356518 secs]
Tests run: 27, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 9.651 sec <<< 
FAILURE! - in TestSuite
testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage(org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest)
  Time elapsed: 0.014 sec  <<< FAILURE!
java.lang.AssertionError: Failed containsLiteral("Foo"): Cannot cast 
java.lang.String to org.apache.brooklyn.rest.domain.TaskSummary
        at 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage(BrooklynApiGetEntityTest.java:96)

testGetEntityIgnoresErrorResponseCodeInBasicResponse(org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest)
  Time elapsed: 0.003 sec  <<< FAILURE!
java.lang.ClassCastException: Cannot cast java.lang.String to 
org.apache.brooklyn.rest.domain.TaskSummary
        at 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse(BrooklynApiGetEntityTest.java:76)

testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError(org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest)
  Time elapsed: 0.004 sec  <<< FAILURE!
java.lang.ClassCastException: Cannot cast java.lang.String to 
org.apache.brooklyn.rest.domain.ApiError
        at 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError(BrooklynApiGetEntityTest.java:102)

testGetEntitySucceedsIfNoErrorCodeWhenApiError(org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest)
  Time elapsed: 0.004 sec  <<< FAILURE!
java.lang.ClassCastException: Cannot cast java.lang.String to 
org.apache.brooklyn.rest.domain.TaskSummary
        at 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError(BrooklynApiGetEntityTest.java:116)

testGetSuccessfulEntitySucceedsOnNoErrorApiError(org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest)
  Time elapsed: 0.003 sec  <<< FAILURE!
java.lang.ClassCastException: Cannot cast java.lang.String to 
org.apache.brooklyn.rest.domain.ApiError
        at 
org.apache.brooklyn.rest.client.BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError(BrooklynApiGetEntityTest.java:123)


Results :

Failed tests: 
  
BrooklynApiGetEntityTest.testGetEntityFailsWithMessageIfLooksLikeApiErrorWithMessage:96
 Failed containsLiteral("Foo"): Cannot cast java.lang.String to 
org.apache.brooklyn.rest.domain.TaskSummary
  
BrooklynApiGetEntityTest.testGetEntityIgnoresErrorResponseCodeInBasicResponse:76
 » ClassCast
  
BrooklynApiGetEntityTest.testGetEntitySucceedsIfLooksLikeApiErrorWhenWantingApiError:102
 » ClassCast
  BrooklynApiGetEntityTest.testGetEntitySucceedsIfNoErrorCodeWhenApiError:116 
» ClassCast
  BrooklynApiGetEntityTest.testGetSuccessfulEntitySucceedsOnNoErrorApiError:123 
» ClassCast

Tests run: 27, Failures: 5, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Brooklyn Client 1.1.0-SNAPSHOT ..................... SUCCESS [ 14.685 s]
[INFO] Brooklyn Client Command Line Interface ............. SUCCESS [ 38.733 s]
[INFO] Brooklyn REST java Client 1.1.0-SNAPSHOT ........... FAILURE [03:25 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:31 min
[INFO] Finished at: 2021-08-06T19:12:51Z
[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 
/home/jenkins/workspace/Brooklyn_brooklyn-client_master/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
[Pipeline] }
$ docker stop --time=1 
b12c827a2300c77bc124386383dd1c4372268b32f6b091bb59f2010a6f6f467e
$ docker rm -f b12c827a2300c77bc124386383dd1c4372268b32f6b091bb59f2010a6f6f467e
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
ERROR: script returned exit code 1
[Pipeline] // catchError
[Pipeline] stage
[Pipeline] { (Publish test results)
[Pipeline] junit
Recording test results
[Checks API] No suitable checks publisher found.
[Pipeline] step
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: 
**/testng-results.xml
Saving reports...
Processing 
'/home/jenkins/jenkins-home/jobs/Brooklyn/jobs/brooklyn-client/branches/master/builds/15/testng/testng-results.xml'
18.518518% of tests failed, which exceeded threshold of 0%. Marking build as 
UNSTABLE
TestNG Reports Processing: FINISH
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Send notifications)
[Pipeline] step

Reply via email to