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>
This commit is contained in:
committed by
Junio C Hamano
parent
c7db2d1647
commit
dbcf2bd3de
@ -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
|
||||
|
||||
Reference in New Issue
Block a user