You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
567 B

#!/usr/bin/env bash
set -u
DESC="Test proftp (serveur:bigboss et client:tiny)"
HELP="
Bigboss et tiny doivent avoir été configurés par baseConfig.
"
testProftp() {
echo
echo "Test de proftpd (anonymous)"
vdn-ssh root@tiny "
echo -e 'open bigboss\nuser anonymous test@bidule.com\nls' \
| ftp -i -n | grep -q welcome
"
e=$?; [ $e = 0 ] && green ok || red ko
errors=$((errors+$e))
return $e
}
run() {
local errors=0
setErrorHandler
echoStart
requireSshGuests bigboss tiny
testProftp
unsetErrorHandler
return $errors
}