Commit 082e8a3b authored by Yang Tse's avatar Yang Tse
Browse files

Active mode FTP test cases with server not establishing data connection

591 -> FTP multi PORT and 425 on upload
592 -> FTP multi PORT and 421 on upload
593 -> FTP multi PORT upload, no data conn and no transient neg. reply
594 -> FTP multi PORT upload, no data conn and no positive prelim. reply

1206 -> FTP PORT and 425 on download
1207 -> FTP PORT and 421 on download
1208 -> FTP PORT download, no data conn and no transient negative reply
1209 -> FTP PORT download, no data conn and no positive preliminary reply
parent fd765c62
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -3,4 +3,11 @@
# per line.
# Lines starting with '#' letters are treated as comments.
811
589
591
592
593
594
1206
1207
1208
1209
+4 −3
Original line number Diff line number Diff line
@@ -47,8 +47,8 @@ test542 test543 test544 test545 test546 test547 test548 test549 test550 \
test551 test552 test553 test554 test555 test556 test557 test560 test561	\
test562 test563 test564 test565 test566 test567 test568 test569 test570	\
test571 test572 test573 test574 test575 test576 test578 test579 test580	\
test581 test582 test583 test584 test585 test586 test587 test588 test589 \
test590 \
test581 test582 test583 test584 test585 test586 test587 test588 test590 \
test591 test592 test593 test594 \
test600 test601 test602 test603 test604	\
test605 test606 test607 test608 test609 test610 test611 test612 test613	\
test614 test615 test616 test617 test618 test619 test620 test621 test622	\
@@ -75,7 +75,8 @@ test1102 test1103 test1104 test1105 test1106 test1107 test1108 test1109 \
test1110 test1111 test1112 test1113 test1114 test1115 test1116 test1117	\
test1118 test1119 test1120 test1121 test1122 test1123 test1124 test1125	\
test1126 test1127 test1128 test1129 test1130 test1131 \
test1200 test1201 test1202 test1203 test1204 test1205 \
test1200 test1201 test1202 test1203 test1204 test1205 test1206 test1207 \
test1208 test1209 \
test1300 test1301 test1302 test1303 test1304 test1305	\
test1306 test1307 test1308 test1309 test1310 test1311 test1312 test1313 \
test1314 \

tests/data/test1206

0 → 100644
+53 −0
Original line number Diff line number Diff line
<testcase>
<info>
<keywords>
FTP
PORT
RETR
NODATACONN425
</keywords>
</info>
# Server-side
<reply>
<data nocheck="yes">
some bytes
</data>
<servercmd>
NODATACONN425
</servercmd>
</reply>

# Client-side
<client>
<server>
ftp
</server>
 <name>
FTP PORT and 425 on download
 </name>
 <command>
--max-time %FTPTIME2 ftp://%HOSTIP:%FTPPORT/1206 -P -
</command>

</client>

# Verify data after the test has been "shot"
<verify>
<strippart>
s/^EPRT \|1\|(.*)/EPRT \|1\|/
</strippart>
<protocol>
USER anonymous
PASS ftp@example.com
PWD
EPRT |1|
TYPE I
SIZE 1206
RETR 1206
QUIT
</protocol>
<errorcode>
19
</errorcode>
</verify>
</testcase>

tests/data/test1207

0 → 100644
+53 −0
Original line number Diff line number Diff line
<testcase>
<info>
<keywords>
FTP
PORT
RETR
NODATACONN421
</keywords>
</info>
# Server-side
<reply>
<data nocheck="yes">
some bytes
</data>
<servercmd>
NODATACONN421
</servercmd>
</reply>

# Client-side
<client>
<server>
ftp
</server>
 <name>
FTP PORT and 421 on download
 </name>
 <command>
--max-time %FTPTIME2 ftp://%HOSTIP:%FTPPORT/1207 -P -
</command>

</client>

# Verify data after the test has been "shot"
<verify>
<strippart>
s/^EPRT \|1\|(.*)/EPRT \|1\|/
</strippart>
<protocol>
USER anonymous
PASS ftp@example.com
PWD
EPRT |1|
TYPE I
SIZE 1207
RETR 1207
QUIT
</protocol>
<errorcode>
19
</errorcode>
</verify>
</testcase>

tests/data/test1208

0 → 100644
+53 −0
Original line number Diff line number Diff line
<testcase>
<info>
<keywords>
FTP
PORT
RETR
NODATACONN150
</keywords>
</info>
# Server-side
<reply>
<data nocheck="yes">
some bytes
</data>
<servercmd>
NODATACONN150
</servercmd>
</reply>

# Client-side
<client>
<server>
ftp
</server>
 <name>
FTP PORT download, no data conn and no transient negative reply
 </name>
 <command>
--max-time %FTPTIME2 ftp://%HOSTIP:%FTPPORT/1208 -P -
</command>

</client>

# Verify data after the test has been "shot"
<verify>
<strippart>
s/^EPRT \|1\|(.*)/EPRT \|1\|/
</strippart>
<protocol>
USER anonymous
PASS ftp@example.com
PWD
EPRT |1|
TYPE I
SIZE 1208
RETR 1208
QUIT
</protocol>
<errorcode>
19
</errorcode>
</verify>
</testcase>
Loading