Commit Graph

22 Commits

Author SHA1 Message Date
Frank Elsinga
0f61d7ee1b
chore: enable formatting over the entire codebase in CI (#6655)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-09 02:10:36 +01:00
Angel98518
27c0ae8f1e
fix: RabbitMQ monitor to more properly handle all nodes failure (#6646)
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2026-01-08 23:44:40 +00:00
Frank Elsinga
8d11807f77
fix(ci): make wss not depend on external dependencys (#6622) 2026-01-06 20:24:06 +00:00
mkdev11
d88a9e81e2 test: add retry logic to flaky external service tests
External services like smtp.gmail.com and xmpp.earth can be unreliable
in CI environments. Added retry logic (up to 3 attempts) to prevent
false test failures due to network issues.
2026-01-06 20:31:44 +02:00
mkdev11
5ab3a68718 test: fix TLS alert tests to use unit tests instead of unreliable external servers
- Replace client.badssl.com tests with unit tests for parseTlsAlertNumber and getTlsAlertName
- Export helper functions for testing
- Keep one integration test for connection success scenario
2026-01-06 20:29:21 +02:00
mkdev11
2a050b7e95 test: add test cases for TLS alert checking functionality
- Test rejection when expecting TLS alert but connection succeeds
- Test UP status when expected TLS alert is received
- Test rejection when different TLS alert is received than expected
2026-01-06 20:29:21 +02:00
Frank Elsinga
11a2b8ed9b
fix(ci): backoff all external TCP checks (#6613)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-06 17:43:54 +00:00
leonace924
806dadce5c fix: update the test 2026-01-06 02:11:49 -05:00
leonace924
a034436769 fix: apply both updates to mssql server monitor and mssql test 2026-01-06 01:54:38 -05:00
leonace924
e6481fa8aa fix: remove duplicate and keep old behavior 2026-01-06 01:42:20 -05:00
leonace924
d825352410 feat: extract MySQL/MariaDB monitor to its own monitor-type and enable conditions support 2026-01-06 01:42:20 -05:00
Frank Elsinga
b4c2624c69
Merge branch 'master' into XMPP-retry-test 2026-01-06 06:42:44 +01:00
Frank Elsinga
068cb35022 retry check() sets status to UP for XMPP server with valid certificate (STARTTLS) 2026-01-06 06:41:37 +01:00
mkdev11
11f451d7f2 fix: add type field to condition test objects
The processMonitorConditions function expects conditions with
type: 'expression' field. Fixed test cases to use correct format.
2026-01-06 03:57:34 +02:00
mkdev11
8b145d2522 refactor: split MQTT check() into smaller functions
Per CommanderStorm's feedback, refactor the check() method into:
- checkKeyword() - for legacy keyword matching
- checkJsonQuery() - for legacy JSONata query
- checkConditions() - for new conditions system

Also add test cases for MQTT conditions:
- Message condition with contains operator
- Topic condition with equals operator
- Condition mismatch rejection
- Multiple conditions with AND logic

This improves readability and maintainability.
2026-01-06 03:48:31 +02:00
Markus Reisenhofer
d096e2902c
feat(gamedig): Update gamedig implementation to v5 (#4949)
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2026-01-03 05:56:38 +00:00
Frank Elsinga
3cb3e7a8c3
add a testcase 2026-01-02 07:43:35 +01:00
Frank Elsinga
cf1e17f587 fix lint 2026-01-01 17:08:36 +01:00
Frank Elsinga
f426e5819a reword more of our testsuite names 2026-01-01 17:01:32 +01:00
Frank Elsinga
afef0c0e61 move websokcet 2026-01-01 16:35:26 +01:00
Frank Elsinga
9abded0baf fix imports 2026-01-01 16:34:05 +01:00
Frank Elsinga
b91b73a4eb move monitoring tests to better folder 2026-01-01 16:27:37 +01:00