tests: Added test for IMAP LSUB command

This commit is contained in:
Steve Holme 2014-02-09 21:01:37 +00:00
parent 230e872dbd
commit daa182afa6
2 changed files with 45 additions and 1 deletions

44
tests/data/test807 Normal file
View file

@ -0,0 +1,44 @@
<testcase>
<info>
<keywords>
IMAP
LSUB
CUSTOMREQUEST
</keywords>
</info>
#
# Server-side
<reply>
<data>
* LSUB () "/" /807/blurdybloop
* LSUB (\Noselect) "/" /807/foo
* LSUB () "/" /807/foo/bar
</data>
</reply>
#
# Client-side
<client>
<server>
imap
</server>
<name>
IMAP LSUB mailbox
</name>
<command>
imap://%HOSTIP:%IMAPPORT -u user:secret -X 'LSUB "807" *'
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
A001 CAPABILITY
A002 LOGIN user secret
A003 LSUB "807" *
A004 LOGOUT
</protocol>
</verify>
</testcase>