diff options
author | Jeff King <peff@peff.net> | 2012-08-27 09:25:36 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-08-27 10:49:09 -0700 |
commit | 6ac2b3aeb9900a8fb0cd3fd9be0bff00eb3a4b5b (patch) | |
tree | d323ca6e87591eefee98af8ab0abb3accb2f8849 /t/t5551-http-fetch.sh | |
parent | 666aae9aed5a29019d2cd696d4258750c0dc96c7 (diff) | |
download | git-6ac2b3aeb9900a8fb0cd3fd9be0bff00eb3a4b5b.tar.gz |
t: test basic smart-http authentication
We do not currently test authentication over smart-http at
all. In theory, it should work exactly as it does for dumb
http (which we do test). It does indeed work for these
simple tests, but this patch lays the groundwork for more
complex tests in future patches.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5551-http-fetch.sh')
-rwxr-xr-x | t/t5551-http-fetch.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t5551-http-fetch.sh b/t/t5551-http-fetch.sh index be6094be77..342d6af861 100755 --- a/t/t5551-http-fetch.sh +++ b/t/t5551-http-fetch.sh @@ -27,6 +27,8 @@ test_expect_success 'create http-accessible bare repository' ' git push public master:master ' +setup_askpass_helper + cat >exp <<EOF > GET /smart/repo.git/info/refs?service=git-upload-pack HTTP/1.1 > Accept: */* @@ -109,6 +111,15 @@ test_expect_success 'follow redirects (302)' ' git clone $HTTPD_URL/smart-redir-temp/repo.git --quiet repo-t ' +test_expect_success 'clone from password-protected repository' ' + echo two >expect && + set_askpass user@host && + git clone --bare "$HTTPD_URL/auth/smart/repo.git" smart-auth && + expect_askpass both user@host && + git --git-dir=smart-auth log -1 --format=%s >actual && + test_cmp expect actual +' + test -n "$GIT_TEST_LONG" && test_set_prereq EXPENSIVE test_expect_success EXPENSIVE 'create 50,000 tags in the repo' ' |