test1196 (997B)
1 <testcase> 2 <info> 3 <keywords> 4 MQTT 5 MQTT SUBSCRIBE 6 </keywords> 7 </info> 8 9 # 10 # Server-side 11 <reply> 12 <data nocheck="yes"> 13 hello 14 </data> 15 <datacheck hex="yes"> 16 00 04 31 31 39 30 68 65 6c 6c 6f 5b 4c 46 5d 0a 17 </datacheck> 18 19 # error 1 - "Connection Refused, unacceptable protocol version" 20 <servercmd> 21 error-CONNACK 1 22 </servercmd> 23 </reply> 24 25 # 26 # Client-side 27 <client> 28 <features> 29 mqtt 30 </features> 31 <server> 32 mqtt 33 </server> 34 <name> 35 MQTT with error in CONNACK 36 </name> 37 <command option="binary-trace"> 38 mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER 39 </command> 40 </client> 41 42 # 43 # Verify data after the test has been "shot" 44 <verify> 45 # These are hexadecimal protocol dumps from the client 46 # 47 # Strip out the random part of the client id from the CONNECT message 48 # before comparison 49 <strippart> 50 s/^(.* 00044d5154540402003c000c6375726c).*/$1/ 51 </strippart> 52 <protocol> 53 client CONNECT 18 00044d5154540402003c000c6375726c 54 server CONNACK 2 20020001 55 </protocol> 56 57 # 8 is CURLE_WEIRD_SERVER_REPLY 58 <errorcode> 59 8 60 </errorcode> 61 </verify> 62 </testcase>