quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test946 (981B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 SMTP
      5 SASL
      6 SASL AUTH OAUTH2
      7 RFC4954
      8 RFC6749
      9 RFC7628
     10 </keywords>
     11 </info>
     12 
     13 #
     14 # Server-side
     15 <reply>
     16 <servercmd>
     17 AUTH OAUTHBEARER
     18 REPLY AUTH 334 OAUTHBEARER supported
     19 REPLY %b64[n,a=user,%01host=127.0.0.1%01port=%SMTPPORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64% 235 Authenticated
     20 </servercmd>
     21 </reply>
     22 
     23 #
     24 # Client-side
     25 <client>
     26 <server>
     27 smtp
     28 </server>
     29 <name>
     30 SMTP OAuth 2.0 (OAUTHBEARER) authentication
     31 </name>
     32 <stdin>
     33 mail body
     34 </stdin>
     35 <command>
     36 smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user --oauth2-bearer mF_9.B5f-4.1JqM -T -
     37 </command>
     38 </client>
     39 
     40 #
     41 # Verify data after the test has been "shot"
     42 <verify>
     43 <protocol>
     44 EHLO %TESTNUMBER
     45 AUTH OAUTHBEARER
     46 %b64[n,a=user,%01host=127.0.0.1%01port=%SMTPPORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64%
     47 MAIL FROM:<sender@example.com>
     48 RCPT TO:<recipient@example.com>
     49 DATA
     50 QUIT
     51 </protocol>
     52 <upload>
     53 mail body
     54 .
     55 </upload>
     56 </verify>
     57 </testcase>