1
0
mirror of https://github.com/qt/qtmqtt.git synced 2026-10-25 16:16:26 +00:00
Commit Graph

12 Commits

Author SHA1 Message Date
Lucie Gérard
edd6855344 Use SPDX license identifiers
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
License files are organized under LICENSES directory.

Pick-to: 6.4
Task-number: QTBUG-67283
Change-Id: Ie4309963c8e17d4e7dad602f61a660246d5e23cb
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-06-16 10:22:20 +02:00
Maurice Kalinowski
7477c29f47 Prefer utf8 instead of local8Bit
Change-Id: I19343409b5b9b9deeba37b8ef6a8ac688ec74341
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
2020-06-03 16:21:40 +02:00
Maurice Kalinowski
86b2366942 Enable server client id test
When a client connects without a client id, the server might decide to
assign one to the client. The test was disabled so far, but
QMqttServerConnectionProperties handles this properly now.

Change-Id: If013ba67aa1f08c8842b872a6125e7d2bfa6430d
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2018-07-24 12:32:43 +00:00
hjk
629f52ae27 Avoid a few compiler warnings
Signed/unsigned comparison and an unused argument.

Change-Id: Iec452f058d6e40d24dc66261cb221b45cc89d59a
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2018-07-24 12:32:17 +00:00
Maurice Kalinowski
de25c6b78d Make test topics unique to test class
Always use a prefix for topics inside a test class. Otherwise running
multiple tests concurrently can cause failures as test data is shared
among the broker and behavior becomes unreliable.

Task-number: QTBUG-69549
Change-Id: Ia9886826f65e8e40826fcd9a83bb8ec5a1a8e850
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2018-07-20 11:55:23 +00:00
Maurice Kalinowski
307eaa2cf8 MQTT5: Update tests
Some tests require checks for MQTT5

Change-Id: If3c22c9c805a137d90b27bae0bdc9d77e17cd8a1
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2018-07-20 11:53:40 +00:00
Maurice Kalinowski
ac666587dd MQTT5: Add initial support
With this patch it is possible to set the version to MQTT5 and
use the same features as against version 3.1.1. No MQTT5 specific
features are enabled.

Change-Id: I129ff8a2c996d7bcc582565fccda9e38edc48c62
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2018-07-20 11:53:14 +00:00
Lorenz Haas
6eca6f914d Introduce specific types for topic names and filters
For "topics" the standard defines topic names and topic filters with
specific characteristics. QMqttTopicName and QMqttTopicFilter implement
this requirements.

[ChangeLog][General] Added QMqttTopicName and QMqttTopicFilter

Change-Id: Ie2b6851ec9249f20d05c4b8df3c2f27afc2be4b9
Reviewed-by: hjk <hjk@qt.io>
2017-11-15 13:18:31 +00:00
Jani Heikkinen
984527e516 Update license headers
Change-Id: If9b7f82a71ec554b152485ddd91a9d105019c6ce
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2017-09-25 11:58:23 +00:00
Maurice Kalinowski
5986b03bad Change signature of QMqttClient::subscribe
Instead of returning a QSharedPointer, return the same pointer. This
improves readability as well as using the subscription from a user
perspective.

The ownership has to stay with the client though, otherwise behavior
is unexpected.

Change-Id: I72d3c15a12faf45c9575af8b3a790dfff1a30c2a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2017-09-01 18:52:20 +00:00
Maurice Kalinowski
41440a51f0 Refactor test server connection
Introduce common header to handle broker identification. By default the
paho test broker which gets provisioned on the test machines will be
used.

Still it can be overwritten by specifying MQTT_TEST_BROKER to point to
another location.

Change-Id: Ic0d2c6a025e9de246e79a4309e490c67225e1536
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2017-06-29 12:47:45 +00:00
Maurice Kalinowski
e8d5b83dde Add conformance tests
Conformance tests are supposed to go through the specs and test each
item stated, to an extend possible. As a base, the paho test suite is
used, more specifically all tests of client_test.py.

In conjunction with tests for the Qt classes, we reach 72% conformance,
which is higher than the client test by paho reaches itself.

Change-Id: I5672a3664c340fe7f856de3eaf63bf117075acb6
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2017-06-29 12:31:04 +00:00