1*6236dae4SAndroid Build Coastguard Worker<testcase> 2*6236dae4SAndroid Build Coastguard Worker<info> 3*6236dae4SAndroid Build Coastguard Worker<keywords> 4*6236dae4SAndroid Build Coastguard WorkerMQTT 5*6236dae4SAndroid Build Coastguard WorkerMQTT PUBLISH 6*6236dae4SAndroid Build Coastguard Worker</keywords> 7*6236dae4SAndroid Build Coastguard Worker</info> 8*6236dae4SAndroid Build Coastguard Worker 9*6236dae4SAndroid Build Coastguard Worker# 10*6236dae4SAndroid Build Coastguard Worker# Server-side 11*6236dae4SAndroid Build Coastguard Worker<reply> 12*6236dae4SAndroid Build Coastguard Worker<data> 13*6236dae4SAndroid Build Coastguard Worker</data> 14*6236dae4SAndroid Build Coastguard Worker 15*6236dae4SAndroid Build Coastguard Worker# error 5 - "Connection Refused, not authorized. Wrong data supplied" 16*6236dae4SAndroid Build Coastguard Worker<servercmd> 17*6236dae4SAndroid Build Coastguard Workererror-CONNACK 5 18*6236dae4SAndroid Build Coastguard Worker</servercmd> 19*6236dae4SAndroid Build Coastguard Worker</reply> 20*6236dae4SAndroid Build Coastguard Worker 21*6236dae4SAndroid Build Coastguard Worker# 22*6236dae4SAndroid Build Coastguard Worker# Client-side 23*6236dae4SAndroid Build Coastguard Worker<client> 24*6236dae4SAndroid Build Coastguard Worker<features> 25*6236dae4SAndroid Build Coastguard Workermqtt 26*6236dae4SAndroid Build Coastguard Worker</features> 27*6236dae4SAndroid Build Coastguard Worker<server> 28*6236dae4SAndroid Build Coastguard Workermqtt 29*6236dae4SAndroid Build Coastguard Worker</server> 30*6236dae4SAndroid Build Coastguard Worker<name> 31*6236dae4SAndroid Build Coastguard WorkerMQTT PUBLISH with invalid user and password 32*6236dae4SAndroid Build Coastguard Worker</name> 33*6236dae4SAndroid Build Coastguard Worker<command option="binary-trace"> 34*6236dae4SAndroid Build Coastguard Workermqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -d something -u fakeuser:fakepasswd 35*6236dae4SAndroid Build Coastguard Worker</command> 36*6236dae4SAndroid Build Coastguard Worker</client> 37*6236dae4SAndroid Build Coastguard Worker 38*6236dae4SAndroid Build Coastguard Worker# 39*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 40*6236dae4SAndroid Build Coastguard Worker<verify> 41*6236dae4SAndroid Build Coastguard Worker# These are hexadecimal protocol dumps from the client 42*6236dae4SAndroid Build Coastguard Worker# 43*6236dae4SAndroid Build Coastguard Worker# Strip out the random part of the client id from the CONNECT message 44*6236dae4SAndroid Build Coastguard Worker# before comparison 45*6236dae4SAndroid Build Coastguard Worker<strippart> 46*6236dae4SAndroid Build Coastguard Workers/^(.* 00044d51545404c2003c000c6375726c).*/$1/ 47*6236dae4SAndroid Build Coastguard Worker</strippart> 48*6236dae4SAndroid Build Coastguard Worker<protocol> 49*6236dae4SAndroid Build Coastguard Workerclient CONNECT 2e 00044d51545404c2003c000c6375726c 50*6236dae4SAndroid Build Coastguard Workerserver CONNACK 2 20020005 51*6236dae4SAndroid Build Coastguard Worker</protocol> 52*6236dae4SAndroid Build Coastguard Worker 53*6236dae4SAndroid Build Coastguard Worker 54*6236dae4SAndroid Build Coastguard Worker# 8 is CURLE_WEIRD_SERVER_REPLY 55*6236dae4SAndroid Build Coastguard Worker<errorcode> 56*6236dae4SAndroid Build Coastguard Worker8 57*6236dae4SAndroid Build Coastguard Worker</errorcode> 58*6236dae4SAndroid Build Coastguard Worker</verify> 59*6236dae4SAndroid Build Coastguard Worker</testcase> 60