check-patroni/tests
benoit 8d6b8502b6 cluster_has_replica: fix the way a healthy replica is detected
For patroni >= version 3.0.4:
* the role is `replica` or `sync_standby`
* the state is `streaming` or `in archive recovery`
* the timeline is the same as the leader
* the lag is lower or equal to `max_lag`

For prio versions of patroni:
* the role is `replica` or `sync_standby`
* the state is `running`
* the timeline is the same as the leader
* the lag is lower or equal to `max_lag`

Additionnally, we now display the timeline in the perfstats. We also try
to display the perf stats of unhealthy replica as much as possible.

Update tests for cluster_has_replica:
* Fix the tests to make them work with the new algotithm
* Add a specific test for tl divergences
2023-11-11 10:50:35 +01:00
..
json cluster_has_replica: fix the way a healthy replica is detected 2023-11-11 10:50:35 +01:00
__init__.py cluster_has_replica: fix the way a healthy replica is detected 2023-11-11 10:50:35 +01:00
conftest.py Work around nagiosplugin issue about stdout in tests 2023-10-13 11:45:39 +02:00
test_api.py Use fake HTTP server for the Patroni API in tests 2023-10-06 10:40:29 +02:00
test_cluster_config_has_changed.py Use fake HTTP server for the Patroni API in tests 2023-10-06 10:40:29 +02:00
test_cluster_has_leader.py Use fake HTTP server for the Patroni API in tests 2023-10-06 10:40:29 +02:00
test_cluster_has_replica.py cluster_has_replica: fix the way a healthy replica is detected 2023-11-11 10:50:35 +01:00
test_cluster_has_scheduled_action.py Use fake HTTP server for the Patroni API in tests 2023-10-06 10:40:29 +02:00
test_cluster_is_in_maintenance.py Use fake HTTP server for the Patroni API in tests 2023-10-06 10:40:29 +02:00
test_cluster_node_count.py Use fake HTTP server for the Patroni API in tests 2023-10-06 10:40:29 +02:00
test_node_is_alive.py Use fake HTTP server for the Patroni API in tests 2023-10-06 10:40:29 +02:00
test_node_is_leader.py Use fake HTTP server for the Patroni API in tests 2023-10-06 10:40:29 +02:00
test_node_is_pending_restart.py Use fake HTTP server for the Patroni API in tests 2023-10-06 10:40:29 +02:00
test_node_is_primary.py Use fake HTTP server for the Patroni API in tests 2023-10-06 10:40:29 +02:00
test_node_is_replica.py Use fake HTTP server for the Patroni API in tests 2023-10-06 10:40:29 +02:00
test_node_patroni_version.py Use fake HTTP server for the Patroni API in tests 2023-10-06 10:40:29 +02:00
test_node_tl_has_changed.py Use fake HTTP server for the Patroni API in tests 2023-10-06 10:40:29 +02:00