---
platform: linux

image: docker:///cloudfoundry/cli-vagrant-ci

params:
  LITE_PRIVATE_IP_ADDRESS:

inputs:
- name: bosh-lite-lock

run:
  path: bash
  args:
  - -c
  - |
    set -eux

    export DOMAIN=`cat bosh-lite-lock/name`

    export ADMIN_USER=admin
    export ADMIN_PASSWORD=admin
    export API_ENDPOINT="https://api.${DOMAIN}"

    bosh -n target $LITE_PRIVATE_IP_ADDRESS
    bosh -n -u admin -p admin run errand smoke_tests

---
platform: linux

image: docker:///cloudfoundry/cli-vagrant-ci

params:
  LITE_PRIVATE_IP_ADDRESS:

inputs:
- name: bosh-lite-lock

run:
  path: bash
  args:
  - -c
  - |
    set -eux

    export DOMAIN=`cat bosh-lite-lock/name`

    export ADMIN_USER=admin
    export ADMIN_PASSWORD=admin
    export API_ENDPOINT="https://api.${DOMAIN}"

    bosh -n target $LITE_PRIVATE_IP_ADDRESS
    bosh -n download manifest 'cf-warden' cf-warden.yml
    bosh -n deployment cf-warden.yml
    bosh -n -u admin -p admin run errand smoke_tests

Set the deployment prior to running smoketest
Set the deployment prior to running smoketest

Signed-off-by: Nick Wei <88313de659f5f6f483e38ffe364817e8884d9f11@pivotal.io>
