-
Notifications
You must be signed in to change notification settings - Fork 726
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow running tests in parallel (don't reuse addresses)
- Loading branch information
Showing
54 changed files
with
128 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import paho.mqtt.client as mqtt | ||
|
||
from tests.paho_test import loop_until_keyboard_interrupt | ||
from tests.paho_test import get_test_server_port, loop_until_keyboard_interrupt | ||
|
||
mqttc = mqtt.Client("01-no-clean-session", clean_session=False) | ||
|
||
mqttc.connect("localhost", 1888) | ||
mqttc.connect("localhost", get_test_server_port()) | ||
loop_until_keyboard_interrupt(mqttc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import paho.mqtt.client as mqtt | ||
|
||
from tests.paho_test import loop_until_keyboard_interrupt | ||
from tests.paho_test import get_test_server_port, loop_until_keyboard_interrupt | ||
|
||
mqttc = mqtt.Client("01-unpwd-set") | ||
|
||
mqttc.username_pw_set("uname", "") | ||
mqttc.connect("localhost", 1888) | ||
mqttc.connect("localhost", get_test_server_port()) | ||
loop_until_keyboard_interrupt(mqttc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import paho.mqtt.client as mqtt | ||
|
||
from tests.paho_test import loop_until_keyboard_interrupt | ||
from tests.paho_test import get_test_server_port, loop_until_keyboard_interrupt | ||
|
||
mqttc = mqtt.Client("01-unpwd-set") | ||
|
||
mqttc.username_pw_set("", "") | ||
mqttc.connect("localhost", 1888) | ||
mqttc.connect("localhost", get_test_server_port()) | ||
loop_until_keyboard_interrupt(mqttc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import paho.mqtt.client as mqtt | ||
|
||
from tests.paho_test import loop_until_keyboard_interrupt | ||
from tests.paho_test import get_test_server_port, loop_until_keyboard_interrupt | ||
|
||
mqttc = mqtt.Client("01-unpwd-set") | ||
|
||
mqttc.username_pw_set("uname", ";'[08gn=#") | ||
mqttc.connect("localhost", 1888) | ||
mqttc.connect("localhost", get_test_server_port()) | ||
loop_until_keyboard_interrupt(mqttc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
|
||
import paho.mqtt.client as mqtt | ||
|
||
from tests.paho_test import loop_until_keyboard_interrupt | ||
from tests.paho_test import get_test_server_port, loop_until_keyboard_interrupt | ||
|
||
mqttc = mqtt.Client("01-unpwd-unicode-set") | ||
|
||
username = "\u00fas\u00e9rn\u00e1m\u00e9-h\u00e9ll\u00f3" | ||
password = "h\u00e9ll\u00f3" | ||
mqttc.username_pw_set(username, password) | ||
mqttc.connect("localhost", 1888) | ||
mqttc.connect("localhost", get_test_server_port()) | ||
loop_until_keyboard_interrupt(mqttc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import paho.mqtt.client as mqtt | ||
|
||
from tests.paho_test import loop_until_keyboard_interrupt | ||
from tests.paho_test import get_test_server_port, loop_until_keyboard_interrupt | ||
|
||
mqttc = mqtt.Client("01-will-set") | ||
|
||
mqttc.will_set("topic/on/unexpected/disconnect", "will message", 1, True) | ||
mqttc.connect("localhost", 1888) | ||
mqttc.connect("localhost", get_test_server_port()) | ||
loop_until_keyboard_interrupt(mqttc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import paho.mqtt.client as mqtt | ||
|
||
from tests.paho_test import loop_until_keyboard_interrupt | ||
from tests.paho_test import get_test_server_port, loop_until_keyboard_interrupt | ||
|
||
mqttc = mqtt.Client("01-will-unpwd-set") | ||
|
||
mqttc.username_pw_set("oibvvwqw", "#'^2hg9a&nm38*us") | ||
mqttc.will_set("will-topic", "will message", 2, False) | ||
mqttc.connect("localhost", 1888) | ||
mqttc.connect("localhost", get_test_server_port()) | ||
loop_until_keyboard_interrupt(mqttc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import paho.mqtt.client | ||
import paho.mqtt.publish | ||
|
||
from tests.paho_test import wait_for_keyboard_interrupt | ||
from tests.paho_test import get_test_server_port, wait_for_keyboard_interrupt | ||
|
||
with wait_for_keyboard_interrupt(): | ||
paho.mqtt.publish.single( | ||
"pub/qos0/test", | ||
"message", | ||
qos=0, | ||
hostname="localhost", | ||
port=1888, | ||
port=get_test_server_port(), | ||
client_id="publish-helper-qos0-test", | ||
protocol=paho.mqtt.client.MQTTv5, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import paho.mqtt.publish | ||
|
||
from tests.paho_test import wait_for_keyboard_interrupt | ||
from tests.paho_test import get_test_server_port, wait_for_keyboard_interrupt | ||
|
||
with wait_for_keyboard_interrupt(): | ||
paho.mqtt.publish.single( | ||
"pub/qos0/test", | ||
"message", | ||
qos=0, | ||
hostname="localhost", | ||
port=1888, | ||
port=get_test_server_port(), | ||
client_id="publish-helper-qos0-test", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import paho.mqtt.publish | ||
|
||
from tests.paho_test import wait_for_keyboard_interrupt | ||
from tests.paho_test import get_test_server_port, wait_for_keyboard_interrupt | ||
|
||
with wait_for_keyboard_interrupt(): | ||
paho.mqtt.publish.single( | ||
"pub/qos1/test", | ||
"message", | ||
qos=1, | ||
hostname="localhost", | ||
port=1888, | ||
port=get_test_server_port(), | ||
client_id="publish-helper-qos1-disconnect-test", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.