tests: Added SMTP with credientials test when not supported by server

This commit is contained in:
Steve Holme
2014-03-30 17:53:13 +01:00
parent 8a0385c1ad
commit b201d9adb8
2 changed files with 46 additions and 1 deletions

45
tests/data/test940 Normal file
View File

@@ -0,0 +1,45 @@
<testcase>
<info>
<keywords>
SMTP
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<server>
smtp
</server>
<name>
SMTP with username and password but no AUTH capability
</name>
<stdin>
mail body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/940 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
EHLO 940
MAIL FROM:<sender@example.com>
RCPT TO:<recipient@example.com>
DATA
QUIT
</protocol>
<upload>
mail body
.
</upload>
</verify>
</testcase>