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 7b9dd9f commit 23dd292
Show file tree
Hide file tree
Showing 8 changed files with 391 additions and 0 deletions.
49 changes: 49 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1219
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<testcase>
<info>
<keywords>
FTP
PASV
RETR
</keywords>
</info>
# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
<servercmd>
REPLY welcome 230 welcome without password
</servercmd>
</reply>

# Client-side
<client>
<server>
ftp
</server>
<name>
FTP with no user+password required (230 response)
</name>
<command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
</command>

</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
PWD
EPSV
TYPE I
SIZE %TESTNUMBER
RETR %TESTNUMBER
QUIT
</protocol>
</verify>
</testcase>
45 changes: 45 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test122
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<testcase>
<info>
<keywords>
FTP
PASV
Resume
</keywords>
</info>
# Server-side
<reply>
<size>
5
</size>
<servercmd>
REPLY EPSV 500 no such command
</servercmd>
</reply>

# Client-side
<client>
<server>
ftp
</server>
<name>
FTP download resume with whole file already downloaded
</name>
<command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -C 5
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS [email protected]
PWD
EPSV
PASV
TYPE I
SIZE %TESTNUMBER
QUIT
</protocol>
</verify>
</testcase>
37 changes: 37 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1220
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<testcase>
<info>
<keywords>
FILE
URL
</keywords>
</info>

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

# Client-side
<client>
<server>
file
</server>
<name>
file:// URLs with query string
</name>
<command option="no-include">
file://localhost%FILE_PWD/log/test%TESTNUMBER.txt?a_query=foobar#afragment
</command>
<file name="log/test%TESTNUMBER.txt">
contents in a single file
</file>
</client>

# Verify data after the test has been "shot"
<verify>
<stdout>
contents in a single file
</stdout>
</verify>
</testcase>
58 changes: 58 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1223
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>

#
# disable data check since it gets sent to stdout and is verified there
<reply>
<data nocheck="yes">
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Content-Length: 4
Connection: close
Content-Type: text/html

hej
</data>
</reply>

#
# Client-side
<client>
<server>
http
</server>
<name>
HTTP GET -w remote_ip and -w remote_port
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w 'IP %{remote_ip} and PORT %{remote_port}\n'
</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>
<stdout>
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Content-Length: 4
Connection: close
Content-Type: text/html

hej
IP %HOSTIP and PORT %HTTPPORT
</stdout>
</verify>
</testcase>
49 changes: 49 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1224
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<testcase>
<info>
<keywords>
FTP
PASV
RETR
</keywords>
</info>
# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
</reply>

# Client-side
<client>
<server>
ftp
</server>
<name>
FTP fetch a file from the root directory
</name>
<command>
ftp://%HOSTIP:%FTPPORT//%TESTNUMBER
</command>

</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS [email protected]
PWD
CWD /
EPSV
TYPE I
SIZE %TESTNUMBER
RETR %TESTNUMBER
QUIT
</protocol>
</verify>
</testcase>
56 changes: 56 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1225
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<testcase>
<info>
<keywords>
FTP
PASV
RETR
</keywords>
</info>
# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
</reply>

# Client-side
<client>
<server>
ftp
</server>
<name>
FTP fetch two files using absolute paths
</name>
<command>
ftp://%HOSTIP:%FTPPORT//foo/%TESTNUMBER ftp://%HOSTIP:%FTPPORT//foo/bar/%TESTNUMBER
</command>

</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS [email protected]
PWD
CWD /
CWD foo
EPSV
TYPE I
SIZE %TESTNUMBER
RETR %TESTNUMBER
CWD /
CWD foo
CWD bar
EPSV
SIZE %TESTNUMBER
RETR %TESTNUMBER
QUIT
</protocol>
</verify>
</testcase>
49 changes: 49 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1226
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<testcase>
<info>
<keywords>
FTP
PASV
RETR
</keywords>
</info>
# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
</reply>

# Client-side
<client>
<server>
ftp
</server>
<name>
FTP fetch a file from the root directory with singlecwd
</name>
<command>
ftp://%HOSTIP:%FTPPORT//%TESTNUMBER --ftp-method singlecwd
</command>

</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS [email protected]
PWD
CWD /
EPSV
TYPE I
SIZE %TESTNUMBER
RETR %TESTNUMBER
QUIT
</protocol>
</verify>
</testcase>
48 changes: 48 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1227
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<testcase>
<info>
<keywords>
FTP
PASV
RETR
</keywords>
</info>
# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
</reply>

# Client-side
<client>
<server>
ftp
</server>
<name>
FTP fetch a file from the root directory with nocwd
</name>
<command>
ftp://%HOSTIP:%FTPPORT//%TESTNUMBER --ftp-method nocwd
</command>

</client>

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

0 comments on commit 23dd292

Please sign in to comment.