File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test1195
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Jun 3 10:01:16 2020 UTC (5 years ago) by misho
Branches: curl, MAIN
CVS tags: v7_70_0p4, HEAD
curl

    1: <testcase>
    2: <info>
    3: <keywords>
    4: MQTT
    5: MQTT SUBSCRIBE
    6: </keywords>
    7: </info>
    8: 
    9: #
   10: # Server-side
   11: <reply>
   12: <data nocheck="yes">
   13: hello
   14: </data>
   15: <datacheck hex="yes">
   16: 00 04 31 31 39 30   68 65 6c 6c 6f 5b 4c 46 5d 0a
   17: </datacheck>
   18: <servercmd>
   19: PUBLISH-before-SUBACK TRUE
   20: short-PUBLISH TRUE
   21: </servercmd>
   22: </reply>
   23: 
   24: #
   25: # Client-side
   26: <client>
   27: <features>
   28: mqtt
   29: </features>
   30: <server>
   31: mqtt
   32: </server>
   33: <name>
   34: MQTT SUBSCRIBE with short PUBLISH
   35: </name>
   36: <command option="binary-trace">
   37: mqtt://%HOSTIP:%MQTTPORT/1195
   38: </command>
   39: </client>
   40: 
   41: #
   42: # Verify data after the test has been "shot"
   43: <verify>
   44: # These are hexadecimal protocol dumps from the client
   45: #
   46: # Strip out the random part of the client id from the CONNECT message
   47: # before comparison
   48: <strippart>
   49: s/^(.* 00044d5154540402003c000c6375726c).*/$1/
   50: </strippart>
   51: <protocol>
   52: client CONNECT 18 00044d5154540402003c000c6375726c
   53: server CONNACK 2 20020000
   54: client SUBSCRIBE 9 000100043131393500
   55: server PUBLISH c 300c00043131393568656c6c
   56: </protocol>
   57: 
   58: # 18 is CURLE_PARTIAL_FILE
   59: <errorcode>
   60: 18
   61: </errorcode>
   62: </verify>
   63: </testcase>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>