tests: Added test for SMTP SIZE capability

This commit is contained in:
Steve Holme 2013-09-15 23:22:42 +01:00
Родитель 016879d477
Коммит f8a9dbd391
2 изменённых файлов: 56 добавлений и 1 удалений

Просмотреть файл

@ -70,7 +70,7 @@ test850 test851 test852 test853 test854 test855 test856 test857 test858 \
test859 test860 test861 test862 \
\
test900 test901 test902 test903 test904 test905 test906 test907 test908 \
test909 test910 test911 \
test909 test910 test911 test912 \
\
test1000 test1001 test1002 test1003 test1004 test1005 test1006 test1007 \
test1008 test1009 test1010 test1011 test1012 test1013 test1014 test1015 \

55
tests/data/test912 Normal file
Просмотреть файл

@ -0,0 +1,55 @@
<testcase>
<info>
<keywords>
SMTP
SIZE
</keywords>
</info>
#
# Server-side
<reply>
<servercmd>
CAPA SIZE
</servercmd>
</reply>
#
# Client-side
<client>
<server>
smtp
</server>
<name>
SMTP with SIZE support
</name>
<file name="log/test912.eml">
From: different
To: another
body
</file>
<command>
smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 912@foo --mail-from 912@from -T log/test912.eml
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
EHLO user
MAIL FROM:<912@from> SIZE=38
RCPT TO:<912@foo>
DATA
QUIT
</protocol>
<upload>
From: different
To: another
body
.
</upload>
</verify>
</testcase>