test2202 950 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. # error 5 - "Connection Refused, not authorized. Wrong data supplied"
  14. <servercmd>
  15. error-CONNACK 5
  16. </servercmd>
  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 invalid user and password
  29. </name>
  30. <command option="binary-trace">
  31. mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER -d something -u fakeuser:fakepasswd
  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 20020005
  47. </protocol>
  48. # 8 is CURLE_WEIRD_SERVER_REPLY
  49. <errorcode>
  50. 8
  51. </errorcode>
  52. </verify>
  53. </testcase>