aboutsummaryrefslogtreecommitdiff
path: root/t/lib-credential.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-11-09 14:31:31 +0900
committerJunio C Hamano <gitster@pobox.com>2017-11-09 14:31:31 +0900
commit55b5d92092ac68824a5502aeb83b9176ee8e2890 (patch)
treed9f76890d968d33b5ad7280be2e00f3767f2feb9 /t/lib-credential.sh
parentd3e32dc90c800ef35a7e5f52906a0bedae2ae008 (diff)
parent601e1e7897022b1f166c81e58c95e9afa06cac25 (diff)
downloadgit-55b5d92092ac68824a5502aeb83b9176ee8e2890.tar.gz
git-55b5d92092ac68824a5502aeb83b9176ee8e2890.tar.xz
Merge branch 'js/wincred-empty-cred'
MinGW updates. * js/wincred-empty-cred: wincred: handle empty username/password correctly t0302: check helper can handle empty credentials
Diffstat (limited to 't/lib-credential.sh')
-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 d8e41f7dd..937b831ea 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() {