mirror of
https://github.com/curl/curl.git
synced 2026-06-13 20:25:38 +03:00
- test 1030: remove, duplicate of 154 - test 1105: make name unique - test 161: make name reflect what it tests - test 2074: correct the name - test 310: improve name - test 358: correct the name - test 409: removed, duplicate of 401 - test 472: clarify the test name (how it differs from 439) - test 1509: update name - test 527: duplicate of 526 - test 758: separate the name from 530 - test 611: duplicate of 608, remove - test 639: adjust the name - test 688: minor name tweak to clarify - test 708: enhance name - test 800/847: clarify the names - test 1520: dedupe the name - test 962: enhance name - test 1196/2203: enhanced names - test 1211: name tweak - test 1256/1257: enhance the names - test 1483: fix name - test 1541: fix name - test 1553: fix name - test 1609: removed, exact duplicate of 1607 - test 2200: fix name - test 3031: corret the name - test 3016/3203: fix names and keywords - test 3201/3220: enhance names - test 3212: fix name - add missing FILE keywords - drop FAILURE as keyword Closes #21936
56 lines
1,002 B
XML
56 lines
1,002 B
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
MQTT
|
|
MQTT SUBSCRIBE
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data nocheck="yes">
|
|
hello
|
|
</data>
|
|
|
|
# error 5 - "Connection Refused, not authorized. Wrong data supplied"
|
|
<servercmd>
|
|
error-CONNACK 5
|
|
</servercmd>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<features>
|
|
mqtt
|
|
</features>
|
|
<server>
|
|
mqtt
|
|
</server>
|
|
<name>
|
|
MQTT SUBSCRIBE with user and password, not authorized
|
|
</name>
|
|
<command option="binary-trace">
|
|
mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -u fakeuser:fakepasswd
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
# These are hexadecimal protocol dumps from the client
|
|
# Strip out the random part of the client id from the CONNECT message
|
|
# before comparison
|
|
<strippart>
|
|
s/^(.* 00044d51545404c2003c000c6375726c).*/$1/
|
|
</strippart>
|
|
<protocol>
|
|
client CONNECT 2e 00044d51545404c2003c000c6375726c
|
|
server CONNACK 2 20020005
|
|
</protocol>
|
|
|
|
# 8 is CURLE_WEIRD_SERVER_REPLY
|
|
<errorcode>
|
|
8
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|