imap: Added test802 and test803 for UIDVALIDITY verification

Added one test for a request with matching UIDVALIDITY and one which is
a mismatched request that will fail.
This commit is contained in:
Jiri Hruska
2013-03-10 20:40:28 +01:00
committed by Steve Holme
parent 0d49f92872
commit 3a5530a1f3
3 changed files with 91 additions and 1 deletions

46
tests/data/test802 Normal file
View File

@@ -0,0 +1,46 @@
<testcase>
<info>
<keywords>
IMAP
SELECT
UIDVALIDITY
</keywords>
</info>
#
# Server-side
<reply>
<data>
body
--
yours sincerely
</data>
</reply>
#
# Client-side
<client>
<server>
imap
</server>
<name>
IMAP SELECT UIDVALIDITY Success
</name>
<command>
'imap://%HOSTIP:%IMAPPORT/802;UIDVALIDITY=3857529045/;UID=123/;SECTION=TEXT' -u user:secret
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
A001 CAPABILITY
A002 LOGIN user secret
A003 SELECT 802
A004 FETCH 123 BODY[TEXT]
A005 LOGOUT
</protocol>
</verify>
</testcase>