]> granicus.if.org Git - curl/commitdiff
test1282: verify the ftp-gss check
authorDaniel Stenberg <daniel@haxx.se>
Thu, 22 Dec 2016 23:07:36 +0000 (00:07 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 24 Dec 2016 22:35:54 +0000 (23:35 +0100)
tests/data/Makefile.inc
tests/data/test1282 [new file with mode: 0644]

index deabaacc5db2292527b5ef5793065717c69ae519..9329bf9fa75a7473586e92dbc83d12ffdd9d991c 100644 (file)
@@ -129,7 +129,7 @@ test1228 test1229 test1230 test1231 test1232 test1233 test1234 test1235 \
 test1236 test1237 test1238 test1239 test1240 test1241 test1242 test1243 \
 test1244 test1245 test1246 test1247 \
 \
-test1280 test1281 \
+test1280 test1281 test1282 \
 \
 test1300 test1301 test1302 test1303 test1304 test1305 test1306 test1307 \
 test1308 test1309 test1310 test1311 test1312 test1313 test1314 test1315 \
diff --git a/tests/data/test1282 b/tests/data/test1282
new file mode 100644 (file)
index 0000000..197356c
--- /dev/null
@@ -0,0 +1,45 @@
+<testcase>
+<info>
+<keywords>
+FTP
+PASV
+RETR
+</keywords>
+</info>
+# Server-side
+<reply>
+<servercmd>
+REPLY PASS 633 XXXXXXXX\x00\x00XXXXXXXX
+</servercmd>
+</reply>
+
+# Client-side
+<client>
+<server>
+ftp
+</server>
+<features>
+GSS-API
+</features>
+ <name>
+FTP with 633 response before gss initialized
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/1282
+</command>
+
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+USER anonymous\r
+PASS ftp@example.com\r
+</protocol>
+
+# 67 == CURLE_LOGIN_DENIED
+<errorcode>
+67
+</errorcode>
+</verify>
+</testcase>