mirror of
https://github.com/curl/curl.git
synced 2026-04-13 12:41:42 +08:00
To formalize they are now XML-compliant (with some asterisks.) Also to help syntax highlighters work on them to make their content more readable. Also: - Delete empty comment decorations. - GHA/checksrc: simplify XML check. - runtests: fail to load test data with XML prolog missing. Follow-up tobfe6eb1c06#19927 Follow-up to87ba80a6dfCloses #19946
47 lines
831 B
XML
47 lines
831 B
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<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}%CR
|
|
%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 crlf="yes">
|
|
A001 CAPABILITY
|
|
A002 LOGIN user secret
|
|
A003 SELECT %TESTNUMBER
|
|
A004 FETCH 456 BODY[TEXT]
|
|
A005 LOGOUT
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|