test1199 862 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 31 31 39 30 68 65 6c 6c 6f 5b 4c 46 5d 0a
  16. </datacheck>
  17. </reply>
  18. #
  19. # Client-side
  20. <client>
  21. <features>
  22. mqtt
  23. </features>
  24. <server>
  25. mqtt
  26. </server>
  27. <name>
  28. MQTT PUBLISH empty payload, no topic
  29. </name>
  30. <command option="binary-trace">
  31. mqtt://%HOSTIP:%MQTTPORT -d ""
  32. </command>
  33. </client>
  34. #
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. # These are hexadecimal protocol dumps from the client
  38. #
  39. # Strip out the random part of the client id from the CONNECT message
  40. # before comparison
  41. <strippart>
  42. s/^(.* 00044d5154540402003c000c6375726c).*/$1/
  43. </strippart>
  44. <protocol>
  45. client CONNECT 18 00044d5154540402003c000c6375726c
  46. server CONNACK 2 20020000
  47. </protocol>
  48. <errorcode>
  49. 3
  50. </errorcode>
  51. </verify>
  52. </testcase>