1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-25 17:48:48 -05:00
curl/tests/data/test504
Daniel Stenberg 018dd775c8
tests: add %NOLISTENPORT and use it
The purpose with this variable is to provide a port number that is
reasonably likely to not have a listener on the local host so that tests
can try connect failures against it. It uses port 47 - "reserved"
according to IANA.

Updated six tests to use it instead of the previous different ports.

Assisted-by: Emil Engler
Closes #5270
2020-04-20 22:38:05 +02:00

47 lines
580 B
Plaintext

<testcase>
<info>
<keywords>
HTTP
HTTP GET
HTTP proxy
multi
FAILURE
connect to non-listen
</keywords>
</info>
# Server-side
<reply>
</reply>
# Client-side
<client>
<server>
none
</server>
<features>
http
proxy
</features>
# tool is what to use instead of 'curl'
<tool>
lib504
</tool>
<name>
simple multi through local proxy without listener
</name>
<command>
http://%HOSTIP:%HTTPSPORT/504 %HOSTIP:%NOLISTENPORT
</command>
</client>
# Verify data after the test has been "shot"
# TEST_ERR_SUCCESS is errorcode 120
<verify>
<errorcode>
120
</errorcode>
</verify>
</testcase>