test1196 997 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. # error 1 - "Connection Refused, unacceptable protocol version"
  18. <servercmd>
  19. error-CONNACK 1
  20. </servercmd>
  21. </reply>
  22. #
  23. # Client-side
  24. <client>
  25. <features>
  26. mqtt
  27. </features>
  28. <server>
  29. mqtt
  30. </server>
  31. <name>
  32. MQTT with error in CONNACK
  33. </name>
  34. <command option="binary-trace">
  35. mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER
  36. </command>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. # These are hexadecimal protocol dumps from the client
  42. #
  43. # Strip out the random part of the client id from the CONNECT message
  44. # before comparison
  45. <strippart>
  46. s/^(.* 00044d5154540402003c000c6375726c).*/$1/
  47. </strippart>
  48. <protocol>
  49. client CONNECT 18 00044d5154540402003c000c6375726c
  50. server CONNACK 2 20020001
  51. </protocol>
  52. # 8 is CURLE_WEIRD_SERVER_REPLY
  53. <errorcode>
  54. 8
  55. </errorcode>
  56. </verify>
  57. </testcase>