1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-11 05:43:15 +00:00

test: make TestWebdavInfiniteScale startup more reliable

This adds a _connect_delay=5s which allows the server to startup
properly. It also makes sure it stores its config in /tmp rather than
the current working directory.
This commit is contained in:
Nick Craig-Wood
2025-07-01 17:13:41 +01:00
parent 89dfae96ad
commit cd950e30cb

View File

@@ -6,13 +6,16 @@ NAME=infinitescale
USER=admin
PASS=admin
PORT=9200
CONF_DIR=/tmp/ocis-config
mkdir -p ${CONF_DIR}
chmod 777 ${CONF_DIR} || true
. $(dirname "$0")/docker.bash
start() {
docker run --rm --name $NAME \
-v $(pwd):/etc/ocis \
-v ${CONF_DIR}:/etc/ocis \
-e "OCIS_INSECURE=true" \
-e "IDM_ADMIN_PASSWORD=$PASS" \
-e "OCIS_FORCE_CONFIG_OVERWRITE=true" \
@@ -28,7 +31,7 @@ start() {
-e "IDM_ADMIN_PASSWORD=$PASS" \
-e "OCIS_INSECURE=true" \
-e "PROXY_ENABLE_BASIC_AUTH=true" \
-v $(pwd):/etc/ocis \
-v ${CONF_DIR}:/etc/ocis \
-p 127.0.0.1:${PORT}:9200 \
owncloud/ocis
@@ -38,6 +41,7 @@ start() {
echo pass=$(rclone obscure $PASS)
echo vendor=infinitescale
echo _connect=127.0.0.1:${PORT}
echo _connect_delay=5s
}
stop() {