test: add test cases for sasl external authentication (imap/pop3/smtp).

This commit is contained in:
Patrick Monnerat
2015-01-27 18:03:56 +01:00
parent fe79f20957
commit ed9a4b9fc4
13 changed files with 674 additions and 1 deletions

56
tests/data/test945 Normal file
View File

@@ -0,0 +1,56 @@
<testcase>
<info>
<keywords>
IMAP
SASL
SASL AUTH EXTERNAL
SASL-IR
RFC4422
</keywords>
</info>
#
# Server-side
<reply>
<servercmd>
AUTH EXTERNAL
CAPA SASL-IR
REPLY AUTHENTICATE A002 OK AUTHENTICATE completed
</servercmd>
<data>
From: me@somewhere
To: fake@nowhere
body
--
yours sincerely
</data>
</reply>
#
# Client-side
<client>
<server>
imap
</server>
<name>
IMAP external authentication with initial response without credentials
</name>
<command>
'imap://;AUTH=EXTERNAL@%HOSTIP:%IMAPPORT/945/;UID=1'
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
A001 CAPABILITY
A002 AUTHENTICATE EXTERNAL =
A003 SELECT 945
A004 FETCH 1 BODY[]
A005 LOGOUT
</protocol>
</verify>
</testcase>