forked from boostorg/mqtt5
topic validation in subscribe, unsubscribe & publish
Summary: resolves T13170 Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Maniphest Tasks: T13170 Differential Revision: https://repo.mireo.local/D26728
This commit is contained in:
1 parent
93dc1064a2
commit
c18e5fc4f4
19 files changed
+284
-108
No files matched your search
@@ -86,7 +86,7 @@ void publish_qos0_websocket_tls() {
|
||||
|
||||
c.credentials("test-qos0-websocket-tls", "", "")
|
||||
.brokers("iot.fcluster.mireo.hr/mqtt", 8884)
|
||||
.will({ "test/mqtt-test", "i died", async_mqtt5::qos_e::at_least_once })
|
||||
.will({ "test/mqtt-test", "Client disconnected!", async_mqtt5::qos_e::at_least_once })
|
||||
.run();
|
||||
|
||||
c.async_publish<qos_e::at_most_once>(
|
||||
@@ -121,7 +121,7 @@ void publish_qos1_websocket_tls() {
|
||||
|
||||
c.credentials("test-qos1-websocket-tls", "", "")
|
||||
.brokers("iot.fcluster.mireo.hr/mqtt", 8884)
|
||||
.will({ "test/mqtt-test", "i died", qos_e::at_least_once })
|
||||
.will({ "test/mqtt-test", "Client disconnected!", qos_e::at_least_once })
|
||||
.run();
|
||||
|
||||
c.async_publish<qos_e::at_least_once>(
|
||||
@@ -157,7 +157,7 @@ void publish_qos2_websocket_tls() {
|
||||
|
||||
c.credentials("test-qos2-websocket-tls", "", "")
|
||||
.brokers("iot.fcluster.mireo.hr/mqtt", 8884)
|
||||
.will({ "test/mqtt-test", "i died", qos_e::at_least_once })
|
||||
.will({ "test/mqtt-test", "Client disconnected!", qos_e::at_least_once })
|
||||
.run();
|
||||
|
||||
c.async_publish<qos_e::exactly_once>(
|
||||
@@ -194,7 +194,7 @@ void subscribe_and_receive_websocket_tls(int num_receive) {
|
||||
|
||||
c.credentials("test-subscriber-websocket-tls", "", "")
|
||||
.brokers("iot.fcluster.mireo.hr/mqtt", 8884)
|
||||
.will({ "test/mqtt-test", "i died", qos_e::at_least_once })
|
||||
.will({ "test/mqtt-test", "Client disconnected!", qos_e::at_least_once })
|
||||
.run();
|
||||
|
||||
std::vector<subscribe_topic> topics;
|
||||
|
||||
Reference in new issue
Block a user