xref: /curl/tests/data/test2200 (revision 791937b8)
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 5 - "Connection Refused, not authorized. Wrong data supplied"
20<servercmd>
21error-CONNACK 5
22</servercmd>
23</reply>
24
25#
26# Client-side
27<client>
28<features>
29mqtt
30</features>
31<server>
32mqtt
33</server>
34<name>
35MQTT SUBSCRIBE with user and password
36</name>
37<command option="binary-trace">
38mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -u fakeuser:fakepasswd
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/^(.* 00044d51545404c2003c000c6375726c).*/$1/
51</strippart>
52<protocol>
53client CONNECT 2e 00044d51545404c2003c000c6375726c
54server CONNACK 2 20020005
55</protocol>
56
57# 8 is CURLE_WEIRD_SERVER_REPLY
58<errorcode>
598
60</errorcode>
61</verify>
62</testcase>
63