test1917 967 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. # require HTTP too as otherwise CURLOPT_POST doesn't exist
  22. <features>
  23. mqtt
  24. http
  25. </features>
  26. <server>
  27. mqtt
  28. </server>
  29. <name>
  30. MQTT PUBLISH with CURLOPT_POST set (no payload)
  31. </name>
  32. <tool>
  33. lib%TESTNUMBER
  34. </tool>
  35. <command option="binary-trace">
  36. "mqtt://%HOSTIP:%MQTTPORT/%20"
  37. </command>
  38. </client>
  39. #
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. # These are hexadecimal protocol dumps from the client
  43. #
  44. # Strip out the random part of the client id from the CONNECT message
  45. # before comparison
  46. <strippart>
  47. s/^(.* 00044d5154540402003c000c6375726c).*/$1/
  48. </strippart>
  49. <protocol>
  50. client CONNECT 18 00044d5154540402003c000c6375726c
  51. server CONNACK 2 20020000
  52. </protocol>
  53. <errorcode>
  54. 43
  55. </errorcode>
  56. </verify>
  57. </testcase>