1f37496a2b167f4e9973584172025619c112fd7e
[platform/upstream/curl.git] / tests / data / test922
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 SMTP AUTH OAUTH2
6 SASL-IR
7 RFC4954
8 RFC6749
9 </keywords>
10 </info>
11
12 #
13 # Server-side
14 <reply>
15 <servercmd>
16 AUTH XOAUTH2
17 REPLY AUTH 235 Authenticated
18 </servercmd>
19 </reply>
20
21 #
22 # Client-side
23 <client>
24 <server>
25 smtp
26 </server>
27  <name>
28 SMTP OAuth 2.0 authentication with initial response
29  </name>
30 <stdin>
31 mail body\r
32 </stdin>
33  <command>
34 smtp://%HOSTIP:%SMTPPORT/922 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir -T -
35 </command>
36 </client>
37
38 #
39 # Verify data after the test has been "shot"
40 <verify>
41 <protocol>
42 EHLO 922\r
43 AUTH XOAUTH2 dXNlcj11c2VyAWF1dGg9QmVhcmVyIG1GXzkuQjVmLTQuMUpxTQEB\r
44 MAIL FROM:<sender@example.com>\r
45 RCPT TO:<recipient@example.com>\r
46 DATA\r
47 QUIT\r
48 </protocol>
49 <upload>
50 mail body\r
51 .\r
52 </upload>
53 </verify>
54 </testcase>