-
-
Save rkoster/9671692 to your computer and use it in GitHub Desktop.
Run cloudfoundry/cf-acceptance-tests against bosh-lite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat > integration_config.json <<EOF | |
| { "apps_domain": "10.244.0.34.xip.io" } | |
| EOF | |
| export ADMIN_USER=admin | |
| export ADMIN_PASSWORD=admin | |
| export CF_USER=cats-user | |
| export CF_USER_PASSWORD=cats-user | |
| export CF_ORG=cats-org | |
| export CF_SPACE=cats-space | |
| export API_ENDPOINT=https://api.10.244.0.34.xip.io | |
| export GOPATH=$PWD/gopath | |
| export PATH=$PATH:$GOPATH/bin | |
| export CONFIG=$PWD/integration_config.json | |
| export CF_TRACE_BASENAME=$PWD/logs/ | |
| ln -sf `which cf` gopath/bin/gcf | |
| gcf logout | |
| gcf api $API_ENDPOINT | |
| gcf auth $ADMIN_USER $ADMIN_PASSWORD | |
| gcf create-org $CF_ORG | |
| gcf target -o $CF_ORG | |
| gcf create-space $CF_SPACE | |
| gcf set-org-role $CF_USER $CF_ORG OrgManager | |
| gcf set-space-role $CF_USER $CF_ORG $CF_SPACE SpaceManager | |
| gcf set-space-role $CF_USER $CF_ORG $CF_SPACE SpaceDeveloper | |
| gcf target -o $CF_ORG -s $CF_SPACE | |
| go get github.com/cloudfoundry/cf-acceptance-tests/helpers | |
| cd gopath/src/github.com/cloudfoundry/cf-acceptance-tests | |
| ./bin/test "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment