#!/bin/bash -e

if [ -n "$DEBUG" ]; then
  set -x
  export
  go version
fi

export GOPATH=$PWD/bits-service-release
export PATH=${GOPATH}/bin:${PATH}

cf_admin_password=$(bosh2 int $DEPLOYMENT_VARS_FILE --path /cf_admin_password)

cd bits-service-release/src/github.com/cloudfoundry-incubator/bits-service-migration-tests

cat >config.json <<EOF
{
  "api": "api.${CF_DOMAIN}",
  "apps_domain": "${CF_DOMAIN}",
  "admin_user": "admin",
  "admin_password": "${cf_admin_password}",
  "skip_ssl_validation": true,
  "use_http": true,
  "backend": "diego",
  "default_timeout": 75,
  "cf_push_timeout": 240,
  "persistent_app_org": "${BSMT_PERSISTENT_ORG}",
  "persistent_app_space": "${BSMT_PERSISTENT_SPACE}"
}
EOF
export CONFIG="$(readlink -nf config.json)"

bin/test -r $noColorFlag -slowSpecThreshold=120 -randomizeAllSpecs $verbose -v -progress -keepGoing $test_suite

#!/bin/bash -e

if [ -n "$DEBUG" ]; then
  set -x
  export
  go version
fi

export GOPATH=$PWD/bits-service-release
export PATH=${GOPATH}/bin:${PATH}

cf_admin_password=$(bosh2 int $DEPLOYMENT_VARS_FILE --path /cf_admin_password)

cd bits-service-release/src/github.com/cloudfoundry-incubator/bits-service-migration-tests

cat >config.json <<EOF
{
  "api": "api.${CF_DOMAIN}",
  "apps_domain": "${CF_DOMAIN}",
  "admin_user": "admin",
  "admin_password": "${cf_admin_password}",
  "skip_ssl_validation": true,
  "use_http": true,
  "backend": "diego",
  "default_timeout": 75,
  "cf_push_timeout": 240,
  "persistent_app_org": "${BSMT_PERSISTENT_ORG}",
  "persistent_app_space": "${BSMT_PERSISTENT_SPACE}"
}
EOF
export CONFIG="$(readlink -nf config.json)"

bin/test -r $noColorFlag -slowSpecThreshold=120 -randomizeAllSpecs $verbose -keepGoing $test_suite

Make migration tests output less verbose
Make migration tests output less verbose
