Stuart Longland
29854264e3
broker tests: Change passwords for user[1…3]
...
As pointed out, it's possible to accidentally mix them up if the
passwords are the same. Obviously, the passwords used for these tests
should _NOT_ be used in production.
2021-08-17 16:20:27 +02:00
Stuart Longland
db5e886c7e
broker tests: Add system test for publish authorisation
2021-08-17 16:20:27 +02:00
Florian Ludwig
e1c73fc53a
update imports in tests
2021-03-27 17:49:55 +01:00
Marius Kriegerowski
613e77f6b4
more strict flake8. Fixed typos.
2021-03-17 10:57:32 +01:00
lrasku
c41b01499d
Fix topic filter matching
...
- re.escape() the whole filter string first to escape _all_ regex
metacharacters in it, not just $. (# and + are both regex metacharacters,
so their replace expressions now need a leading \\ to replace the
escaping, too.)
- # matches topics both with and without a trailing /, so the replace
expressions adds a '?' before the '.*'. The .lstrip('?') at the end removes
this in case the # was the first character in the filter.
- + should only match a single level, but it should _also_ match empty levels,
so use '[^/]*' to replace it.
- Use Regex.fullmatch() to match against the whole topic string, not just
its start.
Also add two unit tests to test this matching, and fix an incorrect match
against + in test_client_subscribe_publish_dollar_topic_2.
2021-03-15 13:43:47 +01:00
Marius Kriegerowski
7921e2cc22
linter project with black at default line length 88
2021-03-15 10:18:00 +01:00
Marius Kriegerowski
db3dffa857
use black linter with 96 char line length
2021-03-14 21:44:41 +01:00
Florian Ludwig
7276075ed8
move broker into pytest fixture
2021-03-09 19:13:32 +01:00
Florian Ludwig
5c58fcd59c
rework broker tests to use pytest-asyncio
2021-03-09 19:13:32 +01:00
Marius Kriegerowski
6f586c253c
Fix missing plugin property
2021-03-09 19:13:32 +01:00
Marius Kriegerowski
080a358dd7
Patch MagicMock to asyncronize
2021-03-09 19:13:32 +01:00
Marius Kriegerowski
e0fabc0bc3
Refactor to comply python3.8
2021-03-09 19:13:32 +01:00
Florian Ludwig
bd58685028
mark failing tasts as allowed to fail
2021-03-08 21:08:35 +01:00
Guillaume Desvé
31888f8e69
python3.7 support
2018-06-29 15:56:27 +02:00
mi3z
465b2cfc42
changed localhost to 127.0.0.1 to fix Travis CI test
2017-11-17 10:11:26 +01:00
Stein Magnus Jodal
ce4824bf70
flake8: Fix all F841 unused local variable warnings
2017-08-07 01:23:21 +02:00
Stein Magnus Jodal
559c18f681
flake8: Fix all F403, F405, F821 import warnings
2017-08-07 01:23:21 +02:00
Stein Magnus Jodal
6435e4239c
flake8: Fix all F401 unused imports warnings
2017-08-07 01:23:21 +02:00
Stein Magnus Jodal
177bfb627c
flake8: Fix all E1xx indentation warnings
2017-08-07 01:23:21 +02:00
Stein Magnus Jodal
6f4b306886
flake8: Fix all E2xx whitespace warnings
2017-08-07 01:23:20 +02:00
Stein Magnus Jodal
8b1aa60587
Change deprecated assertEquals() to assertEqual()
2017-07-26 14:06:13 +02:00
Nicolas
89ea06246b
#33
...
Added test case
2016-05-04 22:55:19 +02:00
Nicolas
f298a4a543
Fix #35
...
Test retain message exists before trying to delete it.
2016-05-04 22:43:06 +02:00
Nicolas
0e11d545d8
Fix #23
...
+ add test case
2016-05-04 22:35:38 +02:00
Nicolas
e9b806348e
Fix #32
2016-04-10 23:02:10 +02:00
Nicolas
ea62725868
Fix #30
2016-04-10 22:32:07 +02:00
Nicolas
5dc5293063
Fix #25 #26
2016-04-10 22:15:17 +02:00
Nicolas
360d5b03c7
Fix #28
2016-04-10 22:06:33 +02:00
Nicolas
7a868bd66e
Fix issue #24
...
Data was not read correctly until the end of the buffer
2016-04-10 15:33:48 +02:00
Nico
4dcf8eb477
Revert to 3.4 coroutine syntax
2015-11-01 15:58:20 +01:00
Nico
52e3160995
#HBMQTT-35
...
Refactor yield from -> await
2015-10-16 22:13:37 +02:00
Nico
c3a144c6a3
All tests passing
2015-10-12 21:33:14 +02:00
Nico
a3d856b4c8
fixes + add tests
2015-10-10 22:25:31 +02:00
Nico
6b7b962b16
Add publish retain test
2015-10-10 15:01:17 +02:00
Nico
10a0ef797b
Add unsubscribe test
...
Add subscribe twice on same topic test
2015-10-08 22:38:32 +02:00
Nico
c0190fafeb
Add subscription test
2015-10-08 22:09:34 +02:00
Nico
d0491a92ef
add test assertions
2015-10-08 21:25:15 +02:00
Nico
3acec1d606
Add broker test class + fixes in both client and broker connection management
2015-10-07 22:42:04 +02:00
Nico
2e1cc52164
Add plugin calls assertions on broker start/shutdown
2015-09-30 22:41:39 +02:00
Nico
d270a34b28
Basic broker test
2015-09-30 21:34:21 +02:00
Nico
fb760e6858
Add missing 'from'
2015-09-30 21:33:42 +02:00
Nicolas Jouanin
f58e7da2b3
Move broker stuff in specific package (for separation with future MQTT client stuffs)
2015-06-02 22:26:07 +02:00
Nicolas Jouanin
b90e59a007
Use asyncio.streams
2015-05-30 22:31:23 +02:00
Nicolas Jouanin
05c0e4b851
initial commit
2015-05-26 22:06:59 +02:00