Wykres commitów

53 Commity (revert-274-broker_script_logging)

Autor SHA1 Wiadomość Data
Andrew Mirsky 571434ed04
fixing test comments 2025-07-03 16:10:47 -04:00
Andrew Mirsky a2e5a67059
resolves Yakifo/amqtt#250 : * was being blocked as a valid topic character in publish/receive, even though the invalid topic wildcard characters are '#' and '+'. also, add test coverage for error cases when creating different packet types. 2025-07-03 14:32:13 -04:00
Andrew Mirsky fb0404321d
Merge branch 'main' into alt_plugin_config 2025-06-27 13:59:39 -04:00
Andrew Mirsky 1608edff91
add setting for connection timeout 2025-06-26 13:00:40 -04:00
Andrew Mirsky ea59956458
resolves Yakifo/amqtt#196 : adds alternative, non-breaking mechanism to identify and config plugins directly within in the broker (and client) config files 2025-06-18 12:54:21 -04:00
Andrew Mirsky 2828a171d7
removing tests due to unreliable external access 2025-06-16 10:13:33 -04:00
Andrew Mirsky c6a7715ddc
fixes Yakifo/amqtt#35 : gather event callbacks upon plugin load so don't have to check all plugins on every fire_event 2025-06-15 20:17:40 -04:00
Andrew Mirsky 6b00521ca7
Merge branch 'rc' into issues/199 2025-06-14 10:14:40 -04:00
Andrew Mirsky 90167d060f
Merge branch 'rc' into issues/199 2025-06-14 10:08:34 -04:00
Andrew Mirsky 101e32af64
Merge branch 'rc' into issues/154 2025-06-14 10:03:09 -04:00
Andrew Mirsky bc44f170ba
Merge branch 'rc' into issues/67 2025-06-14 09:56:01 -04:00
Andrew Mirsky 5a4fb993b7
Merge branch 'rc' into issues/154 2025-06-14 09:44:43 -04:00
Andrew Mirsky fed5b8eb08
shutdown broker when test completes 2025-06-12 11:03:28 -04:00
Andrew Mirsky e7882a3755
fixes amqtt/Yakifo#210 : when reconnect is false, authentication failure causes NoDataError instead of ConnectError 2025-06-12 10:52:44 -04:00
Andrew Mirsky 52b69ee068
fixes Yakifo/amqtt#67 : malformed uri or incorrect scheme should raise a ConnectError (not a ClientError) 2025-06-08 10:29:14 -04:00
Andrew Mirsky 58d431f2f5
adding test case for issue 67 2025-06-08 00:06:17 -04:00
Andrew Mirsky 2093cc5961
fixes Yakifo/amqtt#199 : cleanly disconnected clients should not send will messages. fixing client tests, adding additional. and correcting the broker's client handler so that normal or abnormal disconnections end the client's session and stop processing messages from the client 2025-06-07 23:56:30 -04:00
Andrew Mirsky f3291eda2f
fixes Yakifo/amqtt#154 : will message is allowed to have zero length. and the StreamReader can return 'None' or zero and they have different implications. if reading value in order to read from a stream and the length is zero, return a NoDataError. Creating exception class to satisfy EM101 and TRY003 2025-06-07 18:21:08 -04:00
Andrew Mirsky 9d3d9bd7e2
using 'n' messages to force amqtt_sub to exit, instead of SIGINT which seems to cause the process to force quit instead of causing a keyboard interupt 2025-06-03 18:29:13 -04:00
Andrew Mirsky dd666811a5
increasing timeout for longer running cli tests, adding asyncio wrapper on test_client test 2025-06-03 11:55:03 -04:00
Andrew Mirsky 1752895a39
fixes Yakifo/amqtt#159 : tests/test_client.py::test_client_publish_will_with_retain 2025-06-03 10:58:56 -04:00
MVladislav 338ff39b17 chore: update version to 0.11.0-beta4, add clear_queues method, and improve resource management in PluginManager and BrokerProtocolHandler 2025-04-04 19:18:17 +02:00
MVladislav a024b174d0 refactor: more cleanup/linting 2025-01-12 20:52:50 +01:00
MVladislav 7c001d69b2 refactor: bigger code upgrade and improves
- add github workflows
- update project.toml by disable multi parts to not see every needed fix now
- improve tests cases
- improve code quality
- ...
2024-12-21 11:52:26 +01:00
MVladislav 7cc746e483 refactor: base cleanup and bring project to run with test cases 2024-12-19 20:34:09 +01:00
rparry-jones d0eb64dc19 #126
- Updated protocol handlers to more reliably remove active waiters when task cancellation occurs
- Fixed checks where expecting a KeyError when it should be checking if not None
- Updated next_packet_id property to correctly check if there are any packet_ids available. Avoids infinite loop if all packet ids are used.
2023-02-27 18:52:11 +01:00
Rémi Cardona a3f982c4d2 allow connections with username only
Section [MQTT-3.1.2-22] of the MQTT 3.1.1 only says that a password cannot be
given without a user. The reverse should be allowed. Fixes #79.
2022-04-17 12:05:25 +02:00
Florian Ludwig e1c73fc53a update imports in tests 2021-03-27 17:49:55 +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 7c56c9caba migrate test_client to pytest 2021-03-09 19:13:32 +01:00
Marius Kriegerowski e0fabc0bc3 Refactor to comply python3.8 2021-03-09 19:13:32 +01:00
Marius Kriegerowski aeee26f34b Download mosquitto certificate on the fly 2021-03-01 17:40:57 +01:00
Thinh Nguyen 5a241d7739 Only setting session username/password if it is not already set. This is to prevent failures when the broker is reconnecting without username/password 2018-10-29 13:55:09 +11:00
mi3z 465b2cfc42 changed localhost to 127.0.0.1 to fix Travis CI test 2017-11-17 10:11:26 +01:00
mi3z 3fc4bb7a9e
fixed port for test_connect_ws
fixed port used for ws test from 8081 (which is wss) to 8080.
2017-11-09 17:32:07 +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 df2c9b8a43 flake8: Fix all E3xx newline warnings 2017-08-07 01:23:20 +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 2c1db79127 Fix #75.
Reset packet_id when > 65535.
This may lead to performance problem when there are still many in-flight messages (QOS1 or QOS 2 not yet acknowledged)
2017-06-02 21:17:05 +02:00
Nicolas d382ada36b Update websockets, use local broker for testing 2017-06-02 16:53:58 +02:00
Nicolas b7401443c8 Fix #40 and add test cases 2016-05-31 21:40:10 +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 3acec1d606 Add broker test class + fixes in both client and broker connection management 2015-10-07 22:42:04 +02:00
Nico 04c0b257c4 Remove unused 2015-09-30 22:09:25 +02:00
Nico a8b5fb221d remove ugly print() 2015-09-29 22:05:09 +02:00