1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-02 00:23:42 +00:00
Files
rclone/fstest/testserver/init.d/TestSwiftAIO
Andrew Ruthven 04e91838db swift: If storage_policy isn't set, use the root containers policy
Ensure that if we need to create a segments container it uses the same
storage policy as the root container.

Fixes #8858
2025-10-06 16:55:48 +01:00

26 lines
574 B
Bash
Executable File

#!/usr/bin/env bash
set -e
NAME=swift-aio
PORT=28628
. $(dirname "$0")/docker.bash
start() {
# We need to replace the remakerings in the container to create Policy-1.
docker run --rm -d --name ${NAME} \
-p 127.0.0.1:${PORT}:8080 \
-v $(dirname "$0")/TestSwiftAIO.d/remakerings:/swift/bin/remakerings:ro \
bouncestorage/swift-aio
echo type=swift
echo env_auth=false
echo user=test:tester
echo key=testing
echo auth=http://127.0.0.1:${PORT}/auth/v1.0
echo _connect=127.0.0.1:${PORT}
}
. $(dirname "$0")/run.bash