mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
Cleaned up SOCKS tests. Use a magic port number instead of killserver
to do nonlistening server tests, like other tests.
This commit is contained in:
parent
f0ffb35d55
commit
345ffd1163
@ -34,7 +34,7 @@ http
|
||||
socks4
|
||||
</server>
|
||||
<name>
|
||||
HTTP GET via SOCK4 proxy
|
||||
HTTP GET via SOCKS4 proxy
|
||||
</name>
|
||||
<command>
|
||||
--socks4 %HOSTIP:%SOCKSPORT http://%HOSTIP:%HTTPPORT/700
|
||||
|
@ -34,7 +34,7 @@ http
|
||||
socks5
|
||||
</server>
|
||||
<name>
|
||||
HTTP GET via SOCK5 proxy
|
||||
HTTP GET via SOCKS5 proxy
|
||||
</name>
|
||||
<command>
|
||||
--socks5 %HOSTIP:%SOCKSPORT http://%HOSTIP:%HTTPPORT/701
|
||||
|
@ -1,5 +1,5 @@
|
||||
#based off 19
|
||||
<testcase>
|
||||
#based off 19
|
||||
<info>
|
||||
<keywords>
|
||||
HTTP
|
||||
@ -23,10 +23,10 @@ socks4
|
||||
http
|
||||
</features>
|
||||
<name>
|
||||
attempt connect to non-listening socket via sock4 proxy
|
||||
Attempt connect to non-listening HTTP server via SOCKS4 proxy
|
||||
</name>
|
||||
<command>
|
||||
--socks4 %HOSTIP:%SOCKSPORT %HOSTIP:60000
|
||||
--socks4 %HOSTIP:%SOCKSPORT http://%HOSTIP:60000
|
||||
</command>
|
||||
</client>
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
#based off 19
|
||||
<testcase>
|
||||
#based off 19
|
||||
<info>
|
||||
<keywords>
|
||||
HTTP
|
||||
SOCKS4
|
||||
SOCKS5
|
||||
connect to non-listen
|
||||
FAILURE
|
||||
</keywords>
|
||||
@ -17,16 +17,16 @@ FAILURE
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
socks4
|
||||
socks5
|
||||
</server>
|
||||
<features>
|
||||
http
|
||||
</features>
|
||||
<name>
|
||||
attempt connect to non-listening socket via sock5 proxy
|
||||
Attempt connect to non-listening HTTP server via SOCKS5 proxy
|
||||
</name>
|
||||
<command>
|
||||
--socks5 %HOSTIP:%SOCKSPORT %HOSTIP:60000
|
||||
--socks5 %HOSTIP:%SOCKSPORT http://%HOSTIP:60000
|
||||
</command>
|
||||
</client>
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
#based off 19
|
||||
<testcase>
|
||||
#based off 19
|
||||
<info>
|
||||
<keywords>
|
||||
HTTP
|
||||
SOCKS4 fail
|
||||
SOCKS4
|
||||
connect to non-listen
|
||||
FAILURE
|
||||
</keywords>
|
||||
@ -19,17 +19,11 @@ FAILURE
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<killserver>
|
||||
socks4
|
||||
</killserver>
|
||||
<features>
|
||||
http
|
||||
</features>
|
||||
<name>
|
||||
attempt connect to non-listening sock4 proxy
|
||||
Attempt connect to non-listening SOCKS4 proxy
|
||||
</name>
|
||||
<command>
|
||||
--socks4 %HOSTIP:%SOCKSPORT %HOSTIP:60000
|
||||
--socks4 %HOSTIP:60000 http://%HOSTIP:%HTTPPORT/704
|
||||
</command>
|
||||
</client>
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
#based off 19
|
||||
<testcase>
|
||||
#based off 19
|
||||
<info>
|
||||
<keywords>
|
||||
HTTP
|
||||
SOCKS5 fail
|
||||
SOCKS5
|
||||
connect to non-listen
|
||||
FAILURE
|
||||
</keywords>
|
||||
@ -19,21 +19,14 @@ FAILURE
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
http
|
||||
</features>
|
||||
<name>
|
||||
attempt connect to non-listening sock5 proxy
|
||||
Attempt connect to non-listening SOCKS5 proxy
|
||||
</name>
|
||||
<command>
|
||||
--socks5 %HOSTIP:%SOCKSPORT %HOSTIP:60000
|
||||
--socks5 %HOSTIP:60000 http://%HOSTIP:%HTTPPORT/705
|
||||
</command>
|
||||
</client>
|
||||
|
||||
<killserver>
|
||||
sock5
|
||||
</killserver>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<errorcode>
|
||||
|
Loading…
Reference in New Issue
Block a user