Commit 6add1901 authored by Steve Holme's avatar Steve Holme Committed by Daniel Stenberg
Browse files

tests: Added new SMTP tests to verify commit 99b40451

parent 51b0f09b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 \

tests/data/test910

0 → 100644
+52 −0
Original line number Diff line number Diff line
<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
To: another

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
MAIL FROM:<910@from>
RCPT TO:<910@foo>
RCPT TO:<910@foobar.example>
DATA
QUIT
</protocol>
<upload>
From: different
To: another

body
.
</upload>
</verify>
</testcase>

tests/data/test911

0 → 100644
+48 −0
Original line number Diff line number Diff line
<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>