forked from Xeeynamo/sonic-hybrid-rsdk
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
364 additions
and
0 deletions.
There are no files selected for viewing
85 changes: 85 additions & 0 deletions
85
sonic3air-main/framework/external/curl/curl/tests/data/test1436
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
unix sockets | ||
</keywords> | ||
</info> | ||
|
||
<reply> | ||
<data1> | ||
HTTP/1.1 200 OK | ||
Date: Mon, 17 Nov 2014 13:42:47 GMT | ||
Content-Length: 6 | ||
|
||
First | ||
</data1> | ||
<data2> | ||
HTTP/1.1 200 OK | ||
Date: Mon, 17 Nov 2014 13:42:48 GMT | ||
Content-Length: 7 | ||
|
||
Second | ||
</data2> | ||
<data3> | ||
HTTP/1.1 200 OK | ||
Date: Mon, 17 Nov 2014 13:42:49 GMT | ||
Content-Length: 6 | ||
|
||
Third | ||
</data3> | ||
</reply> | ||
|
||
<client> | ||
<features> | ||
unix-sockets | ||
</features> | ||
<server> | ||
http-unix | ||
</server> | ||
<name> | ||
HTTP requests with multiple connections over Unix socket | ||
</name> | ||
<command> | ||
--unix-socket %HTTPUNIXPATH http://one.example.com/%TESTNUMBER0001 http://two.example.com/%TESTNUMBER0002 http://one.example.com/%TESTNUMBER0003 | ||
</command> | ||
</client> | ||
|
||
<verify> | ||
<protocol> | ||
GET /%TESTNUMBER0001 HTTP/1.1 | ||
Host: one.example.com | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
GET /%TESTNUMBER0002 HTTP/1.1 | ||
Host: two.example.com | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
GET /%TESTNUMBER0003 HTTP/1.1 | ||
Host: one.example.com | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
</protocol> | ||
<stdout> | ||
HTTP/1.1 200 OK | ||
Date: Mon, 17 Nov 2014 13:42:47 GMT | ||
Content-Length: 6 | ||
|
||
First | ||
HTTP/1.1 200 OK | ||
Date: Mon, 17 Nov 2014 13:42:48 GMT | ||
Content-Length: 7 | ||
|
||
Second | ||
HTTP/1.1 200 OK | ||
Date: Mon, 17 Nov 2014 13:42:49 GMT | ||
Content-Length: 6 | ||
|
||
Third | ||
</stdout> | ||
</verify> | ||
</testcase> |
82 changes: 82 additions & 0 deletions
82
sonic3air-main/framework/external/curl/curl/tests/data/test1437
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
HTTP Digest auth | ||
</keywords> | ||
</info> | ||
# Server-side | ||
<reply> | ||
<data> | ||
HTTP/1.1 401 Authorization Required swsclose | ||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 | ||
WWW-Authenticate: Digest realm="testrealm", algorithm=MD5, algorithm=MD5, nonce=1, nonce=2 | ||
Content-Type: text/html; charset=iso-8859-1 | ||
Content-Length: 26 | ||
|
||
This is not the real page | ||
</data> | ||
|
||
# This is supposed to be returned when the server gets a | ||
# Authorization: Digest line passed-in from the client | ||
<data1000> | ||
HTTP/1.1 200 OK swsclose | ||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 | ||
Content-Type: text/html; charset=iso-8859-1 | ||
Content-Length: 23 | ||
|
||
This IS the real page! | ||
</data1000> | ||
|
||
<datacheck> | ||
HTTP/1.1 401 Authorization Required swsclose | ||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 | ||
WWW-Authenticate: Digest realm="testrealm", algorithm=MD5, algorithm=MD5, nonce=1, nonce=2 | ||
Content-Type: text/html; charset=iso-8859-1 | ||
Content-Length: 26 | ||
|
||
HTTP/1.1 200 OK swsclose | ||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 | ||
Content-Type: text/html; charset=iso-8859-1 | ||
Content-Length: 23 | ||
|
||
This IS the real page! | ||
</datacheck> | ||
|
||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<features> | ||
!SSPI | ||
crypto | ||
</features> | ||
<name> | ||
HTTP with duplicated WWW-Authenticate parameters | ||
</name> | ||
<command> | ||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --digest | ||
</command> | ||
</client> | ||
|
||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
GET /%TESTNUMBER HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
GET /%TESTNUMBER HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
Authorization: Digest username="testuser", realm="testrealm", nonce="2", uri="/%TESTNUMBER", response="4376eb639bf8e7343a6e7b56e1b89c4f", algorithm=MD5 | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
</protocol> | ||
</verify> | ||
</testcase> |
57 changes: 57 additions & 0 deletions
57
sonic3air-main/framework/external/curl/curl/tests/data/test1438
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
protocol | ||
--write-out | ||
</keywords> | ||
</info> | ||
# Server-side | ||
<reply> | ||
<data nocheck="yes"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Content-Length: 9 | ||
Connection: close | ||
Content-Type: text/plain | ||
|
||
testdata | ||
</data> | ||
|
||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
|
||
<name> | ||
Check if %{scheme} returns HTTP | ||
</name> | ||
<command> | ||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --write-out '%{scheme}' | ||
</command> | ||
</client> | ||
|
||
# Verify data | ||
<verify> | ||
<stdout nonewline="yes"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Content-Length: 9 | ||
Connection: close | ||
Content-Type: text/plain | ||
|
||
testdata | ||
HTTP | ||
</stdout> | ||
<protocol> | ||
GET /%TESTNUMBER HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
</protocol> | ||
</verify> | ||
</testcase> |
56 changes: 56 additions & 0 deletions
56
sonic3air-main/framework/external/curl/curl/tests/data/test1439
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
--write-out | ||
</keywords> | ||
</info> | ||
# Server-side | ||
<reply> | ||
<data nocheck="yes"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Content-Length: 9 | ||
Connection: close | ||
Content-Type: text/plain | ||
|
||
testdata | ||
</data> | ||
|
||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
|
||
<name> | ||
Check if %{http_version} returns 1.1 | ||
</name> | ||
<command> | ||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --write-out '%{http_version}' | ||
</command> | ||
</client> | ||
|
||
# Verify data | ||
<verify> | ||
<stdout nonewline="yes"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Content-Length: 9 | ||
Connection: close | ||
Content-Type: text/plain | ||
|
||
testdata | ||
1.1 | ||
</stdout> | ||
<protocol> | ||
GET /%TESTNUMBER HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
</protocol> | ||
</verify> | ||
</testcase> |
49 changes: 49 additions & 0 deletions
49
sonic3air-main/framework/external/curl/curl/tests/data/test144
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
FTP | ||
PORT | ||
NLST | ||
--data-binary | ||
</keywords> | ||
</info> | ||
# Server-side | ||
<reply> | ||
<data> | ||
</data> | ||
<servercmd> | ||
REPLY NLST 450 No files found | ||
</servercmd> | ||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
<server> | ||
ftp | ||
</server> | ||
<name> | ||
FTP NLST dir list without contents, using PORT | ||
</name> | ||
<command> | ||
ftp://%HOSTIP:%FTPPORT/ -P - -l | ||
</command> | ||
</client> | ||
|
||
# Verify data after the test has been "shot" | ||
<verify> | ||
# Strip all valid kinds of PORT and EPRT that curl can send | ||
<strip> | ||
^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3} | ||
^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\| | ||
</strip> | ||
<protocol> | ||
USER anonymous | ||
PASS [email protected] | ||
PWD | ||
PORT 127,0,0,1,243,212 | ||
TYPE A | ||
NLST | ||
QUIT | ||
</protocol> | ||
</verify> | ||
</testcase> |
35 changes: 35 additions & 0 deletions
35
sonic3air-main/framework/external/curl/curl/tests/data/test1440
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
--write-out | ||
FILE | ||
</keywords> | ||
</info> | ||
# Server-side | ||
<reply> | ||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
<server> | ||
file | ||
</server> | ||
|
||
<name> | ||
Check --write-out with trailing %{ | ||
</name> | ||
<command> | ||
file://localhost/%PWD/log/non-existent-file.txt --write-out '%{' | ||
</command> | ||
</client> | ||
|
||
# Verify data | ||
<verify> | ||
<errorcode> | ||
37 | ||
</errorcode> | ||
<stdout nonewline="yes"> | ||
%{ | ||
</stdout> | ||
</verify> | ||
</testcase> |