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 5df864c commit 5d4e178
Show file tree
Hide file tree
Showing 6 changed files with 352 additions and 0 deletions.
56 changes: 56 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1430
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>

<reply>
<data nocheck="yes">
HTTP/1.1 -12 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 GET with negative response code
</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>
# 1 - CURLE_UNSUPPORTED_PROTOCOL
# Due to invalid HTTP response code
<errorcode>
1
</errorcode>
</verify>
</testcase>
54 changes: 54 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1431
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>

<reply>
<data nocheck="yes">
HTTP/1.1 2 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 GET with single-digit response code
</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>
<errorcode>
1
</errorcode>
</verify>
</testcase>
55 changes: 55 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1432
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>

<reply>
<data nocheck="yes">
HTTP/1.1 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 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 GET with 100-digit response code and survive
</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>
<errorcode>
1
</errorcode>
</verify>
</testcase>
55 changes: 55 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1433
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>

<reply>
<data nocheck="yes">
HTTP/1.0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 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 GET with 100-digit subversion number in response
</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>
<errorcode>
1
</errorcode>
</verify>
</testcase>
88 changes: 88 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1434
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
Resume
</keywords>
</info>

# Server-side
<reply>
# Some servers (e.g. Apache 1.2) respond this way to an invalid byte range
<data>
HTTP/1.1 200 OK
Connection: close
Content-Length: 100
Content-Type: text/plain

012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
</data>

# The file data that exists at the start of the test must be included in
# the verification.
<datacheck>
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
HTTP/1.1 200 OK
Connection: close
Content-Length: 100
Content-Type: text/plain

</datacheck>
</reply>

# Client-side
<client>
<server>
http
</server>
<name>
HTTP GET resume at exactly the existing file size is fine
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C 100
</command>
<file name="log/curl%TESTNUMBER.out">
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
</file>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Range: bytes=100-
User-Agent: curl/%VERSION
Accept: */*

</protocol>
</verify>
</testcase>
44 changes: 44 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1435
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
unix sockets
</keywords>
</info>

<reply>
<data>
HTTP/1.1 200 OK
Date: Sun, 16 Nov 2014 23:47:38 GMT
Content-Length: 17

Based on test300
</data>
</reply>

<client>
<features>
unix-sockets
</features>
<server>
http-unix
</server>
<name>
simple HTTP GET over Unix socket
</name>
<command>
--unix-socket %HTTPUNIXPATH http://server-interpreted.example.com/%TESTNUMBER
</command>
</client>

<verify>
<protocol>
GET /%TESTNUMBER HTTP/1.1
Host: server-interpreted.example.com
User-Agent: curl/%VERSION
Accept: */*

</protocol>
</verify>
</testcase>

0 comments on commit 5d4e178

Please sign in to comment.