mirror of
https://github.com/atmoz/sftp.git
synced 2024-12-01 13:00:56 -05:00
parent
d990faa216
commit
387c88f516
1 changed files with 3 additions and 3 deletions
|
@ -52,12 +52,12 @@ function beforeTest() {
|
||||||
$sudo docker run \
|
$sudo docker run \
|
||||||
-v "$tmpDir/users:/etc/sftp/users.conf:ro" \
|
-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/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 "$scriptDir/id_rsa.pub":/home/user.with.dot/.ssh/keys/id_rsa.pub:ro \
|
||||||
-v "$tmpDir":/home/test/share \
|
-v "$tmpDir":/home/test/share \
|
||||||
--name "$sftpContainerName" \
|
--name "$sftpContainerName" \
|
||||||
--expose 22 \
|
--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" \
|
-d "$sftpImageName" \
|
||||||
> "$redirect"
|
> "$redirect"
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ function testUserWithDotLogin() {
|
||||||
function testLoginUsingUserFromEnv() {
|
function testLoginUsingUserFromEnv() {
|
||||||
$skipAllTests && skip && return 0
|
$skipAllTests && skip && return 0
|
||||||
|
|
||||||
runSftpCommands "$sftpContainerName" "userFromEnv" "exit"
|
runSftpCommands "$sftpContainerName" "user-from-env" "exit"
|
||||||
assertReturn $? 0
|
assertReturn $? 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue