Merge pull request #550 from thockin/v3-passwd_e2e_split

v3: Split password test to 2 - right and wrong passwd
This commit is contained in:
Kubernetes Prow Robot 2022-07-02 03:53:24 -07:00 committed by GitHub
commit 0e4b04d70a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions

View File

@ -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 \