diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-05-10 10:23:28 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-05-10 10:23:29 -0700 |
| commit | 2ca91d1ee07f934fa7f57ba34c397b150eef023f (patch) | |
| tree | d71bd150edc85eedc736f64e896acad327874343 /t/t0300-credentials.sh | |
| parent | c05615e1c5876bea3c35202771d3db83b3336437 (diff) | |
| parent | a5c76569e798ad3656afe6b67f37cbbb2e47f28c (diff) | |
| download | git-2ca91d1ee07f934fa7f57ba34c397b150eef023f.tar.xz | |
Merge branch 'mh/credential-oauth-refresh-token'
The credential subsystem learns to help OAuth framework.
* mh/credential-oauth-refresh-token:
credential: new attribute oauth_refresh_token
Diffstat (limited to 't/t0300-credentials.sh')
| -rwxr-xr-x | t/t0300-credentials.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/t/t0300-credentials.sh b/t/t0300-credentials.sh index b8612ede95..a4f5bba507 100755 --- a/t/t0300-credentials.sh +++ b/t/t0300-credentials.sh @@ -214,6 +214,24 @@ test_expect_success 'credential_approve stores password expiry' ' EOF ' +test_expect_success 'credential_approve stores oauth refresh token' ' + check approve useless <<-\EOF + protocol=http + host=example.com + username=foo + password=bar + oauth_refresh_token=xyzzy + -- + -- + useless: store + useless: protocol=http + useless: host=example.com + useless: username=foo + useless: password=bar + useless: oauth_refresh_token=xyzzy + EOF +' + test_expect_success 'do not bother storing password-less credential' ' check approve useless <<-\EOF protocol=http |
