diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-11-15 12:05:03 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-15 12:05:03 +0900 |
commit | 558d8568dfc92c4675495ab5cb7ef5d0655f88f8 (patch) | |
tree | f48f81ce8f3b64656d6e99376e20aebeb59fd1a4 /t | |
parent | 40bc898103359e1c2013585b2e043f556c23e15b (diff) | |
parent | 601e1e7897022b1f166c81e58c95e9afa06cac25 (diff) | |
download | git-558d8568dfc92c4675495ab5cb7ef5d0655f88f8.tar.gz git-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-x | t/lib-credential.sh | 19 |
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() { |