0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00

Use lower-case usernames in test.

See #109 for more info.
This commit is contained in:
Adrian Dvergsdal 2018-01-17 22:36:44 +01:00
parent d2906f92e0
commit d5d670f682
No known key found for this signature in database
GPG key ID: C1E9E2D9552A42D2

View file

@ -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
}