From 6a5ca2981ffc4c9c2b1bd275e37fc2c6412b5d15 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Sat, 18 Jun 2022 12:05:41 -0700 Subject: [PATCH] Split password test to 2 - right and wrong passwd --- test_e2e.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test_e2e.sh b/test_e2e.sh index 72425b8..b19798e 100755 --- a/test_e2e.sh +++ b/test_e2e.sh @@ -868,9 +868,9 @@ function e2e::fetch_skip_depth_1() { } ############################################## -# Test password +# Test password auth with the wrong password ############################################## -function e2e::password() { +function e2e::password_wrong_password() { echo "$FUNCNAME 1" > "$REPO"/file git -C "$REPO" commit -qam "$FUNCNAME 1" @@ -888,6 +888,14 @@ function e2e::password() { >> "$1" 2>&1 || true # check for failure assert_file_absent "$ROOT"/link/file +} + +############################################## +# Test password auth with the correct password +############################################## +function e2e::password_correct_password() { + echo "$FUNCNAME 1" > "$REPO"/file + git -C "$REPO" commit -qam "$FUNCNAME 1" # run with askpass_git with correct password GIT_SYNC \