tests: Replaced email authentication keywords with SASL based keywords
[platform/upstream/curl.git] / tests / data / test907
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 SASL
6 SASL AUTH DIGEST-MD5
7 RFC2831
8 RFC4954
9 </keywords>
10 </info>
11
12 #
13 # Server-side
14 <reply>
15 <servercmd>
16 AUTH DIGEST-MD5
17 REPLY AUTH 334 cmVhbG09ImN1cmwiLG5vbmNlPSI1MzAwZDE3YTFkNjk1YmQ0MTFlNGNkZjk2Zjk1NDhjMjNjZWQ2MTc1IixhbGdvcml0aG09bWQ1LXNlc3MscW9wPSJhdXRoIg==
18 REPLY dXNlcm5hbWU9InVzZXIiLHJlYWxtPSJjdXJsIixub25jZT0iNTMwMGQxN2ExZDY5NWJkNDExZTRjZGY5NmY5NTQ4YzIzY2VkNjE3NSIsY25vbmNlPSIxMjM0NTY3OCIsbmM9IjAwMDAwMDAxIixkaWdlc3QtdXJpPSJzbXRwL2N1cmwiLHJlc3BvbnNlPTU3MjBiYjgxZDgwNjI3YmU1ZDExYTAwYTU2M2Q3MGU1 334
19 REPLY  235 Authenticated
20 </servercmd>
21 </reply>
22
23 #
24 # Client-side
25 <client>
26 <server>
27 smtp
28 </server>
29 <features>
30 debug
31 crypto
32 </features>
33  <name>
34 SMTP DIGEST-MD5 authentication
35  </name>
36 <stdin>
37 mail body\r
38 </stdin>
39  <command>
40 smtp://%HOSTIP:%SMTPPORT/907 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
41 </command>
42 </client>
43
44 #
45 # Verify data after the test has been "shot"
46 <verify>
47 <protocol>
48 EHLO 907\r
49 AUTH DIGEST-MD5\r
50 dXNlcm5hbWU9InVzZXIiLHJlYWxtPSJjdXJsIixub25jZT0iNTMwMGQxN2ExZDY5NWJkNDExZTRjZGY5NmY5NTQ4YzIzY2VkNjE3NSIsY25vbmNlPSIxMjM0NTY3OCIsbmM9IjAwMDAwMDAxIixkaWdlc3QtdXJpPSJzbXRwL2N1cmwiLHJlc3BvbnNlPTU3MjBiYjgxZDgwNjI3YmU1ZDExYTAwYTU2M2Q3MGU1\r
51 \r
52 MAIL FROM:<sender@example.com>\r
53 RCPT TO:<recipient@example.com>\r
54 DATA\r
55 QUIT\r
56 </protocol>
57 <upload>
58 mail body\r
59 .\r
60 </upload>
61 </verify>
62 </testcase>