xref: /third_party/curl/tests/data/test2205 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciMQTT
513498266Sopenharmony_ciMQTT SUBSCRIBE
613498266Sopenharmony_ci</keywords>
713498266Sopenharmony_ci</info>
813498266Sopenharmony_ci
913498266Sopenharmony_ci#
1013498266Sopenharmony_ci# Server-side
1113498266Sopenharmony_ci<reply>
1213498266Sopenharmony_ci<data>
1313498266Sopenharmony_ci</data>
1413498266Sopenharmony_ci</reply>
1513498266Sopenharmony_ci
1613498266Sopenharmony_ci#
1713498266Sopenharmony_ci# Client-side
1813498266Sopenharmony_ci<client>
1913498266Sopenharmony_ci<features>
2013498266Sopenharmony_cimqtt
2113498266Sopenharmony_ci</features>
2213498266Sopenharmony_ci<server>
2313498266Sopenharmony_cimqtt
2413498266Sopenharmony_ci</server>
2513498266Sopenharmony_ci<name>
2613498266Sopenharmony_ciMQTT with very long user name
2713498266Sopenharmony_ci</name>
2813498266Sopenharmony_ci<file name="%LOGDIR/input%TESTNUMBER">
2913498266Sopenharmony_ciuser = %repeat[65536 x a]%:fakepasswd
3013498266Sopenharmony_ci</file>
3113498266Sopenharmony_ci<command option="binary-trace">
3213498266Sopenharmony_cimqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -K %LOGDIR/input%TESTNUMBER
3313498266Sopenharmony_ci</command>
3413498266Sopenharmony_ci</client>
3513498266Sopenharmony_ci
3613498266Sopenharmony_ci#
3713498266Sopenharmony_ci# Verify data after the test has been "shot"
3813498266Sopenharmony_ci<verify>
3913498266Sopenharmony_ci# These are hexadecimal protocol dumps from the client
4013498266Sopenharmony_ci#
4113498266Sopenharmony_ci# Strip out the random part of the client id from the CONNECT message
4213498266Sopenharmony_ci# before comparison
4313498266Sopenharmony_ci<strippart>
4413498266Sopenharmony_cis/^(.* 00044d51545404c2003c000c6375726c).*/$1/
4513498266Sopenharmony_ci</strippart>
4613498266Sopenharmony_ci# 8 is CURLE_WEIRD_SERVER_REPLY
4713498266Sopenharmony_ci<errorcode>
4813498266Sopenharmony_ci8
4913498266Sopenharmony_ci</errorcode>
5013498266Sopenharmony_ci</verify>
5113498266Sopenharmony_ci</testcase>
52