test1916 912 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. MQTT
  5. MQTT PUBLISH
  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 with no POSTFIELDSIZE set
  29. </name>
  30. <tool>
  31. lib%TESTNUMBER
  32. </tool>
  33. <command option="binary-trace">
  34. "mqtt://%HOSTIP:%MQTTPORT/ "
  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. <protocol>
  48. client CONNECT 18 00044d5154540402003c000c6375726c
  49. server CONNACK 2 20020000
  50. client PUBLISH 3 000120
  51. client DISCONNECT 0 e000
  52. </protocol>
  53. </verify>
  54. </testcase>