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
295 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
sonic3air-main/framework/external/curl/curl/tests/data/test1289
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> | ||
HTTP | ||
HTTP GET | ||
globbing | ||
</keywords> | ||
</info> | ||
|
||
# | ||
# Server-side | ||
<reply> | ||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<name> | ||
globbing with overflow and bad syntxx | ||
</name> | ||
<command> | ||
http://ur%20[0-60000000000000000000 | ||
</command> | ||
</client> | ||
|
||
# Verify data after the test has been "shot" | ||
<verify> | ||
# curl: (3) [globbing] bad range in column | ||
<errorcode> | ||
3 | ||
</errorcode> | ||
</verify> | ||
</testcase> |
57 changes: 57 additions & 0 deletions
57
sonic3air-main/framework/external/curl/curl/tests/data/test129
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 | ||
HTTP GET | ||
</keywords> | ||
</info> | ||
|
||
# | ||
# Server-side | ||
<reply> | ||
<data nocheck="yes"> | ||
HTTP/1.2 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Server: test-server/fake | ||
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT | ||
ETag: "21025-dc7-39462498" | ||
Accept-Ranges: bytes | ||
Content-Length: 6 | ||
Connection: close | ||
Content-Type: text/html | ||
Funny-head: yesyes | ||
|
||
-foo- | ||
</data> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<name> | ||
HTTP/1.2 is rejected | ||
</name> | ||
<command> | ||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER | ||
</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: */* | ||
|
||
</protocol> | ||
# CURLE_UNSUPPORTED_PROTOCOL | ||
<errorcode> | ||
1 | ||
</errorcode> | ||
</verify> | ||
</testcase> |
46 changes: 46 additions & 0 deletions
46
sonic3air-main/framework/external/curl/curl/tests/data/test1290
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,46 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
globbing | ||
</keywords> | ||
</info> | ||
|
||
# | ||
# Server-side | ||
<reply> | ||
<data> | ||
HTTP/1.1 200 OK | ||
Content-Length: 6 | ||
Connection: close | ||
Content-Type: text/html | ||
|
||
-foo- | ||
</data> | ||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<name> | ||
Verify URL globbing ignores [] | ||
</name> | ||
<command> | ||
"http://%HOSTIP:%HTTPPORT/we/want/[]/page/%TESTNUMBER" | ||
</command> | ||
</client> | ||
|
||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
GET /we/want/[]/page/%TESTNUMBER HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
</protocol> | ||
</verify> | ||
</testcase> |
44 changes: 44 additions & 0 deletions
44
sonic3air-main/framework/external/curl/curl/tests/data/test1291
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,44 @@ | ||
<testcase> | ||
# This test case is primarily meant to verify that parsing and adding the 100K | ||
# files is a swift operation. | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP PUT | ||
</keywords> | ||
</info> | ||
|
||
# | ||
# Server-side | ||
<reply> | ||
<data> | ||
</data> | ||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
<server> | ||
none | ||
</server> | ||
<name> | ||
Attempt to upload 1000 files but fail immediately | ||
</name> | ||
<command> | ||
-K log/cmd%TESTNUMBER --fail-early | ||
</command> | ||
<file name="log/upload-this"> | ||
XXXXXXXx | ||
</file> | ||
# generate the config file | ||
<precheck> | ||
perl -e 'for(1 .. 1000) { printf("upload-file=log/upload-this\nurl=htttttp://non-existing-host.haxx.se/upload/%TESTNUMBER\n", $_);}' > log/cmd%TESTNUMBER; | ||
</precheck> | ||
</client> | ||
|
||
# Verify data after the test has been "shot" | ||
<verify> | ||
<errorcode> | ||
1 | ||
</errorcode> | ||
</verify> | ||
</testcase> |
48 changes: 48 additions & 0 deletions
48
sonic3air-main/framework/external/curl/curl/tests/data/test1292
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,48 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
HTTP added headers | ||
HTTP replaced headers | ||
</keywords> | ||
</info> | ||
# | ||
# Server-side | ||
<reply> | ||
<data> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Server: test-server/fake swsclose | ||
Content-Type: text/html | ||
Funny-head: yesyes | ||
|
||
</data> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<name> | ||
Replaced internal headers with a blank one | ||
</name> | ||
<command> | ||
-H "Host;" -H "Accept;" http://%HOSTIP:%HTTPPORT/%TESTNUMBER | ||
</command> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
GET /%TESTNUMBER HTTP/1.1 | ||
Host: | ||
User-Agent: curl/%VERSION | ||
Accept: | ||
|
||
</protocol> | ||
</verify> | ||
</testcase> |
65 changes: 65 additions & 0 deletions
65
sonic3air-main/framework/external/curl/curl/tests/data/test1293
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,65 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
-F | ||
</keywords> | ||
</info> | ||
|
||
# | ||
# Server-side | ||
<reply> | ||
<data nocheck="yes"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Server: test-server/fake | ||
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT | ||
ETag: "21025-dc7-39462498" | ||
Accept-Ranges: bytes | ||
Content-Length: 6 | ||
Connection: close | ||
Content-Type: text/html | ||
Funny-head: yesyes | ||
|
||
-foo- | ||
</data> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<name> | ||
Multipart formpost to two URLs, the first failing | ||
</name> | ||
<command> | ||
http://0 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -F= | ||
</command> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<strippart> | ||
s/^--------------------------[a-z0-9]*/------------------------------/ | ||
s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/ | ||
</strippart> | ||
<protocol> | ||
POST /%TESTNUMBER HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
Content-Length: 126 | ||
Content-Type: multipart/form-data; boundary=---------------------------- | ||
|
||
------------------------------ | ||
Content-Disposition: form-data | ||
|
||
|
||
-------------------------------- | ||
</protocol> | ||
</verify> | ||
</testcase> |