• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4MQTT
5MQTT PUBLISH
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<data>
13</data>
14
15# error 5 - "Connection Refused, not authorized. Wrong data supplied"
16<servercmd>
17error-CONNACK 5
18</servercmd>
19</reply>
20
21#
22# Client-side
23<client>
24<features>
25mqtt
26</features>
27<server>
28mqtt
29</server>
30<name>
31MQTT PUBLISH with invalid user and password
32</name>
33<command option="binary-trace">
34mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -d something -u fakeuser:fakepasswd
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>
46s/^(.* 00044d51545404c2003c000c6375726c).*/$1/
47</strippart>
48<protocol>
49client CONNECT 2e 00044d51545404c2003c000c6375726c
50server CONNACK 2 20020005
51</protocol>
52
53
54# 8 is CURLE_WEIRD_SERVER_REPLY
55<errorcode>
568
57</errorcode>
58</verify>
59</testcase>
60