CATs will build catnip in its SynchronizedBeforeSuite,
so if you've run CATs you should have the binary
at ./assets/catnip/bin/catnip
To build and push catnip
locally
GOOS=linux GOARCH=amd64 go build -o bin/catnip
cd bin/catnip
cf push catnip -b binary_buildpack -c "./catnip"
If you get a build error
you probably have CATs checked out to somewhere
that isn't on your gopath.
Try go get github.com/cloudfoundry/cf-acceptance-tests
and then cd $GOPATH/src/github.com/cloudfoundry/cf-acceptance-tests
or cd $HOME/go/src/github.com/cloudfoundry/cf-acceptance-tests
Sticky Sessions
To set up a sticky session manually:
- Get your sticky session by running:
curl -d '' dora.yourdomain.com/session -c instance_1
- Run with a different filename for each instance, and repeat the curl command until you get a new ID
curl -d '' dora.yourdomain.com/session -c instance_2
- Then you can target whatever instance you want for example:
curl dora.yourdomain.com/stress_testers -b instance_2