From ae3fe9f6e76084de6ffd4d7a5d96807ed2ae2fd3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 15 Dec 2025 13:19:19 +0100 Subject: [PATCH] test1640: initial MQTTS test --- tests/data/Makefile.am | 2 ++ tests/data/test1640 | 54 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 tests/data/test1640 diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 8da9a55a71..6d8124c1f8 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -218,6 +218,8 @@ test1620 test1621 \ \ test1630 test1631 test1632 test1633 test1634 test1635 \ \ +test1640 \ +\ test1650 test1651 test1652 test1653 test1654 test1655 test1656 test1657 \ test1658 \ test1660 test1661 test1662 test1663 test1664 test1665 \ diff --git a/tests/data/test1640 b/tests/data/test1640 new file mode 100644 index 0000000000..e6f1f59fb0 --- /dev/null +++ b/tests/data/test1640 @@ -0,0 +1,54 @@ + + + + +MQTT +MQTT SUBSCRIBE +MQTTS + + + +# Server-side + + +hello + + +00 04 31 31 39 30 68 65 6c 6c 6f 5b 4c 46 5d 0a + + + +# Client-side + + +mqtts + + +mqtts + + +MQTTS SUBSCRIBE + + +mqtts://%HOSTIP:%MQTTSPORT/topic --insecure + + + +# Verify data after the test has been "shot" + +# These are hexadecimal protocol dumps from the client +# Strip out the random part of the client id from the CONNECT message +# before comparison + +s/^(.* 00044d5154540402003c000c6375726c).*/$1/ + + +client CONNECT 18 00044d5154540402003c000c6375726c +server CONNACK 2 20020000 +client SUBSCRIBE a 00010005746f70696300 +server SUBACK 3 9003000100 +server PUBLISH d 300d0005746f70696368656c6c6f0a +server DISCONNECT 0 e000 + + +