Convert tests to Python 3

This commit is contained in:
Roger A. Light 2019-03-28 21:32:12 +00:00
parent 75c2a39d2c
commit 7e49d91898
217 changed files with 262 additions and 250 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether an anonymous connection is correctly denied. # Test whether an anonymous connection is correctly denied.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a first packet of non-CONNECT is rejected. # Test whether a first packet of non-CONNECT is rejected.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# loop through the different v5 DISCONNECT reason_code/properties options. # loop through the different v5 DISCONNECT reason_code/properties options.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a duplicate CONNECT is rejected. MQTT v5 # Test whether a duplicate CONNECT is rejected. MQTT v5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a duplicate CONNECT is rejected. # Test whether a duplicate CONNECT is rejected.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a CONNECT with a zero length client id results in the correct CONNACK packet. # Test whether a CONNECT with a zero length client id results in the correct CONNACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a CONNECT with a zero length client id results in the correct CONNACK packet. # Test whether a CONNECT with a zero length client id results in the correct CONNACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a CONNECT with a zero length client id results in the correct CONNACK packet. # Test whether a CONNECT with a zero length client id results in the correct CONNACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a client id with invalid UTF-8 fails. # Test whether a client id with invalid UTF-8 fails.
@ -17,7 +17,7 @@ broker = mosq_test.start_broker(filename=os.path.basename(__file__), port=port)
try: try:
time.sleep(0.5) time.sleep(0.5)
sock = mosq_test.do_client_connect(connect_packet, "", port=port) sock = mosq_test.do_client_connect(connect_packet, b"", port=port)
# Exception occurs if connack packet returned # Exception occurs if connack packet returned
rc = 0 rc = 0
sock.close() sock.close()

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a CONNECT with an invalid protocol number results in the correct CONNACK packet. # Test whether a CONNECT with an invalid protocol number results in the correct CONNACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a CONNECT with reserved set to 1 results in a disconnect. MQTT-3.1.2-3 # Test whether a CONNECT with reserved set to 1 results in a disconnect. MQTT-3.1.2-3
@ -12,7 +12,7 @@ port = mosq_test.get_port()
broker = mosq_test.start_broker(filename=os.path.basename(__file__), port=port) broker = mosq_test.start_broker(filename=os.path.basename(__file__), port=port)
try: try:
sock = mosq_test.do_client_connect(connect_packet, "", port=port) sock = mosq_test.do_client_connect(connect_packet, b"", port=port)
sock.close() sock.close()
rc = 0 rc = 0

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a valid CONNECT results in the correct CONNACK packet for MQTT v5. # Test whether a valid CONNECT results in the correct CONNACK packet for MQTT v5.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a valid CONNECT results in the correct CONNACK packet. # Test whether a valid CONNECT results in the correct CONNACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a username with invalid UTF-8 fails. # Test whether a username with invalid UTF-8 fails.
@ -17,7 +17,7 @@ broker = mosq_test.start_broker(filename=os.path.basename(__file__), port=port)
try: try:
time.sleep(0.5) time.sleep(0.5)
sock = mosq_test.do_client_connect(connect_packet, "", port=port) sock = mosq_test.do_client_connect(connect_packet, b"", port=port)
# Exception occurs if connack packet returned # Exception occurs if connack packet returned
rc = 0 rc = 0
sock.close() sock.close()

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a connection is disconnected if it provides a username but the # Test whether a connection is disconnected if it provides a username but the
# username flag is 0. # username flag is 0.
@ -18,7 +18,7 @@ port = mosq_test.get_port()
broker = mosq_test.start_broker(filename=os.path.basename(__file__), port=port) broker = mosq_test.start_broker(filename=os.path.basename(__file__), port=port)
try: try:
sock = mosq_test.do_client_connect(connect_packet, "", port=port) sock = mosq_test.do_client_connect(connect_packet, b"", port=port)
sock.close() sock.close()
rc = 0 rc = 0
finally: finally:

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a connection is denied if it provides just a username when it # Test whether a connection is denied if it provides just a username when it
# needs a username and password. # needs a username and password.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a connection is denied if it provides a correct username but # Test whether a connection is denied if it provides a correct username but
# incorrect password. # incorrect password.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a connection is denied if it provides a correct username but # Test whether a connection is denied if it provides a correct username but
# incorrect password. # incorrect password.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a connection is denied if it provides a correct username but # Test whether a connection is denied if it provides a correct username but
# incorrect password. # incorrect password.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a connection is disconnected if it provides a password but the # Test whether a connection is disconnected if it provides a password but the
# password flag is 0. # password flag is 0.
@ -18,7 +18,7 @@ port = mosq_test.get_port()
broker = mosq_test.start_broker(filename=os.path.basename(__file__), port=port) broker = mosq_test.start_broker(filename=os.path.basename(__file__), port=port)
try: try:
sock = mosq_test.do_client_connect(connect_packet, "", port=port) sock = mosq_test.do_client_connect(connect_packet, b"", port=port)
sock.close() sock.close()
rc = 0 rc = 0
finally: finally:

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether shared subscriptions work # Test whether shared subscriptions work

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test related to https://github.com/eclipse/mosquitto/issues/505 # Test related to https://github.com/eclipse/mosquitto/issues/505

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a client subscribed to a topic with retain-as-published set works as expected. # Test whether a client subscribed to a topic with retain-as-published set works as expected.
# MQTT v5 # MQTT v5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether "send retain" subscribe options work # Test whether "send retain" subscribe options work
# MQTT v5 # MQTT v5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Does setting and updating subscription identifiers work as expected? # Does setting and updating subscription identifiers work as expected?
# MQTT v5 # MQTT v5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether "topic alias" works to the broker # Test whether "topic alias" works to the broker
# MQTT v5 # MQTT v5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether "topic alias" works to the broker # Test whether "topic alias" works to the broker
# MQTT v5 # MQTT v5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a client subscribed to a topic receives its own message sent to that topic. # Test whether a client subscribed to a topic receives its own message sent to that topic.
# MQTT v5 # MQTT v5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a client subscribed to a topic receives its own message sent to that topic. # Test whether a client subscribed to a topic receives its own message sent to that topic.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test what the broker does if receiving a PUBCOMP in response to a QoS 1 PUBLISH. # Test what the broker does if receiving a PUBCOMP in response to a QoS 1 PUBLISH.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test what the broker does if receiving a PUBREC in response to a QoS 1 PUBLISH. # Test what the broker does if receiving a PUBREC in response to a QoS 1 PUBLISH.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether the broker reduces the message expiry interval when republishing # Test whether the broker reduces the message expiry interval when republishing
# a retained message, and eventually removes it. # a retained message, and eventually removes it.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether the broker reduces the message expiry interval when republishing a will. # Test whether the broker reduces the message expiry interval when republishing a will.
# MQTT v5 # MQTT v5
@ -24,7 +24,7 @@ suback_packet = mosq_test.gen_suback(mid, 1, proto_ver=5)
props = mqtt5_props.gen_uint32_prop(mqtt5_props.PROP_MESSAGE_EXPIRY_INTERVAL, 10) props = mqtt5_props.gen_uint32_prop(mqtt5_props.PROP_MESSAGE_EXPIRY_INTERVAL, 10)
helper_connect = mosq_test.gen_connect("helper", proto_ver=5, will_topic="subpub/qos1", will_qos=1, will_payload="message", will_properties=props, keepalive=2) helper_connect = mosq_test.gen_connect("helper", proto_ver=5, will_topic="subpub/qos1", will_qos=1, will_payload=b"message", will_properties=props, keepalive=2)
helper_connack = mosq_test.gen_connack(rc=0, proto_ver=5) helper_connack = mosq_test.gen_connack(rc=0, proto_ver=5)
#mid=2 #mid=2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether the broker reduces the message expiry interval when republishing. # Test whether the broker reduces the message expiry interval when republishing.
# MQTT v5 # MQTT v5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a client subscribed to a topic does not receive its own message # Test whether a client subscribed to a topic does not receive its own message
# sent to that topic if no local is set. # sent to that topic if no local is set.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a client subscribed to a topic receives its own message sent to that topic. # Test whether a client subscribed to a topic receives its own message sent to that topic.
# MQTT v5 # MQTT v5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a client subscribed to a topic receives its own message sent to that topic. # Test whether a client subscribed to a topic receives its own message sent to that topic.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test what the broker does if receiving a PUBACK in response to a QoS 2 PUBLISH. # Test what the broker does if receiving a PUBACK in response to a QoS 2 PUBLISH.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test what the broker does if receiving a PUBACK in response to a QoS 2 PUBREL. # Test what the broker does if receiving a PUBACK in response to a QoS 2 PUBREL.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test what the broker does if receiving a PUBCOMP in response to a QoS 2 PUBLISH. # Test what the broker does if receiving a PUBCOMP in response to a QoS 2 PUBLISH.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from mosq_test_helper import * from mosq_test_helper import *

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a PUBREC with reason code >= 0x80 is handled correctly # Test whether a PUBREC with reason code >= 0x80 is handled correctly

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Does the broker respect receive maximum==1? # Does the broker respect receive maximum==1?
# MQTT v5 # MQTT v5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Does the broker respect receive maximum==2? # Does the broker respect receive maximum==2?
# MQTT v5 # MQTT v5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a client subscribed to a topic receives its own message sent to that topic. # Test whether a client subscribed to a topic receives its own message sent to that topic.
# MQTT v5 # MQTT v5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a client subscribed to a topic receives its own message sent to that topic. # Test whether a client subscribed to a topic receives its own message sent to that topic.
# MQTT v5 # MQTT v5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a client subscribed to a topic receives its own message sent to that topic. # Test whether a client subscribed to a topic receives its own message sent to that topic.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a SUBSCRIBE to $SYS or $share succeeds # Test whether a SUBSCRIBE to $SYS or $share succeeds

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a SUBSCRIBE to a topic with an invalid UTF-8 topic fails # Test whether a SUBSCRIBE to a topic with an invalid UTF-8 topic fails
@ -24,7 +24,7 @@ try:
time.sleep(0.5) time.sleep(0.5)
sock = mosq_test.do_client_connect(connect_packet, connack_packet, port=port) sock = mosq_test.do_client_connect(connect_packet, connack_packet, port=port)
mosq_test.do_send_receive(sock, subscribe_packet, "", "suback") mosq_test.do_send_receive(sock, subscribe_packet, b"", "suback")
rc = 0 rc = 0

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test switching between persistence and a clean session. # Test switching between persistence and a clean session.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a SUBSCRIBE to a topic with QoS 0 results in the correct SUBACK packet. # Test whether a SUBSCRIBE to a topic with QoS 0 results in the correct SUBACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a SUBSCRIBE to a topic with QoS 1 results in the correct SUBACK packet. # Test whether a SUBSCRIBE to a topic with QoS 1 results in the correct SUBACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a SUBSCRIBE to a topic with QoS 2 results in the correct SUBACK packet. # Test whether a SUBSCRIBE to a topic with QoS 2 results in the correct SUBACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a UNSUBSCRIBE with no topic results in a disconnect. MQTT-3.10.3-2 # Test whether a UNSUBSCRIBE with no topic results in a disconnect. MQTT-3.10.3-2
@ -21,7 +21,7 @@ broker = mosq_test.start_broker(filename=os.path.basename(__file__), port=port)
try: try:
sock = mosq_test.do_client_connect(connect_packet, connack_packet, port=port) sock = mosq_test.do_client_connect(connect_packet, connack_packet, port=port)
mosq_test.do_send_receive(sock, unsubscribe_packet, "", "disconnect") mosq_test.do_send_receive(sock, unsubscribe_packet, b"", "disconnect")
rc = 0 rc = 0

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a UNSUBSCRIBE to a topic with QoS 0 results in the correct UNSUBACK packet. # Test whether a UNSUBSCRIBE to a topic with QoS 0 results in the correct UNSUBACK packet.
# This doesn't assume a subscription exists. # This doesn't assume a subscription exists.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a SUBSCRIBE to a topic with QoS 1 results in the correct SUBACK packet. # Test whether a SUBSCRIBE to a topic with QoS 1 results in the correct SUBACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a v5 UNSUBSCRIBE to multiple topics with QoS 2 results in the # Test whether a v5 UNSUBSCRIBE to multiple topics with QoS 2 results in the
# correct UNSUBACK packet, when one subscription exists and the other does not. # correct UNSUBACK packet, when one subscription exists and the other does not.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a SUBSCRIBE to multiple topics with QoS 2 results in the correct SUBACK packet. # Test whether a SUBSCRIBE to multiple topics with QoS 2 results in the correct SUBACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a SUBSCRIBE to a topic with QoS 2 results in the correct SUBACK packet. # Test whether a SUBSCRIBE to a topic with QoS 2 results in the correct SUBACK packet.
# MQTT 5 # MQTT 5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a SUBSCRIBE to a topic with QoS 2 results in the correct SUBACK packet. # Test whether a SUBSCRIBE to a topic with QoS 2 results in the correct SUBACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from mosq_test_helper import * from mosq_test_helper import *

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from mosq_test_helper import * from mosq_test_helper import *

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from mosq_test_helper import * from mosq_test_helper import *

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from mosq_test_helper import * from mosq_test_helper import *

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a PUBLISH to a topic with QoS 2 results in the correct packet flow. # Test whether a PUBLISH to a topic with QoS 2 results in the correct packet flow.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from mosq_test_helper import * from mosq_test_helper import *

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from mosq_test_helper import * from mosq_test_helper import *

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Check whether the broker handles a v5 PUBACK with all combinations # Check whether the broker handles a v5 PUBACK with all combinations
# of with/without reason code and properties. # of with/without reason code and properties.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from mosq_test_helper import * from mosq_test_helper import *

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Check whether the broker handles a v5 PUBREC, PUBCOMP with all combinations # Check whether the broker handles a v5 PUBREC, PUBCOMP with all combinations
# of with/without reason code and properties. # of with/without reason code and properties.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a PUBLISH to a topic with QoS 2 results in the correct packet flow. # Test whether a PUBLISH to a topic with QoS 2 results in the correct packet flow.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a SUBSCRIBE to a topic with QoS 2 results in the correct SUBACK packet. # Test whether a SUBSCRIBE to a topic with QoS 2 results in the correct SUBACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a PUBLISH to a topic with QoS 2 results in the correct packet flow. # Test whether a PUBLISH to a topic with QoS 2 results in the correct packet flow.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a SUBSCRIBE to a topic with QoS 2 results in the correct SUBACK packet. # Test whether a SUBSCRIBE to a topic with QoS 2 results in the correct SUBACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from mosq_test_helper import * from mosq_test_helper import *

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Check whether the broker handles a v5 PUBREL with all combinations # Check whether the broker handles a v5 PUBREL with all combinations
# of with/without reason code and properties. # of with/without reason code and properties.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a PUBLISH to a topic with QoS 2 results in the correct packet # Test whether a PUBLISH to a topic with QoS 2 results in the correct packet
# flow. This test introduces delays into the flow in order to force the broker # flow. This test introduces delays into the flow in order to force the broker

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a PUBLISH to $ topics QoS 1 results in the expected PUBACK packet. # Test whether a PUBLISH to $ topics QoS 1 results in the expected PUBACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a PUBLISH to a topic starting with $ succeeds # Test whether a PUBLISH to a topic starting with $ succeeds

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a PUBLISH to a topic with an invalid UTF-8 topic fails # Test whether a PUBLISH to a topic with an invalid UTF-8 topic fails
@ -24,7 +24,7 @@ try:
time.sleep(0.5) time.sleep(0.5)
sock = mosq_test.do_client_connect(connect_packet, connack_packet, port=port) sock = mosq_test.do_client_connect(connect_packet, connack_packet, port=port)
mosq_test.do_send_receive(sock, publish_packet, "", "puback") mosq_test.do_send_receive(sock, publish_packet, b"", "puback")
rc = 0 rc = 0

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a PUBLISH to a topic with QoS 1 results in the correct PUBACK # Test whether a PUBLISH to a topic with QoS 1 results in the correct PUBACK
# packet when there are no subscribers. # packet when there are no subscribers.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a PUBLISH to a topic with an offline subscriber results in a queued message # Test whether a PUBLISH to a topic with an offline subscriber results in a queued message
import Queue import Queue

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a PUBLISH with a retain set when retains are disabled results in # Test whether a PUBLISH with a retain set when retains are disabled results in
# the correct DISCONNECT. # the correct DISCONNECT.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a PUBLISH to a topic with QoS 1 results in the correct PUBACK packet. # Test whether a PUBLISH to a topic with QoS 1 results in the correct PUBACK packet.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a PUBLISH to a topic with QoS 2 results in the correct packet flow. # Test whether a PUBLISH to a topic with QoS 2 results in the correct packet flow.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test for CVE-2018-12546, with the broker being stopped to write the persistence file, plus subscriber on different port. # Test for CVE-2018-12546, with the broker being stopped to write the persistence file, plus subscriber on different port.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test for CVE-2018-12546, with the broker being stopped to write the persistence file. # Test for CVE-2018-12546, with the broker being stopped to write the persistence file.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test for CVE-2018-12546 # Test for CVE-2018-12546

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a retained PUBLISH is cleared when a zero length retained # Test whether a retained PUBLISH is cleared when a zero length retained
# message is published to a topic. # message is published to a topic.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a retained PUBLISH to a topic with QoS 0 is sent with # Test whether a retained PUBLISH to a topic with QoS 0 is sent with
# retain=false to an already subscribed client. # retain=false to an already subscribed client.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a retained PUBLISH to a topic with QoS 0 is actually retained # Test whether a retained PUBLISH to a topic with QoS 0 is actually retained
# and delivered when multiple sub/unsub operations are carried out. # and delivered when multiple sub/unsub operations are carried out.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a retained PUBLISH to a topic with QoS 0 is actually retained. # Test whether a retained PUBLISH to a topic with QoS 0 is actually retained.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a retained PUBLISH to a topic with QoS 1 is retained. # Test whether a retained PUBLISH to a topic with QoS 1 is retained.
# Subscription is made with QoS 0 so the retained message should also have QoS # Subscription is made with QoS 0 so the retained message should also have QoS

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a retained PUBLISH to a topic with QoS 0 is sent with subscriber QoS # Test whether a retained PUBLISH to a topic with QoS 0 is sent with subscriber QoS
# when upgrade_outgoing_qos is true # when upgrade_outgoing_qos is true

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a clean session client has a QoS 1 message queued for it. # Test whether a clean session client has a QoS 1 message queued for it.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Test whether a clean session client has a QoS 1 message queued for it. # Test whether a clean session client has a QoS 1 message queued for it.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# MQTT v5. Test whether session expiry interval works correctly. # MQTT v5. Test whether session expiry interval works correctly.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Does a bridge resend a QoS=1 message correctly after a disconnect? # Does a bridge resend a QoS=1 message correctly after a disconnect?

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Does a bridge resend a QoS=1 message correctly after a disconnect? # Does a bridge resend a QoS=1 message correctly after a disconnect?

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Does a bridge queue up retained messages correctly if the remote broker starts up late? # Does a bridge queue up retained messages correctly if the remote broker starts up late?

Some files were not shown because too many files have changed in this diff Show More