tests: Added "SASL" authentication keyword
[platform/upstream/curl.git] / tests / data / test835
1 <testcase>
2 <info>
3 <keywords>
4 IMAP
5 IMAP AUTH DIGEST-MD5
6 IMAP AUTH PLAIN
7 SASL
8 SASL DOWNGRADE
9 RFC2831
10 </keywords>
11 </info>
12
13 #
14 # Server-side
15 <reply>
16 <servercmd>
17 AUTH DIGEST-MD5 PLAIN
18 REPLY "AUTHENTICATE DIGEST-MD5" + Rubbish
19 REPLY * A002 NO AUTH exchange cancelled by client
20 REPLY "AUTHENTICATE PLAIN" +
21 REPLY dXNlcgB1c2VyAHNlY3JldA== A003 OK AUTHENTICATE completed
22 </servercmd>
23 <data>
24 From: me@somewhere\r
25 To: fake@nowhere\r
26 \r
27 body\r
28 \r
29 --\r
30   yours sincerely\r
31 </data>
32 </reply>
33
34 #
35 # Client-side
36 <client>
37 <server>
38 imap
39 </server>
40 <features>
41 debug
42 crypto
43 </features>
44  <name>
45 IMAP DIGEST-MD5 authentication with SASL downgrade
46  </name>
47  <command>
48 'imap://%HOSTIP:%IMAPPORT/835/;UID=1' -u user:secret
49 </command>
50 </client>
51
52 #
53 # Verify data after the test has been "shot"
54 <verify>
55 <protocol>
56 A001 CAPABILITY\r
57 A002 AUTHENTICATE DIGEST-MD5\r
58 *\r
59 A003 AUTHENTICATE PLAIN\r
60 dXNlcgB1c2VyAHNlY3JldA==\r
61 A004 SELECT 835\r
62 A005 FETCH 1 BODY[]\r
63 A006 LOGOUT\r
64 </protocol>
65 </verify>
66 </testcase>