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 12ca78e commit 7213c6c
Show file tree
Hide file tree
Showing 60 changed files with 4,315 additions and 0 deletions.
64 changes: 64 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test212
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<testcase>
<info>
<keywords>
FTP
EPRT
</keywords>
</info>

# Server-side
<reply>
<data>
data blobb
</data>
<servercmd>
REPLY EPRT 500 no such command
</servercmd>
</reply>

# Client-side
<client>
<server>
ftp
</server>
# EPRT is only sent when IPv6 is enabled
<features>
ipv6
</features>
<name>
Get two FTP files with no remote EPRT support
</name>
<command>
ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER -P -
</command>
<stdout>
data blobb
data blobb
</stdout>
</client>

# Verify data after the test has been "shot"
<verify>
# Strip the addresses and port number but leave the rest
<strippart>
s/^(EPRT \|1\|)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|/$1/
s/^(PORT )\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}/$1/
</strippart>
<protocol>
USER anonymous
PASS [email protected]
PWD
CWD a
CWD path
EPRT |1|
PORT
TYPE I
SIZE %TESTNUMBER
RETR %TESTNUMBER
PORT
SIZE %TESTNUMBER
RETR %TESTNUMBER
QUIT
</protocol>
</verify>
</testcase>
118 changes: 118 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test213
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<testcase>
<info>
<keywords>
HTTP
HTTP POST
HTTP CONNECT
HTTP proxy
HTTP proxy NTLM auth
NTLM
</keywords>
</info>

# Server-side
<reply>

# this is returned first since we get no proxy-auth
<connect1001>
HTTP/1.1 407 Authorization Required to proxy me my dear
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
Content-Length: 33

And you should ignore this data.
</connect1001>

# This is supposed to be returned when the server gets the second
# Authorization: NTLM line passed-in from the client
<connect1002>
HTTP/1.1 200 Things are fine in proxy land
Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1

</connect1002>

# this is returned when we get a GET!
<data2>
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Content-Length: 7
Connection: close
Content-Type: text/html
Funny-head: yesyes

daniel
</data2>

# then this is returned when we get proxy-auth
<data1000>
HTTP/1.1 200 OK swsbounce
Server: no

Nice proxy auth sir!
</data1000>

<datacheck>
HTTP/1.1 407 Authorization Required to proxy me my dear
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
Content-Length: 33

HTTP/1.1 200 Things are fine in proxy land
Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1

HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Content-Length: 7
Connection: close
Content-Type: text/html
Funny-head: yesyes

daniel
</datacheck>
</reply>

# Client-side
<client>
<server>
http
</server>
<features>
NTLM
SSL
!SSPI
proxy
</features>
<name>
HTTP 1.0 proxy CONNECT auth NTLM and then POST
</name>
<command>
http://test.remote.example.com.%TESTNUMBER:%HTTPPORT/path/%TESTNUMBER0002 --proxy1.0 http://%HOSTIP:%HTTPPORT --proxy-user testuser:testpass --proxy-ntlm --proxytunnel -d "postit"
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol nonewline="yes">
CONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.0
Host: test.remote.example.com.%TESTNUMBER:%HTTPPORT
Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
User-Agent: curl/%VERSION
Proxy-Connection: Keep-Alive

CONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.0
Host: test.remote.example.com.%TESTNUMBER:%HTTPPORT
Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
User-Agent: curl/%VERSION
Proxy-Connection: Keep-Alive

POST /path/%TESTNUMBER0002 HTTP/1.1
Host: test.remote.example.com.%TESTNUMBER:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
Content-Length: 6
Content-Type: application/x-www-form-urlencoded

postit
</protocol>
</verify>
</testcase>
52 changes: 52 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test214
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>
#
# Server-side
<reply>
<data>
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Content-Length: 6
Content-Type: text/html
Funny-head: yesyes

-foo-
</data>
</reply>

#
# Client-side
<client>
<server>
http
</server>
<name>
HTTP URL with escaped { and }
</name>
<command>
"http://%HOSTIP:%HTTPPORT/\{\}\/%TESTNUMBER"
</command>
<setenv>
# Needed for MSYS2 to not convert all backslashes to forward slashes
MSYS2_ARG_CONV_EXCL=http://
</setenv>
</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>

</verify>
</testcase>
58 changes: 58 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test215
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<testcase>
<info>
<keywords>
FTP
</keywords>
</info>

# Server-side
<reply>
# When doing LIST, we get the default list output hard-coded in the test
# FTP server
<datacheck mode="text">
total 20
drwxr-xr-x 8 98 98 512 Oct 22 13:06 .
drwxr-xr-x 8 98 98 512 Oct 22 13:06 ..
drwxr-xr-x 2 98 98 512 May 2 1996 .NeXT
-r--r--r-- 1 0 1 35 Jul 16 1996 README
lrwxrwxrwx 1 0 1 7 Dec 9 1999 bin -> usr/bin
dr-xr-xr-x 2 0 1 512 Oct 1 1997 dev
drwxrwxrwx 2 98 98 512 May 29 16:04 download.html
dr-xr-xr-x 2 0 1 512 Nov 30 1995 etc
drwxrwxrwx 2 98 1 512 Oct 30 14:33 pub
dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
</datacheck>

</reply>

# Client-side
<client>
<server>
ftp
</server>
<name>
Get two FTP dir listings from the same remote dir: no second CWD
</name>
<command>
ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER/ ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER/
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS [email protected]
PWD
CWD a
CWD path
CWD %TESTNUMBER
EPSV
TYPE A
LIST
EPSV
LIST
QUIT
</protocol>
</verify>
</testcase>
45 changes: 45 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test216
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<testcase>
<info>
<keywords>
FTP
</keywords>
</info>

# Server-side
<reply>
</reply>

# Client-side
<client>
<server>
ftp
</server>
<name>
FTP upload two files to the same dir
</name>
<command>
-T log/upload.%TESTNUMBER ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER/ -T log/upload.%TESTNUMBER ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER/%2e%2eanotherup.%TESTNUMBER
</command>
<file name="log/upload.%TESTNUMBER">
upload this file twice
</file>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS [email protected]
PWD
CWD a
CWD path
CWD %TESTNUMBER
EPSV
TYPE I
STOR upload.%TESTNUMBER
EPSV
STOR ..anotherup.%TESTNUMBER
QUIT
</protocol>
</verify>
</testcase>
Loading

0 comments on commit 7213c6c

Please sign in to comment.