Files
rclone/fstest/testserver/init.d/TestFTPVsftpd
T
Nick Craig-Wood 67472a7c08 fstest: remove the vsftpd per-IP connection limit for the integration tests
The fauria/vsftpd image limits each IP to 50 connections. When
cmd/bisync and backend/ftp ran concurrently against the shared server
the backend tests were refused with 421 "There are too many
connections from your internet address" on every retry.
2026-10-29 14:19:09 +00:00

28 lines
580 B
Bash
Executable File

#!/usr/bin/env bash
set -e
NAME=vsftpd
USER=rclone
PASS=TiffedRestedSian4
. $(dirname "$0")/docker.bash
start() {
docker run --rm -d --name $NAME \
-e "FTP_USER=rclone" \
-e "FTP_PASS=$PASS" \
fauria/vsftpd \
sh -c 'echo max_per_ip=0 >> /etc/vsftpd/vsftpd.conf && exec /usr/sbin/run-vsftpd.sh'
echo type=ftp
echo host=$(docker_ip)
echo user=$USER
echo pass=$(rclone obscure $PASS)
echo writing_mdtm=true
echo encoding=Ctl,LeftPeriod,Slash
echo _connect=$(docker_ip):21
}
. $(dirname "$0")/run.bash