See
<https://ci-builds.apache.org/job/Brooklyn/job/brooklyn-library/job/master/6/display/redirect>
Changes:
------------------------------------------
[...truncated 53125 lines...]
literalValue4: "$brooklyn:formatString(\"%s: is a fun place\",
\"$brooklyn\")"
# function whose value is used as a key
$brooklyn:literal("$brooklyn:1"): key to the city
,artifacts=[],services=[Service[name=<null>,description=<null>,serviceType=org.apache.brooklyn.entity.webapp.jboss.JBoss7Server,characteristics=[],customAttributes={brooklyn.config={literalValue1=$brooklyn:
is a fun place, literalValue2=$brooklyn: is a fun place,
literalValue3=$brooklyn: is a fun place, literalValue4=$brooklyn: is a fun
place, $brooklyn:1=key to the city}}]],customAttributes={location=localhost}]
2020-10-28 12:24:37,620 INFO - TESTNG FAILED: "Surefire test" -
org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.testExampleFunctionsYamlMatch()
finished in 27 ms
java.lang.AssertionError: expected [$brooklyn:literal("$brooklyn: is a fun
place")] but found [$brooklyn: is a fun place]
at
org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.testExampleFunctionsYamlMatch(JavaWebAppsMatchingTest.java:93)
2020-10-28 12:24:37,629 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test"
- @AfterMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.teardown()
2020-10-28 12:24:37,630 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" -
@AfterMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.teardown()
finished in 1 ms
2020-10-28 12:24:37,630 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test"
- @BeforeMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.setup()
2020-10-28 12:24:37,631 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" -
@BeforeMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.setup()
finished in 1 ms
2020-10-28 12:24:37,632 INFO - TESTNG INVOKING: "Surefire test" -
org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.testJavaAndDbWithFunctionYamlMatch()
2020-10-28 12:24:37,638 INFO - DP is:
org.apache.brooklyn.camp.spi.pdp.DeploymentPlan@9257031[name=java-cluster-db-example,origin=<null>,description=<null>,sourceCode=#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
name: java-cluster-db-example
location: localhost
services:
- type: org.apache.brooklyn.entity.webapp.ControlledDynamicWebAppCluster
name: My Web
brooklyn.config:
wars.root:
http://repo1.maven.org/maven2/org/apache/brooklyn/example/brooklyn-example-hello-world-sql-webapp/0.9.0/brooklyn-example-hello-world-sql-webapp-0.9.0.war
http.port: 9280+
proxy.http.port: 9210+
java.sysprops:
brooklyn.example.db.url:
$brooklyn:formatString("jdbc:%s%s?user=%s&password=%s",
component("db").attributeWhenReady("datastore.url"), "visitors",
"brooklyn",
$brooklyn:external("brooklyn-demo-sample", "hidden-brooklyn-password"))
- type: org.apache.brooklyn.entity.database.mysql.MySqlNode
id: db
name: My DB
creationScriptUrl: classpath://visitors-creation-script.sql
brooklyn.config:
creation.script.password: $brooklyn:external("brooklyn-demo-sample",
"hidden-brooklyn-password")
,artifacts=[],services=[Service[name=My
Web,description=<null>,serviceType=org.apache.brooklyn.entity.webapp.ControlledDynamicWebAppCluster,characteristics=[],customAttributes={brooklyn.config={wars.root=http://repo1.maven.org/maven2/org/apache/brooklyn/example/brooklyn-example-hello-world-sql-webapp/0.9.0/brooklyn-example-hello-world-sql-webapp-0.9.0.war,
http.port=9280+, proxy.http.port=9210+,
java.sysprops={brooklyn.example.db.url=$brooklyn:formatString("jdbc:%s%s?user=%s&password=%s",
entity("db").attributeWhenReady("datastore.url"), "visitors", "brooklyn",
external("brooklyn-demo-sample", "hidden-brooklyn-password"))}}}],
Service[name=My
DB,description=<null>,serviceType=org.apache.brooklyn.entity.database.mysql.MySqlNode,characteristics=[],customAttributes={id=db,
creationScriptUrl=classpath://visitors-creation-script.sql,
brooklyn.config={creation.script.password=$brooklyn:external("brooklyn-demo-sample",
"hidden-brooklyn-password")}}]],customAttributes={location=localhost}]
2020-10-28 12:24:37,645 INFO - No Camp-YAML parser registered for parsing
catalog item DSL; skipping DSL-parsing
2020-10-28 12:24:37,662 INFO - TESTNG PASSED: "Surefire test" -
org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.testJavaAndDbWithFunctionYamlMatch()
finished in 30 ms
2020-10-28 12:24:37,662 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test"
- @AfterMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.teardown()
2020-10-28 12:24:37,663 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" -
@AfterMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.teardown()
finished in 1 ms
2020-10-28 12:24:37,664 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test"
- @BeforeMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.setup()
2020-10-28 12:24:37,665 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" -
@BeforeMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.setup()
finished in 1 ms
2020-10-28 12:24:37,665 INFO - TESTNG INVOKING: "Surefire test" -
org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.testJavaAndDbWithFunctionYamlMatch2()
2020-10-28 12:24:37,672 INFO - DP is:
org.apache.brooklyn.camp.spi.pdp.DeploymentPlan@7e053511[name=java-cluster-db-example,origin=<null>,description=<null>,sourceCode=#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
name: java-cluster-db-example
location: localhost
services:
- type: org.apache.brooklyn.entity.webapp.ControlledDynamicWebAppCluster
name: My Web
brooklyn.config:
wars.root:
http://search.maven.org/remotecontent?filepath=io/brooklyn/example/brooklyn-example-hello-world-sql-webapp/0.6.0-M2/brooklyn-example-hello-world-sql-webapp-0.6.0-M2.war
http.port: 9280+
proxy.http.port: 9210+
java.sysprops:
brooklyn.example.db.url:
# alternate syntax
$brooklyn:formatString:
- jdbc:%s%s?user=%s&password=%s
- $brooklyn:component("db").attributeWhenReady("datastore.url")
- visitors
- brooklyn
- $brooklyn:external("brooklyn-demo-sample", "hidden-brooklyn-password")
- type: org.apache.brooklyn.entity.database.mysql.MySqlNode
name: My DB
id: db
brooklyn.config:
creation.script.password: $brooklyn:external("brooklyn-demo-sample",
"hidden-brooklyn-password")
datastore.creation.script.url: classpath://visitors-creation-script.sql
,artifacts=[],services=[Service[name=My
Web,description=<null>,serviceType=org.apache.brooklyn.entity.webapp.ControlledDynamicWebAppCluster,characteristics=[],customAttributes={brooklyn.config={wars.root=http://search.maven.org/remotecontent?filepath=io/brooklyn/example/brooklyn-example-hello-world-sql-webapp/0.6.0-M2/brooklyn-example-hello-world-sql-webapp-0.6.0-M2.war,
http.port=9280+, proxy.http.port=9210+,
java.sysprops={brooklyn.example.db.url=$brooklyn:formatString("jdbc:%s%s?user=%s&password=%s",
entity("db").attributeWhenReady("datastore.url"), "visitors", "brooklyn",
external("brooklyn-demo-sample", "hidden-brooklyn-password"))}}}],
Service[name=My
DB,description=<null>,serviceType=org.apache.brooklyn.entity.database.mysql.MySqlNode,characteristics=[],customAttributes={id=db,
brooklyn.config={creation.script.password=$brooklyn:external("brooklyn-demo-sample",
"hidden-brooklyn-password"),
datastore.creation.script.url=classpath://visitors-creation-script.sql}}]],customAttributes={location=localhost}]
2020-10-28 12:24:37,678 INFO - No Camp-YAML parser registered for parsing
catalog item DSL; skipping DSL-parsing
2020-10-28 12:24:37,684 INFO - TESTNG PASSED: "Surefire test" -
org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.testJavaAndDbWithFunctionYamlMatch2()
finished in 19 ms
2020-10-28 12:24:37,685 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test"
- @AfterMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.teardown()
2020-10-28 12:24:37,686 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" -
@AfterMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.teardown()
finished in 1 ms
2020-10-28 12:24:37,686 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test"
- @BeforeMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.setup()
2020-10-28 12:24:37,687 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" -
@BeforeMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.setup()
finished in 1 ms
2020-10-28 12:24:37,688 INFO - TESTNG INVOKING: "Surefire test" -
org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.testSimpleYamlMatch()
2020-10-28 12:24:37,727 INFO - No Camp-YAML parser registered for parsing
catalog item DSL; skipping DSL-parsing
2020-10-28 12:24:37,732 INFO - TESTNG PASSED: "Surefire test" -
org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.testSimpleYamlMatch()
finished in 44 ms
2020-10-28 12:24:37,732 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test"
- @AfterMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.teardown()
2020-10-28 12:24:37,733 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" -
@AfterMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.teardown()
finished in 1 ms
2020-10-28 12:24:37,733 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test"
- @BeforeMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.setup()
2020-10-28 12:24:37,734 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" -
@BeforeMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.setup()
finished in 1 ms
2020-10-28 12:24:37,735 INFO - TESTNG INVOKING: "Surefire test" -
org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.testSimpleYamlParse()
2020-10-28 12:24:37,737 INFO - DP is:
org.apache.brooklyn.camp.spi.pdp.DeploymentPlan@55caeb35[name=sample-single-jboss,origin=https://github.com/apache/brooklyn,description=Single
JBoss using Brooklyn,sourceCode=#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
name: sample-single-jboss
description: Single JBoss using Brooklyn
origin: https://github.com/apache/brooklyn
location: localhost
services:
- serviceType: org.apache.brooklyn.entity.webapp.tomcat.Tomcat8Server
name: tomcat1
brooklyn.config:
wars.root:
http://search.maven.org/remotecontent?filepath=io/brooklyn/example/brooklyn-example-hello-world-webapp/0.7.0-M1/brooklyn-example-hello-world-webapp-0.7.0-M1.war
http.port: 9280+
,artifacts=[],services=[Service[name=tomcat1,description=<null>,serviceType=org.apache.brooklyn.entity.webapp.tomcat.Tomcat8Server,characteristics=[],customAttributes={brooklyn.config={wars.root=http://search.maven.org/remotecontent?filepath=io/brooklyn/example/brooklyn-example-hello-world-webapp/0.7.0-M1/brooklyn-example-hello-world-webapp-0.7.0-M1.war,
http.port=9280+}}]],customAttributes={location=localhost}]
2020-10-28 12:24:37,738 INFO - TESTNG PASSED: "Surefire test" -
org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.testSimpleYamlParse()
finished in 2 ms
2020-10-28 12:24:37,738 INFO - TESTNG INVOKING CONFIGURATION: "Surefire test"
- @AfterMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.teardown()
2020-10-28 12:24:37,738 INFO - TESTNG PASSED CONFIGURATION: "Surefire test" -
@AfterMethod org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.teardown()
finished in 0 ms
2020-10-28 12:24:37,807 INFO - TESTNG
===============================================
Surefire test
Tests run: 13, Failures: 1, Skips: 0
===============================================
Tests run: 13, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.229 sec <<<
FAILURE! - in TestSuite
testExampleFunctionsYamlMatch(org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest)
Time elapsed: 0.037 sec <<< FAILURE!
java.lang.AssertionError: expected [$brooklyn:literal("$brooklyn: is a fun
place")] but found [$brooklyn: is a fun place]
at
org.apache.brooklyn.qa.camp.JavaWebAppsMatchingTest.testExampleFunctionsYamlMatch(JavaWebAppsMatchingTest.java:93)
Results :
Failed tests:
JavaWebAppsMatchingTest.testExampleFunctionsYamlMatch:93 expected
[$brooklyn:literal("$brooklyn: is a fun place")] but found [$brooklyn: is a fun
place]
Tests run: 13, Failures: 1, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Library Root 1.1.0-SNAPSHOT ............... SUCCESS [ 13.841 s]
[INFO] Brooklyn CM Chef ................................... SUCCESS [02:42 min]
[INFO] Brooklyn CM SaltStack .............................. SUCCESS [ 7.757 s]
[INFO] Brooklyn CM Ansible ................................ SUCCESS [ 5.313 s]
[INFO] Brooklyn CM Integration Root ....................... SUCCESS [ 0.182 s]
[INFO] Brooklyn Network Software Entities ................. SUCCESS [ 6.454 s]
[INFO] Brooklyn OSGi Software Entities .................... SUCCESS [ 4.730 s]
[INFO] Brooklyn Database Software Entities ................ SUCCESS [ 11.333 s]
[INFO] Brooklyn Web App Software Entities ................. SUCCESS [ 30.608 s]
[INFO] Brooklyn Messaging Software Entities ............... SUCCESS [ 43.580 s]
[INFO] Brooklyn NoSQL Data Store Software Entities ........ SUCCESS [01:00 min]
[INFO] Brooklyn Monitoring Software Entities .............. SUCCESS [ 4.423 s]
[INFO] Brooklyn Web App Software Entities ................. SUCCESS [ 0.255 s]
[INFO] Brooklyn QA ........................................ FAILURE [ 43.563 s]
[INFO] Brooklyn Examples Aggregator Project ............... SKIPPED
[INFO] Brooklyn Examples Aggregator Project - Webapps ..... SKIPPED
[INFO] hello-world-webapp Maven Webapp .................... SKIPPED
[INFO] hello-world-sql-webapp Maven Webapp ................ SKIPPED
[INFO] Brooklyn Simple Web Cluster Example ................ SKIPPED
[INFO] Brooklyn Library Karaf integration ................. SKIPPED
[INFO] Brooklyn Library Catalog ........................... SKIPPED
[INFO] Brooklyn Library Karaf Features 1.1.0-SNAPSHOT ..... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:46 min
[INFO] Finished at: 2020-10-28T12:24:38Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on
project brooklyn-qa: There are test failures.
[ERROR]
[ERROR] Please refer to
/home/jenkins/jenkins-agent/workspace/Brooklyn_brooklyn-library_master/qa/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-qa
[Pipeline] }
$ docker stop --time=1
032b914075462558e47507bcf1fa36caac9d338cbdcc194580e1d39082fe061b
$ docker rm -f 032b914075462558e47507bcf1fa36caac9d338cbdcc194580e1d39082fe061b
[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
[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-library/branches/master/builds/6/testng/testng-results-1.xml'
Processing
'/home/jenkins/jenkins-home/jobs/Brooklyn/jobs/brooklyn-library/branches/master/builds/6/testng/testng-results-10.xml'
Processing
'/home/jenkins/jenkins-home/jobs/Brooklyn/jobs/brooklyn-library/branches/master/builds/6/testng/testng-results-2.xml'
Processing
'/home/jenkins/jenkins-home/jobs/Brooklyn/jobs/brooklyn-library/branches/master/builds/6/testng/testng-results-3.xml'
Processing
'/home/jenkins/jenkins-home/jobs/Brooklyn/jobs/brooklyn-library/branches/master/builds/6/testng/testng-results-4.xml'
Processing
'/home/jenkins/jenkins-home/jobs/Brooklyn/jobs/brooklyn-library/branches/master/builds/6/testng/testng-results-5.xml'
Processing
'/home/jenkins/jenkins-home/jobs/Brooklyn/jobs/brooklyn-library/branches/master/builds/6/testng/testng-results-6.xml'
Processing
'/home/jenkins/jenkins-home/jobs/Brooklyn/jobs/brooklyn-library/branches/master/builds/6/testng/testng-results-7.xml'
Processing
'/home/jenkins/jenkins-home/jobs/Brooklyn/jobs/brooklyn-library/branches/master/builds/6/testng/testng-results-8.xml'
Processing
'/home/jenkins/jenkins-home/jobs/Brooklyn/jobs/brooklyn-library/branches/master/builds/6/testng/testng-results-9.xml'
Processing
'/home/jenkins/jenkins-home/jobs/Brooklyn/jobs/brooklyn-library/branches/master/builds/6/testng/testng-results.xml'
1.052632% 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