quickjs-tart

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

test992 (908B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 SMTP
      5 SASL
      6 UPLOAD
      7 </keywords>
      8 </info>
      9 
     10 #
     11 # Server-side
     12 <reply>
     13 <servercmd>
     14 AUTH OAUTHBEARER XOAUTH2
     15 REPLY AUTH 334 XOAUTH2 supported
     16 REPLY dXNlcj11c2VyAWF1dGg9QmVhcmVyIG1GXzkuQjVmLTQuMUpxTQEB 235 Authenticated
     17 </servercmd>
     18 </reply>
     19 
     20 #
     21 # Client-side
     22 <client>
     23 <server>
     24 smtp
     25 </server>
     26 <name>
     27 SASL verify default mechanisms are reset by login options
     28 </name>
     29 <stdin>
     30 mail body
     31 </stdin>
     32 <command>
     33 smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user --oauth2-bearer mF_9.B5f-4.1JqM --login-options "AUTH=XOAUTH2" -T -
     34 </command>
     35 </client>
     36 
     37 #
     38 # Verify data after the test has been "shot"
     39 <verify>
     40 <protocol>
     41 EHLO %TESTNUMBER
     42 AUTH XOAUTH2
     43 dXNlcj11c2VyAWF1dGg9QmVhcmVyIG1GXzkuQjVmLTQuMUpxTQEB
     44 MAIL FROM:<sender@example.com>
     45 RCPT TO:<recipient@example.com>
     46 DATA
     47 QUIT
     48 </protocol>
     49 <upload>
     50 mail body
     51 .
     52 </upload>
     53 </verify>
     54 </testcase>