summaryrefslogtreecommitdiff
path: root/tests/data/test911
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-05-04 17:50:53 +0100
committerDaniel Stenberg <daniel@haxx.se>2013-05-07 22:52:43 +0200
commit6add1901a1e756d2e47c6b300c03fa7ba47fabdd (patch)
tree4e9111937d40a11f0399a0854b0969201db36451 /tests/data/test911
parent51b0f09b5e2286d4e59996da5d8d8713535882d8 (diff)
downloadcurl-6add1901a1e756d2e47c6b300c03fa7ba47fabdd.tar.gz
tests: Added new SMTP tests to verify commit 99b40451836d
Diffstat (limited to 'tests/data/test911')
-rw-r--r--tests/data/test91148
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/data/test911 b/tests/data/test911
new file mode 100644
index 000000000..6b7a1f40e
--- /dev/null
+++ b/tests/data/test911
@@ -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
+MAIL FROM:<911@from>
+RCPT TO:<911@foo>
+RCPT TO:<911@foobar.example>
+DATA
+QUIT
+</protocol>
+<upload>
+
+.
+</upload>
+</verify>
+</testcase>