From 25cd827915cf444927a03c19be38cae5db9a6a8f Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Wed, 17 Jan 2018 22:36:44 +0100 Subject: [PATCH] Use lower-case usernames in test. See #109 for more info. --- tests/run | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }