xref: /curl/tests/data/test1196 (revision e2b4df7b)
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
19# error 1 - "Connection Refused, unacceptable protocol version"
20<servercmd>
21error-CONNACK 1
22</servercmd>
23</reply>
24
25#
26# Client-side
27<client>
28<features>
29mqtt
30</features>
31<server>
32mqtt
33</server>
34<name>
35MQTT with error in CONNACK
36</name>
37<command option="binary-trace">
38mqtt://%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>
50s/^(.* 00044d5154540402003c000c6375726c).*/$1/
51</strippart>
52<protocol>
53client CONNECT 18 00044d5154540402003c000c6375726c
54server CONNACK 2 20020001
55</protocol>
56
57# 8 is CURLE_WEIRD_SERVER_REPLY
58<errorcode>
598
60</errorcode>
61</verify>
62</testcase>
63