xref: /curl/tests/data/test1916 (revision b67d3ba7)
1<testcase>
2<info>
3<keywords>
4MQTT
5MQTT PUBLISH
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</reply>
19
20#
21# Client-side
22<client>
23<features>
24mqtt
25</features>
26<server>
27mqtt
28</server>
29<name>
30MQTT PUBLISH with no POSTFIELDSIZE set
31</name>
32<tool>
33lib%TESTNUMBER
34</tool>
35<command option="binary-trace">
36"mqtt://%HOSTIP:%MQTTPORT/%20"
37</command>
38</client>
39
40#
41# Verify data after the test has been "shot"
42<verify>
43# These are hexadecimal protocol dumps from the client
44#
45# Strip out the random part of the client id from the CONNECT message
46# before comparison
47<strippart>
48s/^(.* 00044d5154540402003c000c6375726c).*/$1/
49</strippart>
50<protocol>
51client CONNECT 18 00044d5154540402003c000c6375726c
52server CONNACK 2 20020000
53client PUBLISH 3 000120
54client DISCONNECT 0 e000
55</protocol>
56</verify>
57</testcase>
58