Github user Graeme-Miller commented on the pull request:

    
https://github.com/apache/incubator-brooklyn/pull/1091#issuecomment-162544360
  
    @johnmccabe yup, there you go:
    
    ```YAML
    services:
    - type: org.apache.brooklyn.test.framework.InfrastructureDeploymentTestCase
      brooklyn.config:
        infrastructure.deployment.location.sensor: entity.dynamicLocation
        infrastructure.deployment.spec:
          $brooklyn:entitySpec:
            - type: brooklyn.entity.container.docker.DockerInfrastructure
              id: infrastructure
              location: named:softlayer-sea01
              brooklyn.config:
                entity.dynamicLocation.name: my-docker-cloud
                docker.host.cluster.initial.size: 1
                docker.registry.start: false
                docker.version: 1.7.1
        infrastructure.deployment.entity.spec:
          $brooklyn:entitySpec:
            - type: org.apache.brooklyn.entity.webapp.jboss.JBoss7Server
              id: JBoss7Server
      brooklyn.children:
        - type: org.apache.brooklyn.test.framework.TestSensor
          name: Check infrastructure isUp
          targetId: infrastructure
          sensor: service.isUp
          timeout: 10m
          assert:
           - equals: true
        - type: org.apache.brooklyn.test.framework.TestSensor
          name: Check redis isUp
          targetId: JBoss7Server
          sensor: service.isUp
          timeout: 10m
          assert:
           - equals: true
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to