github.com/leg100/ots@v0.0.7-0.20210919080622-034055ced4bd/hack/go-tfe-tests.bash (about) 1 #!/usr/bin/env bash 2 3 # Run go-tfe's tests against an otsd instance. Either specify tests as arguments 4 # or a default subset of tests will be run. 5 6 set -ex 7 8 export TFE_TOKEN=dummy 9 export TFE_ADDRESS=https://localhost:8080 10 export SKIP_PAID=1 11 12 TESTS="${@:-Test(Workspaces(Create|List|Update|Delete|Unlock|Lock)|Organizations(Create|List|Read|Update)|StateVersions|Runs|Plans|Applies(Read|Logs)|ConfigurationVersions)}" 13 14 cd $(go list -f '{{.Dir}}' github.com/leg100/go-tfe) 15 go test -v -run $TESTS