From 8dc83a5b21c762f84f6a45a9f7e79af5eb1ee3e0 Mon Sep 17 00:00:00 2001 From: "Crunch (Chaz9)" Date: Sat, 2 Mar 2024 19:58:47 +0000 Subject: [PATCH] 3 air --- .../external/curl/curl/tests/data/test406 | 67 +++++++++++++++++++ .../external/curl/curl/tests/data/test407 | 60 +++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 sonic3air-main/framework/external/curl/curl/tests/data/test406 create mode 100644 sonic3air-main/framework/external/curl/curl/tests/data/test407 diff --git a/sonic3air-main/framework/external/curl/curl/tests/data/test406 b/sonic3air-main/framework/external/curl/curl/tests/data/test406 new file mode 100644 index 00000000..f59f426c --- /dev/null +++ b/sonic3air-main/framework/external/curl/curl/tests/data/test406 @@ -0,0 +1,67 @@ + + + +FTP +FTPS +PORT +LIST + + +# +# Server-side + +# When doing LIST, we get the default list output hard-coded in the test +# FTPS server + +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 + + + +# +# Client-side + + +SSL + + +ftps + + +FTPS dir list, PORT with specified IP + + +-k --ftp-ssl-control -P %CLIENTIP ftps://%HOSTIP:%FTPSPORT/ + + + +# +# Verify data after the test has been "shot" + +# Strip all valid kinds of PORT and EPRT that curl can send + +^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3} +^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\| + + +USER anonymous +PASS ftp@example.com +PBSZ 0 +PROT C +PWD +PORT 127,0,0,1,243,212 +TYPE A +LIST +QUIT + + + diff --git a/sonic3air-main/framework/external/curl/curl/tests/data/test407 b/sonic3air-main/framework/external/curl/curl/tests/data/test407 new file mode 100644 index 00000000..1db4c5ca --- /dev/null +++ b/sonic3air-main/framework/external/curl/curl/tests/data/test407 @@ -0,0 +1,60 @@ + + + +FTP +FTPS +PASV +RETR + + + +# Server-side + + +data blobb + + +# data is sent to stdout + + +# Client-side + + +SSL + + +ftps + + +Get two FTPS files from the same remote dir: no second CWD + + +-k --ftp-ssl-control ftps://%HOSTIP:%FTPSPORT/a/path/%TESTNUMBER ftps://%HOSTIP:%FTPSPORT/a/path/%TESTNUMBER + + +data blobb +data blobb + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PBSZ 0 +PROT C +PWD +CWD a +CWD path +EPSV +TYPE I +SIZE %TESTNUMBER +RETR %TESTNUMBER +EPSV +SIZE %TESTNUMBER +RETR %TESTNUMBER +QUIT + + +