test3017 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <testcase>
  2. <info>
  3. <keywords>
  4. MQTT
  5. MQTT SUBSCRIBE
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data nocheck="yes">
  12. hello
  13. </data>
  14. <datacheck hex="yes">
  15. 00 04 33 30 31 37 68 65 6c 6c 6f 5b 4c 46 5d 0a
  16. </datacheck>
  17. <servercmd>
  18. excessive-remaining TRUE
  19. </servercmd>
  20. </reply>
  21. #
  22. # Client-side
  23. <client>
  24. <features>
  25. mqtt
  26. </features>
  27. <server>
  28. mqtt
  29. </server>
  30. <name>
  31. MQTT SUBSCRIBE with pathological PUBLISH length
  32. </name>
  33. <command option="binary-trace">
  34. mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -m 3
  35. </command>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. # These are hexadecimal protocol dumps from the client
  41. #
  42. # Strip out the random part of the client id from the CONNECT message
  43. # before comparison
  44. <strippart>
  45. s/^(.* 00044d5154540402003c000c6375726c).*/$1/
  46. </strippart>
  47. # on windows the disconnect is never seen - no idea why
  48. <strip>
  49. ^server DISCONNECT 0 e000
  50. </strip>
  51. <protocol>
  52. client CONNECT 18 00044d5154540402003c000c6375726c
  53. server CONNACK 2 20020000
  54. client SUBSCRIBE 9 000100043330313700
  55. server SUBACK 3 9003000100
  56. server PUBLISH c 30ffffff8000043330313768656c6c6f0a
  57. </protocol>
  58. # 8 is CURLE_WEIRD_SERVER_REPLY
  59. <errorcode>
  60. 8
  61. </errorcode>
  62. </verify>
  63. </testcase>