xref: /curl/tests/data/test3018 (revision f81f351b)
1<testcase>
2<info>
3<keywords>
4MQTT
5MQTT SUBSCRIBE
6--max-filesize
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data nocheck="yes">
14hello
15</data>
16<datacheck hex="yes">
1700 04 33 30 31 38   68 65 6c 6c 6f 5b 4c 46 5d 0a
18</datacheck>
19</reply>
20
21#
22# Client-side
23<client>
24<features>
25mqtt
26</features>
27<server>
28mqtt
29</server>
30<name>
31MQTT SUBSCRIBE with PUBLISH larger than --max-filesize
32</name>
33<command option="binary-trace">
34mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER --max-filesize 11
35</command>
36</client>
37
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>
46s/^(.* 00044d5154540402003c000c6375726c).*/$1/
47</strippart>
48# on Windows the disconnect is never seen - no idea why
49<strip>
50^server DISCONNECT 0 e000
51</strip>
52<protocol>
53client CONNECT 18 00044d5154540402003c000c6375726c
54server CONNACK 2 20020000
55client SUBSCRIBE 9 000100043330313800
56server SUBACK 3 9003000100
57server PUBLISH c 300c00043330313868656c6c6f0a
58</protocol>
59
60# 63 is CURLE_FILESIZE_EXCEEDED
61<errorcode>
6263
63</errorcode>
64</verify>
65</testcase>
66