- type: org.apache.brooklyn.test.framework.TestCase name: Check Deploy Effector brooklyn.children: - type: org.apache.brooklyn.test.framework.TestSensor name: Check webappcluster isUp brooklyn.config: targetId: webappcluster sensor: service.isUp timeout: 10m assert: - equals: true - type: org.apache.brooklyn.test.framework.TestEffector name: Invoke Deploy Effector brooklyn.config: targetId: webappcluster effector: deploy timeout: 5m params: url: https://search.maven.org/remotecontent?filepath=org/apache/brooklyn/example/brooklyn-example-hello-world-sql-webapp/0.12.0/brooklyn-example-hello-world-sql-webapp-0.12.0.war # BROOKLYN_VERSION targetName: newcontext - type: org.apache.brooklyn.test.framework.TestHttpCall name: Check Deployed Webapp Status Code brooklyn.config: timeout: 5m url: > $brooklyn:formatString("http://%s:%s/newcontext/", $brooklyn:entity("webappcluster").attributeWhenReady("host.address"), $brooklyn:entity("webappcluster").attributeWhenReady("proxy.http.port")) applyAssertionTo: status assert: - isEqualTo: 200