test2204 1001 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 SUBSCRIBE with user and password
  29. </name>
  30. <command option="binary-trace">
  31. mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -u testuser:testpasswd
  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/^(.* 00044d51545404c2003c000c6375726c).*/$1/
  43. </strippart>
  44. <protocol>
  45. client CONNECT 2e 00044d51545404c2003c000c6375726c
  46. server CONNACK 2 20020000
  47. client SUBSCRIBE 9 000100043232303400
  48. server SUBACK 3 9003000100
  49. server PUBLISH c 300c00043232303468656c6c6f0a
  50. server DISCONNECT 0 e000
  51. </protocol>
  52. </verify>
  53. </testcase>