Skip to content

Commit

Permalink
actions: only enable password auth tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bramvdbogaerde committed Feb 4, 2024
1 parent 62d454e commit 0a1a38e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

fix_permissions () {
chmod -R 777 tmp/
if [ -f "tmp/id_rsa.pub" ] ; then
chmod 0600 tmp/id_rsa.pub
fi
}

cleanup() {
Expand All @@ -23,6 +26,7 @@ cleanup() {
run_test() {
local auth_method=$1

fix_permissions
echo "Testing with auth method: $auth_method"

echo "Running tests"
Expand All @@ -48,8 +52,13 @@ run_docker_container() {
panubo/sshd
}

for auth_method in "password"; do # "private_key" "private_key_with_passphrase" "ssh_agent"; do
fix_permissions
if [ -z "${GITHUB_ACTIONS}" ]; then
AUTH_METHODS="password private_key private_key_with_passphrase ssh_agent"
else
AUTH_METHODS="password"
fi

for auth_method in $AUTH_METHODS ; do
case "$auth_method" in
"password")
echo "Testing with password auth"
Expand Down

0 comments on commit 0a1a38e

Please sign in to comment.