Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 46eb3092b983ae101339ddd09ab8d2279159e692
https://github.com/tribe29/checkmk/commit/46eb3092b983ae101339ddd09ab8d2279…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2023-03-17 (Fri, 17 Mar 2023)
Changed paths:
A tests/integration/notifications/conftest.py
M tests/integration/notifications/test_simple_rbn.py
M tests/integration/notifications/test_unreachable_notifications.py
Log Message:
-----------
Make notification integration tests more robust
* In test_unreachable_notifications the DISABLE_HOST_CHECK and
DISABLE_SVC_CHECK commands were not covering all the existing
services. This lead to flaky test behavior. test_simple_rbn did
already use the global toggles STOP_EXECUTING_HOST_CHECKS and
STOP_EXECUTING_SVC_CHECKS which is now used by both.
* In addition both test modules also disable the flap detection using
the command DISABLE_FLAP_DETECTION to prevent it from influencing the
test outcome.
* Cleaned up typing and separated setup code a bit along the way.
Change-Id: I7499bc3526fd38e8d18704f75a39056a9d721504