Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

test: make TestWebdavInfiniteScale startup more reliable

Nick Craig-Woodcd950e30cbdb
diff --git a/fstest/testserver/init.d/TestWebdavInfiniteScale b/fstest/testserver/init.d/TestWebdavInfiniteScale
index 7226055c4..68fd7df25 100755
--- a/fstest/testserver/init.d/TestWebdavInfiniteScale
+++ b/fstest/testserver/init.d/TestWebdavInfiniteScale
@@ -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() {