diff --git a/tests/run b/tests/run index ddc2978..4e40de1 100755 --- a/tests/run +++ b/tests/run @@ -52,12 +52,12 @@ function beforeTest() { $sudo docker run \ -v "$tmpDir/users:/etc/sftp/users.conf:ro" \ -v "$scriptDir/id_rsa.pub":/home/test/.ssh/keys/id_rsa.pub:ro \ - -v "$scriptDir/id_rsa.pub":/home/userFromEnv/.ssh/keys/id_rsa.pub:ro \ + -v "$scriptDir/id_rsa.pub":/home/user-from-env/.ssh/keys/id_rsa.pub:ro \ -v "$scriptDir/id_rsa.pub":/home/user.with.dot/.ssh/keys/id_rsa.pub:ro \ -v "$tmpDir":/home/test/share \ --name "$sftpContainerName" \ --expose 22 \ - -e "SFTP_USERS=userFromEnv::$(id -u):$(id -g) userFromEnv2::$(id -u):$(id -g)" \ + -e "SFTP_USERS=user-from-env::$(id -u):$(id -g) user-from-env-2::$(id -u):$(id -g)" \ -d "$sftpImageName" \ > "$redirect" @@ -150,7 +150,7 @@ function testUserWithDotLogin() { function testLoginUsingUserFromEnv() { $skipAllTests && skip && return 0 - runSftpCommands "$sftpContainerName" "userFromEnv" "exit" + runSftpCommands "$sftpContainerName" "user-from-env" "exit" assertReturn $? 0 }