1
mirror of https://github.com/rclone/rclone synced 2024-12-25 17:03:45 +01:00
rclone/fstest/testserver/init.d/TestWebdavRclone
Nick Craig-Wood 45e8bea8d0 testserver: Make Test{FTP,SFTP,Webdav}Rclone run the current rclone
Before this change the tests were run against the previous stable
rclone/rclone docker image.

This unfortunately masked errors in the integration test server.

This change uses the currently installed rclone to run "rclone serve
ftp" etc. This is installed out of the current code by the integration
test server so will make a better test.
2020-11-10 18:01:15 +00:00

22 lines
390 B
Bash
Executable File

#!/bin/bash
set -e
NAME=rclone-serve-webdav
USER=rclone
PASS=PagansSwimExpiry9
IP=127.0.0.1
PORT=28620
start() {
run rclone serve webdav --user $USER --pass $PASS --addr ${IP}:${PORT} ${DATADIR}
echo type=webdav
echo url=http://${IP}:${PORT}/
echo user=$USER
echo pass=$(rclone obscure $PASS)
echo _connect=${IP}:$PORT
}
. $(dirname "$0")/rclone-serve.bash