xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | MQTT |
| 5 | MQTT SUBSCRIBE |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data> |
| 13 | </data> |
| 14 | </reply> |
| 15 | |
| 16 | # |
| 17 | # Client-side |
| 18 | <client> |
| 19 | <features> |
| 20 | mqtt |
| 21 | </features> |
| 22 | <server> |
| 23 | mqtt |
| 24 | </server> |
| 25 | <name> |
| 26 | MQTT with very long user name |
| 27 | </name> |
| 28 | <file name="log/input%TESTNUMBER"> |
| 29 | user = %repeat[65536 x a]%:fakepasswd |
| 30 | </file> |
| 31 | <command option="binary-trace"> |
| 32 | mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -K log/input%TESTNUMBER |
| 33 | </command> |
| 34 | </client> |
| 35 | |
| 36 | # |
| 37 | # Verify data after the test has been "shot" |
| 38 | <verify> |
| 39 | # These are hexadecimal protocol dumps from the client |
| 40 | # |
| 41 | # Strip out the random part of the client id from the CONNECT message |
| 42 | # before comparison |
| 43 | <strippart> |
| 44 | s/^(.* 00044d51545404c2003c000c6375726c).*/$1/ |
| 45 | </strippart> |
| 46 | # 8 is CURLE_WEIRD_SERVER_REPLY |
| 47 | <errorcode> |
| 48 | 8 |
| 49 | </errorcode> |
| 50 | </verify> |
| 51 | </testcase> |