test3018 (1163B)
1 <testcase> 2 <info> 3 <keywords> 4 MQTT 5 MQTT SUBSCRIBE 6 --max-filesize 7 </keywords> 8 </info> 9 10 # 11 # Server-side 12 <reply> 13 <data nocheck="yes"> 14 hello 15 </data> 16 <datacheck hex="yes"> 17 00 04 33 30 31 38 68 65 6c 6c 6f 5b 4c 46 5d 0a 18 </datacheck> 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 SUBSCRIBE with PUBLISH larger than --max-filesize 32 </name> 33 <command option="binary-trace"> 34 mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER --max-filesize 11 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/^(.* 00044d5154540402003c000c6375726c).*/$1/ 47 </strippart> 48 # on Windows the disconnect is never seen - no idea why 49 <strip> 50 ^server DISCONNECT 0 e000 51 </strip> 52 <protocol> 53 client CONNECT 18 00044d5154540402003c000c6375726c 54 server CONNACK 2 20020000 55 client SUBSCRIBE 9 000100043330313800 56 server SUBACK 3 9003000100 57 server PUBLISH c 300c00043330313868656c6c6f0a 58 </protocol> 59 60 # 63 is CURLE_FILESIZE_EXCEEDED 61 <errorcode> 62 63 63 </errorcode> 64 </verify> 65 </testcase>