Add tests for websocket support for mqtt
For at least one platform run the twelve combinations of:
Transport: [Tcp,Ssl,Ws,Wss]
Protocol: [3.1, 3.1.1, 5.0]
This happens if the following defines are present:
MQTT_TEST_BROKER
MQTT_TEST_TYPE
MQTT_TEST_PROTOCOL
If these are not defined, the old test behavior is kept
The logic is that we are replacing the type of VersionClient
to homegrown logic that replaces connectToHost with the
correct function:
connectToHost
connectToHostEncrypted,
connectToHostWebSocket
connectToHostWebSocketEncrypted
For this to work it is important that the VersionClient
macro is used everywhere.
Also, DefaultVersionTestData has been changed to
return version(0) if MQTT_TEST_PROTOCOL is defined,
we will now run one protocol at the time instead.
This is Change Request 2 of 2 wrt testing.
Task-number: QTBUG-129171
Change-Id: I4f68d7c2ea226a1107f009c80f87f8b749d9f120
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
| commit | 8316766cec3652d0e68ee18b5d279c5ce632c581 |
| parent | 967c70f1d5bc55c1be22851a79440939a5c87193 |
| author | Even Oscar Andersen <even.oscar.andersen@qt.io> |
| committer | Even Oscar Andersen <even.oscar.andersen@qt.io> |
| commit time | Wed, 29 Jan 2025 15:54:55 +0100 |
- M tests/CMakeLists.txt
- M tests/auto/conformance/CMakeLists.txt
- M tests/auto/conformance/tst_conformance.cpp
- M tests/auto/qmqttclient/CMakeLists.txt
- M tests/auto/qmqttclient/tst_qmqttclient.cpp
- M tests/auto/qmqttconnectionproperties/CMakeLists.txt
- M tests/auto/qmqttconnectionproperties/tst_qmqttconnectionproperties.cpp
- M tests/auto/qmqttcontrolpacket/CMakeLists.txt
- M tests/auto/qmqttlastwillproperties/CMakeLists.txt
- M tests/auto/qmqttlastwillproperties/tst_qmqttlastwillproperties.cpp
- M tests/auto/qmqttpublishproperties/CMakeLists.txt
- M tests/auto/qmqttpublishproperties/tst_qmqttpublishproperties.cpp
- M tests/auto/qmqttsubscription/CMakeLists.txt
- M tests/auto/qmqttsubscription/tst_qmqttsubscription.cpp
- M tests/auto/qmqttsubscriptionproperties/CMakeLists.txt
- M tests/auto/qmqttsubscriptionproperties/tst_qmqttsubscriptionproperties.cpp
- M tests/auto/qmqtttopicfilter/CMakeLists.txt
- M tests/auto/qmqtttopicname/CMakeLists.txt
- M tests/benchmarks/qmqttclient/tst_qmqttclient.cpp
- A tests/certificate/cert.crt
- A tests/certificate/cert.key
- M tests/common/broker_connection.h