quickjs-tart

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

test2202 (950B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 MQTT
      5 MQTT PUBLISH
      6 </keywords>
      7 </info>
      8 
      9 #
     10 # Server-side
     11 <reply>
     12 <data>
     13 </data>
     14 
     15 # error 5 - "Connection Refused, not authorized. Wrong data supplied"
     16 <servercmd>
     17 error-CONNACK 5
     18 </servercmd>
     19 </reply>
     20 
     21 #
     22 # Client-side
     23 <client>
     24 <features>
     25 mqtt
     26 </features>
     27 <server>
     28 mqtt
     29 </server>
     30 <name>
     31 MQTT PUBLISH with invalid user and password
     32 </name>
     33 <command option="binary-trace">
     34 mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -d something -u fakeuser:fakepasswd
     35 </command>
     36 </client>
     37 
     38 #
     39 # Verify data after the test has been "shot"
     40 <verify>
     41 # These are hexadecimal protocol dumps from the client
     42 #
     43 # Strip out the random part of the client id from the CONNECT message
     44 # before comparison
     45 <strippart>
     46 s/^(.* 00044d51545404c2003c000c6375726c).*/$1/
     47 </strippart>
     48 <protocol>
     49 client CONNECT 2e 00044d51545404c2003c000c6375726c
     50 server CONNACK 2 20020005
     51 </protocol>
     52 
     53 
     54 # 8 is CURLE_WEIRD_SERVER_REPLY
     55 <errorcode>
     56 8
     57 </errorcode>
     58 </verify>
     59 </testcase>