diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2018-01-31 22:21:00 +0100 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2018-01-31 22:21:00 +0100 |
| commit | cd525f8ab11068a16b93035599887d8a8e4146d6 (patch) | |
| tree | f87617dab51afc193509001841d33f315f793476 /testing/with-saio.sh | |
| parent | 447267b24f921f9640eea14a59997fda37e271b0 (diff) | |
| download | go-schwift-cd525f8ab11068a16b93035599887d8a8e4146d6.tar.gz | |
add testing scripts based on github.com/bouncestorage/docker-swift
Diffstat (limited to 'testing/with-saio.sh')
| -rwxr-xr-x | testing/with-saio.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/with-saio.sh b/testing/with-saio.sh new file mode 100755 index 0000000..9f040eb --- /dev/null +++ b/testing/with-saio.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +if ! docker inspect schwift-testing >/dev/null; then + echo "SAIO container not running yet. Run ./testing/start-saio.sh to start it." >&2 + exit 1 +fi + +ST_PORT="$(docker inspect schwift-testing | jq -r '.[0].NetworkSettings.Ports["8080/tcp"][0].HostPort')" +export ST_AUTH="http://127.0.0.1:${ST_PORT}/auth/v1.0" +export ST_USER="test:tester" # hardcoded auth parameters in the bouncestorage/docker-swift image +export ST_KEY="testing" + +exec "$@" |
