diff options
author | Jeff King <peff@peff.net> | 2014-05-22 11:29:03 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-05-23 21:43:51 +0200 |
commit | dbcf2bd3dec1244fdbafb3ec7312ed14d83c0025 (patch) | |
tree | 123631e429deedf2f9d277608a22c37a6fb5336f /t/t5550-http-fetch-dumb.sh | |
parent | t/lib-httpd: use write_script to copy CGI scripts (diff) | |
download | git-dbcf2bd3dec1244fdbafb3ec7312ed14d83c0025.tar.xz git-dbcf2bd3dec1244fdbafb3ec7312ed14d83c0025.zip |
t5550: test display of remote http error messages
Since commit 426e70d (remote-curl: show server content on
http errors, 2013-04-05), we relay any text/plain error
messages from the remote server to the user. However, we
never tested it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rwxr-xr-x | t/t5550-http-fetch-dumb.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t5550-http-fetch-dumb.sh b/t/t5550-http-fetch-dumb.sh index 1a3a2b6c1a..13defd3886 100755 --- a/t/t5550-http-fetch-dumb.sh +++ b/t/t5550-http-fetch-dumb.sh @@ -171,5 +171,15 @@ test_expect_success 'did not use upload-pack service' ' test_cmp exp act ' +test_expect_success 'git client shows text/plain errors' ' + test_must_fail git clone "$HTTPD_URL/error/text" 2>stderr && + grep "this is the error message" stderr +' + +test_expect_success 'git client does not show html errors' ' + test_must_fail git clone "$HTTPD_URL/error/html" 2>stderr && + ! grep "this is the error message" stderr +' + stop_httpd test_done |