tests: Added new SMTP tests to verify commit 99b40451836d
authorSteve Holme <steve_holme@hotmail.com>
Sat, 4 May 2013 16:50:53 +0000 (17:50 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 7 May 2013 20:52:43 +0000 (22:52 +0200)
tests/data/Makefile.am
tests/data/test910 [new file with mode: 0644]
tests/data/test911 [new file with mode: 0644]

index a04872529af3e0e4d0b3227b9f48e5fefcc9b9b4..836be0ad732ae3f48c866a28ec65b34b3af3d04d 100644 (file)
@@ -69,7 +69,7 @@ test809 \
 test850 test851 test852 test853 test854 test855 test856 test857 \
 \
 test900 test901 test902 test903 test904 test905 test906 test907 test908 \
-test909 \
+test909 test910 test911 \
 \
 test1000 test1001 test1002 test1003 test1004 test1005 test1006 test1007 \
 test1008 test1009 test1010 test1011 test1012 test1013 test1014 test1015 \
diff --git a/tests/data/test910 b/tests/data/test910
new file mode 100644 (file)
index 0000000..5013fdc
--- /dev/null
@@ -0,0 +1,52 @@
+<testcase>
+<info>
+<keywords>
+SMTP
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+smtp
+</server>
+ <name>
+SMTP without terminating CRLF
+ </name>
+<stdin nonewline="yes">
+From: different\r
+To: another\r
+\r
+body
+</stdin>
+ <command>
+smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 910@foo --mail-rcpt 910@foobar.example --mail-from 910@from -T -
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+EHLO user\r
+MAIL FROM:<910@from>\r
+RCPT TO:<910@foo>\r
+RCPT TO:<910@foobar.example>\r
+DATA\r
+QUIT\r
+</protocol>
+<upload>
+From: different\r
+To: another\r
+\r
+body\r
+.\r
+</upload>
+</verify>
+</testcase>
diff --git a/tests/data/test911 b/tests/data/test911
new file mode 100644 (file)
index 0000000..6b7a1f4
--- /dev/null
@@ -0,0 +1,48 @@
+<testcase>
+<info>
+<keywords>
+SMTP
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+smtp
+</server>
+ <name>
+SMTP with no mail data
+ </name>
+
+<stdin nonewline="yes">
+
+</stdin>
+
+ <command>
+smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 911@foo --mail-rcpt 911@foobar.example --mail-from 911@from -T -
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+EHLO user\r
+MAIL FROM:<911@from>\r
+RCPT TO:<911@foo>\r
+RCPT TO:<911@foobar.example>\r
+DATA\r
+QUIT\r
+</protocol>
+<upload>
+\r
+.\r
+</upload>
+</verify>
+</testcase>