Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test836
1 <testcase>
2 <info>
3 <keywords>
4 IMAP
5 Clear Text
6 FETCH
7 connection re-use
8 </keywords>
9 </info>
10
11 #
12 # Server-side
13 <reply>
14 <servercmd>
15 REPLY "LOGIN user.one secret" A002 OK LOGIN completed\r
16 REPLY "LOGIN user.two secret" B002 OK LOGIN completed\r
17 </servercmd>
18 <data>
19 From: me@somewhere\r
20 To: fake@nowhere\r
21 \r
22 body\r
23 \r
24 --\r
25   yours sincerely\r
26 </data>
27 </reply>
28
29 #
30 # Client-side
31 <client>
32 <server>
33 imap
34 </server>
35  <name>
36 IMAP multiple connection authentication
37  </name>
38  <command>
39 'imap://%HOSTIP:%IMAPPORT/836/;UID=1' -u user.one:secret -: 'imap://%HOSTIP:%IMAPPORT/836/;UID=2' -u user.two:secret
40 </command>
41 </client>
42
43 #
44 # Verify data after the test has been "shot"
45 <verify>
46 <protocol>
47 A001 CAPABILITY\r
48 A002 LOGIN user.one secret\r
49 A003 SELECT 836\r
50 A004 FETCH 1 BODY[]\r
51 A005 LOGOUT\r
52 B001 CAPABILITY\r
53 B002 LOGIN user.two secret\r
54 B003 SELECT 836\r
55 B004 FETCH 2 BODY[]\r
56 B005 LOGOUT\r
57 </protocol>
58 </verify>
59 </testcase>