From 96b8e8a4fc1d7ee8ba9bf307cd40e059d1fe78f3 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Tue, 19 Sep 2023 14:29:12 -0700 Subject: [PATCH] Remove redundant username/password auth test The HTTP test covers this without needing a hacky git command. --- test_e2e.sh | 44 -------------------------------------------- 1 file changed, 44 deletions(-) diff --git a/test_e2e.sh b/test_e2e.sh index 04810d9..ea082fc 100755 --- a/test_e2e.sh +++ b/test_e2e.sh @@ -1642,50 +1642,6 @@ function e2e::sync_depth_change_on_restart() { fi } -############################################## -# Test password auth with the wrong password -############################################## -function e2e::auth_password_wrong_password() { - echo "$FUNCNAME" > "$REPO/file" - git -C "$REPO" commit -qam "$FUNCNAME" - - # run with askpass_git but with wrong password - GIT_SYNC \ - --one-time \ - --git="/$ASKPASS_GIT" \ - --username="my-username" \ - --password="wrong" \ - --repo="file://$REPO" \ - --root="$ROOT" \ - --link="link" \ - || true - - # check for failure - assert_file_absent "$ROOT/link/file" -} - -############################################## -# Test password auth with the correct password -############################################## -function e2e::auth_password_correct_password() { - echo "$FUNCNAME" > "$REPO/file" - git -C "$REPO" commit -qam "$FUNCNAME" - - # run with askpass_git with correct password - GIT_SYNC \ - --one-time \ - --git="/$ASKPASS_GIT" \ - --username="my-username" \ - --password="my-password" \ - --repo="file://$REPO" \ - --root="$ROOT" \ - --link="link" \ - - assert_link_exists "$ROOT/link" - assert_file_exists "$ROOT/link/file" - assert_file_eq "$ROOT/link/file" "$FUNCNAME" -} - ############################################## # Test HTTP with password ##############################################