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 6813b4f commit 519085e
Show file tree
Hide file tree
Showing 8 changed files with 461 additions and 0 deletions.
45 changes: 45 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test332
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<testcase>
<info>
<keywords>
TFTP
TFTP RRQ
FAILURE
</keywords>
</info>

<reply>
<data>
a chunk of
data
returned
to client
</data>
</reply>

#
# Client-side
<client>
<server>
tftp
</server>
<name>
TFTP retrieve with blksize 400
</name>
<command>
tftp://%HOSTIP:%TFTPPORT//%TESTNUMBER --tftp-blksize 400
</command>
</client>

#
# Verify pseudo protocol after the test has been "shot"
<verify>
<protocol>
opcode = 1
mode = octet
tsize = 0
blksize = 400
timeout = 6
filename = /%TESTNUMBER
</protocol>
</verify>
</testcase>
35 changes: 35 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test333
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<testcase>
<info>
<keywords>
command-line
</keywords>
</info>

#
# Server-side
<reply>
</reply>

#
# Client-side
<client>
<server>
none
</server>
<name>
Try a non-boolean command line option with --no-
</name>
<command>
--no-proxy "hey" http://%HOSTIP:%NOLISTENPORT/%TESTNUMBER
</command>
</client>

#
# Verify data after the test has been "shot"
<verify>
# detected the bad --no- prefix
<errorcode>
2
</errorcode>
</verify>
</testcase>
42 changes: 42 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test334
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<testcase>
<info>
<keywords>
HTTP
204
</keywords>
</info>
# Server-side
<reply>
<data>
HTTP/1.1 204 No Content
Date: Mon, 13 Nov 2000 13:41:09 GMT
Server: myown/1.0
Transfer-Encoding: chunked

</data>
</reply>

# Client-side
<client>
<server>
http
</server>
<name>
HTTP 204 No content with chunked header
</name>
<command>
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER
</command>
</client>

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

</protocol>
</verify>
</testcase>
100 changes: 100 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test335
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<testcase>
# Mostly a duplicate of test168
<info>
<keywords>
HTTP
HTTP GET
HTTP proxy
HTTP proxy Digest auth
HTTP Digest auth
HTTP auth in URL
</keywords>
</info>

# Server-side
<reply>

# this is returned first since we get no proxy-auth
<data>
HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"

And you should ignore this data.
</data>

# then this is returned since we get no server-auth
<data1000>
HTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose
WWW-Authenticate: Digest realm="realmweirdo", nonce="123456"

you should ignore this data too
</data1000>

<data1001>
HTTP/1.1 200 OK swsclose
Server: no
Content-Length: 15

Nice auth sir!
</data1001>

<datacheck>
HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"

HTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose
WWW-Authenticate: Digest realm="realmweirdo", nonce="123456"

HTTP/1.1 200 OK swsclose
Server: no
Content-Length: 15

Nice auth sir!
</datacheck>
</reply>

# Client-side
<client>
<server>
http
</server>
<features>
!SSPI
crypto
proxy
</features>
<name>
HTTP with proxy Digest and site Digest with creds in URLs
</name>
<command>
http://digest:[email protected]/%TESTNUMBER --proxy http://foo:bar@%HOSTIP:%HTTPPORT --proxy-digest --digest
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
Host: data.from.server.requiring.digest.hohoho.com
User-Agent: curl/%VERSION
Accept: */*
Proxy-Connection: Keep-Alive

GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
Host: data.from.server.requiring.digest.hohoho.com
Proxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/%TESTNUMBER", response="f61609cd8f5bb205ef4e169b2c5626cb"
User-Agent: curl/%VERSION
Accept: */*
Proxy-Connection: Keep-Alive

GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
Host: data.from.server.requiring.digest.hohoho.com
Proxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/%TESTNUMBER", response="f61609cd8f5bb205ef4e169b2c5626cb"
Authorization: Digest username="digest", realm="realmweirdo", nonce="123456", uri="/%TESTNUMBER", response="08a2e2e684047f4219a38ddc189ac00c"
User-Agent: curl/%VERSION
Accept: */*
Proxy-Connection: Keep-Alive

</protocol>
</verify>
</testcase>
58 changes: 58 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test336
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<testcase>
<info>
<keywords>
FTP
PASV
TYPE A
RETR
</keywords>
</info>
# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
<datacheck nonewline="yes">
data
</datacheck>
<servercmd>
REPLY EPSV 500 no such command
REPLY SIZE 500 no such command
</servercmd>
</reply>

# Client-side
<client>
<server>
ftp
</server>
<name>
FTP range download when SIZE doesn't work
</name>
<command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER --range 3-6
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS [email protected]
PWD
EPSV
PASV
TYPE I
SIZE %TESTNUMBER
REST 3
RETR %TESTNUMBER
ABOR
QUIT
</protocol>
</verify>
</testcase>
58 changes: 58 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test337
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<testcase>
<info>
<keywords>
FTP
PASV
TYPE A
RETR
</keywords>
</info>
# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
<datacheck nonewline="yes">
data
</datacheck>
<servercmd>
REPLY EPSV 500 no such command
REPLY SIZE 213 file: 213, Size =51
</servercmd>
</reply>

# Client-side
<client>
<server>
ftp
</server>
<name>
FTP range download with SIZE returning extra crap
</name>
<command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER --range 3-6
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS [email protected]
PWD
EPSV
PASV
TYPE I
SIZE %TESTNUMBER
REST 3
RETR %TESTNUMBER
ABOR
QUIT
</protocol>
</verify>
</testcase>
Loading

0 comments on commit 519085e

Please sign in to comment.