Commit graph

18 commits

Author SHA1 Message Date
Roger A. Light
e6e55d662c
Tests: Refactor test packet generation 2026-05-13 19:38:00 +01:00
Roger A. Light
87c5cb13c5 Tests: Add support for broker shutdown on Windows 2026-05-03 01:17:26 +01:00
Roger A. Light
f6f5de34d6 Tests: Use tempfile for broker logging to prevent stderr buffer filling 2026-05-03 01:17:26 +01:00
Roger Light
6fda6f61b2 Tests: Use platform independent binary paths 2026-05-03 01:17:26 +01:00
Roger A. Light
25e4c7a0ba Test fixes for WITH_TLS=OFF 2026-04-16 21:35:46 +01:00
Roger A. Light
fe4343dac7 Tests: Add feature guards
This allows test runners to set environment variables to let tests know which features are available. This is done by the cmake tests, but probably won't be extended to the make tests.
2026-04-16 21:35:46 +01:00
Roger A. Light
65ad337bbb dynsec: Add getDetails command 2025-07-17 17:04:48 +01:00
Norbert Heusser
f424667fca Merge branch 'develop' into NorbertHeusser:develop 2022-07-08 09:30:53 +00:00
Kai Buschulte
a883bda9c1 Add CMake test target
Use `ctest` or `make test` to run all tests.
With this it's also possible to run tests on a Mac.

Relative paths used in tests become absolute ones to make tests
executable from any build folder.

Also fixed race condition in
  test/broker/11-persistent-subscription-no-local.py

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
2022-06-22 23:56:50 +01:00
Norbert Heusser
306b76d7f6 Create github build action to build Mosquitto and added timeout
to python tests waiting for subprocess to avoid github actione being blocked

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2022-05-08 10:40:30 +00:00
Norbert Heusser
e7e8b6e832 * Added list of connections to dynsec/getClient response
* Added new helper function mosquitto_apply_on_all_clients to broker
* Refactoring in dynamic-security plugin

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2022-02-21 16:27:26 +00:00
Roger A. Light
93ed5721e2 No need to set keepalive in most tests. 2021-12-30 08:35:45 +00:00
Roger A. Light
34b41a3b01 Dynsec: Add ability to deny wildcard subscriptions for a role 2021-11-10 11:20:25 +00:00
Roger A. Light
0cd2619401 Add %c and %u support to dynsec publish ACLs. 2021-06-10 22:19:33 +01:00
Roger A. Light
6bd45f0092 dynsec: Better test coverage 2020-11-30 17:15:43 +00:00
Roger A. Light
255ae24a6d Fix basic dynsec tests. 2020-11-05 23:48:11 +00:00
Roger A. Light
a1ad4cfcc4 Dynsec: Rename ACL types for clarity.
publishBrokerToClient -> publishClientReceive
publishClientToBroker -> publishClientSend
2020-10-28 11:03:44 +00:00
Roger A. Light
fdff255916 New dynamic security plugin. 2020-10-27 00:54:55 +00:00