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