summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-11-15 12:05:03 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-15 12:05:03 +0900
commit558d8568dfc92c4675495ab5cb7ef5d0655f88f8 (patch)
treef48f81ce8f3b64656d6e99376e20aebeb59fd1a4 /t
parentMerge branch 'js/mingw-full-version-in-resources' into maint (diff)
parentwincred: handle empty username/password correctly (diff)
downloadtgif-558d8568dfc92c4675495ab5cb7ef5d0655f88f8.tar.xz
Merge branch 'js/wincred-empty-cred' into maint
MinGW updates. * js/wincred-empty-cred: wincred: handle empty username/password correctly t0302: check helper can handle empty credentials
Diffstat (limited to 't')
-rwxr-xr-xt/lib-credential.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/lib-credential.sh b/t/lib-credential.sh
index d8e41f7ddd..937b831ea6 100755
--- a/t/lib-credential.sh
+++ b/t/lib-credential.sh
@@ -44,6 +44,7 @@ helper_test_clean() {
reject $1 https example.com user2
reject $1 http path.tld user
reject $1 https timeout.tld user
+ reject $1 https sso.tld
}
reject() {
@@ -250,6 +251,24 @@ helper_test() {
password=pass2
EOF
'
+
+ test_expect_success "helper ($HELPER) can store empty username" '
+ check approve $HELPER <<-\EOF &&
+ protocol=https
+ host=sso.tld
+ username=
+ password=
+ EOF
+ check fill $HELPER <<-\EOF
+ protocol=https
+ host=sso.tld
+ --
+ protocol=https
+ host=sso.tld
+ username=
+ password=
+ EOF
+ '
}
helper_test_timeout() {