test2201 848 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <testcase>
  2. <info>
  3. <keywords>
  4. MQTT
  5. MQTT PUBLISH
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data>
  12. </data>
  13. </reply>
  14. #
  15. # Client-side
  16. <client>
  17. <features>
  18. mqtt
  19. </features>
  20. <server>
  21. mqtt
  22. </server>
  23. <name>
  24. MQTT PUBLISH with user and password valid
  25. </name>
  26. <command option="binary-trace">
  27. mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -d something -u testuser:testpasswd
  28. </command>
  29. </client>
  30. #
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. # These are hexadecimal protocol dumps from the client
  34. #
  35. # Strip out the random part of the client id from the CONNECT message
  36. # before comparison
  37. <strippart>
  38. s/^(.* 00044d51545404c2003c000c6375726c).*/$1/
  39. </strippart>
  40. <protocol>
  41. client CONNECT 2e 00044d51545404c2003c000c6375726c
  42. server CONNACK 2 20020000
  43. client PUBLISH f 000432323031736f6d657468696e67
  44. client DISCONNECT 0 e000
  45. </protocol>
  46. </verify>
  47. </testcase>