tests: Added new SMTP tests to verify commit 99b4045183

This commit is contained in:
Steve Holme
2013-05-04 17:50:53 +01:00
committed by Daniel Stenberg
parent 51b0f09b5e
commit 6add1901a1
3 changed files with 101 additions and 1 deletions

48
tests/data/test911 Normal file
View File

@@ -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>