-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1632,15 +1632,18 @@ mktempdir() do dir | |
@test auth_attempts == 1 | ||
end | ||
|
||
# TODO: Tests are currently broken. Credential callback prompts for: | ||
# "Passphrase for :" | ||
# Explicitly setting these env variables to be empty means the user will be | ||
# given a prompt with no defaults set. | ||
withenv("SSH_KEY_PATH" => nothing, | ||
"SSH_PUB_KEY_PATH" => nothing, | ||
"SSH_KEY_PASS" => nothing, | ||
(Sys.iswindows() ? "USERPROFILE" : "HOME") => tempdir()) do | ||
|
||
# Set the USERPROFILE / HOME above to be a directory that does not contain | ||
# the "~/.ssh/id_rsa" file. If this file exists the credential callback | ||
# will default to use this private key instead of triggering a prompt. | ||
@test !isfile(joinpath(homedir(), ".ssh", "id_rsa")) | ||
|
||
# User provides valid credentials | ||
challenges = [ | ||
"Private key location for '[email protected]':" => "$valid_key\n", | ||
|