Skip to content

Commit

Permalink
3 air
Browse files Browse the repository at this point in the history
  • Loading branch information
CCIGAMES committed Mar 2, 2024
1 parent d9383ce commit bffd777
Show file tree
Hide file tree
Showing 6 changed files with 295 additions and 0 deletions.
35 changes: 35 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1289
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 sonic3air-main/framework/external/curl/curl/tests/data/test129
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 sonic3air-main/framework/external/curl/curl/tests/data/test1290
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 sonic3air-main/framework/external/curl/curl/tests/data/test1291
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 sonic3air-main/framework/external/curl/curl/tests/data/test1292
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 sonic3air-main/framework/external/curl/curl/tests/data/test1293
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>

0 comments on commit bffd777

Please sign in to comment.