curl/tests/data/test3206
Daniel Stenberg 55d4767876
tests: use %repeat[] to make tests smaller
Avoid putting huge chunks of repeated texts in test cases.

test3206, test1060, test1061 and test22

Closes #19279
2025-10-30 09:48:41 +01:00

48 lines
787 B
Text

<testcase>
<info>
<keywords>
IMAP
Clear Text
FETCH
CUSTOMREQUEST
</keywords>
</info>
#
# Server-side
<reply>
<data>
%repeat[120 x Testing large IMAP literal with custom FETCH. XXXXXXXXXXXXX%0d]%
</data>
<datacheck>
* 456 FETCH (BODY[TEXT] {7201}
%repeat[120 x Testing large IMAP literal with custom FETCH. XXXXXXXXXXXXX%0d]%
</datacheck>
</reply>
#
# Client-side
<client>
<server>
imap
</server>
<name>
IMAP custom FETCH with larger literal response (~7KB)
</name>
<command>
imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/ -u user:secret -X 'FETCH 456 BODY[TEXT]'
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
A001 CAPABILITY
A002 LOGIN user secret
A003 SELECT %TESTNUMBER
A004 FETCH 456 BODY[TEXT]
A005 LOGOUT
</protocol>
</verify>
</testcase>