rclone/fstest/testserver/init.d/TestSwiftAIO
Nick Craig-Wood 24ef00a258 build: implement a framework for starting test servers during tests
Test servers are implemented by docker containers and run real servers
for rclone to test against.
2020-01-18 16:47:37 +00:00

21 lines
364 B
Bash
Executable file

#!/bin/bash
set -e
NAME=swift-aio
. $(dirname "$0")/docker.bash
start() {
docker run --rm -d --name ${NAME} \
bouncestorage/swift-aio
echo type=swift
echo env_auth=false
echo user=test:tester
echo key=testing
echo auth=http://$(docker_ip):8080/auth/v1.0
echo _connect=$(docker_ip):8080
}
. $(dirname "$0")/run.bash