check-patroni/tests/json
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
..
cluster_config_has_changed.json Rename test to tests 2022-07-11 12:42:59 +02:00
cluster_has_leader_ko.json Rename test to tests 2022-07-11 12:42:59 +02:00
cluster_has_leader_ok.json Add tests for the output of the script and support pre/post 3.0.4 2023-08-23 10:53:09 +02:00
cluster_has_leader_ok_standby_leader.json Add standby-leader as a valid leader type for cluster_has_leader 2023-08-23 18:22:49 +02:00
cluster_has_replica_ko.json Add tests for the output of the script and support pre/post 3.0.4 2023-08-23 10:53:09 +02:00
cluster_has_replica_ko_all_replica.json cluster_has_replica: fix the way a healthy replica is detected 2023-11-11 10:50:35 +01:00
cluster_has_replica_ko_lag.json Add tests for the output of the script and support pre/post 3.0.4 2023-08-23 10:53:09 +02:00
cluster_has_replica_ko_wrong_tl.json cluster_has_replica: fix the way a healthy replica is detected 2023-11-11 10:50:35 +01:00
cluster_has_replica_ok.json cluster_has_replica: fix the way a healthy replica is detected 2023-11-11 10:50:35 +01:00
cluster_has_replica_ok_lag.json Add tests for the output of the script and support pre/post 3.0.4 2023-08-23 10:53:09 +02:00
cluster_has_replica_patroni_verion_3.0.0.json cluster_has_replica: fix the way a healthy replica is detected 2023-11-11 10:50:35 +01:00
cluster_has_replica_patroni_verion_3.1.0.json cluster_has_replica: fix the way a healthy replica is detected 2023-11-11 10:50:35 +01:00
cluster_has_scheduled_action_ko_restart.json Add new service cluster_has_scheduled_action 2023-08-23 12:08:19 +02:00
cluster_has_scheduled_action_ko_switchover.json Add new service cluster_has_scheduled_action 2023-08-23 12:08:19 +02:00
cluster_has_scheduled_action_ok.json Add new service cluster_has_scheduled_action 2023-08-23 12:08:19 +02:00
cluster_is_in_maintenance_ko.json Add tests for the output of the script and support pre/post 3.0.4 2023-08-23 10:53:09 +02:00
cluster_is_in_maintenance_ko_pause_false.json Add tests for the output of the script and support pre/post 3.0.4 2023-08-23 10:53:09 +02:00
cluster_is_in_maintenance_ok.json Add tests for the output of the script and support pre/post 3.0.4 2023-08-23 10:53:09 +02:00
cluster_is_in_maintenance_ok_pause_false.json Add tests for the output of the script and support pre/post 3.0.4 2023-08-23 10:53:09 +02:00
cluster_node_count_critical.json Rename test to tests 2022-07-11 12:42:59 +02:00
cluster_node_count_healthy_critical.json Add tests for the output of the script and support pre/post 3.0.4 2023-08-23 10:53:09 +02:00
cluster_node_count_healthy_warning.json Add tests for the output of the script and support pre/post 3.0.4 2023-08-23 10:53:09 +02:00
cluster_node_count_ok.json Add tests for the output of the script and support pre/post 3.0.4 2023-08-23 10:53:09 +02:00
cluster_node_count_warning.json Add tests for the output of the script and support pre/post 3.0.4 2023-08-23 10:53:09 +02:00
node_is_leader_ko.json Add a node_is_leader service to check for the leader states 2023-08-23 18:22:49 +02:00
node_is_leader_ko_standby_leader.json Add a node_is_leader service to check for the leader states 2023-08-23 18:22:49 +02:00
node_is_leader_ok.json Add a node_is_leader service to check for the leader states 2023-08-23 18:22:49 +02:00
node_is_leader_ok_standby_leader.json Add a node_is_leader service to check for the leader states 2023-08-23 18:22:49 +02:00
node_is_pending_restart_ko.json Rename test to tests 2022-07-11 12:42:59 +02:00
node_is_pending_restart_ok.json Rename test to tests 2022-07-11 12:42:59 +02:00
node_is_primary_ko.json Rename test to tests 2022-07-11 12:42:59 +02:00
node_is_primary_ok.json Rename test to tests 2022-07-11 12:42:59 +02:00
node_is_replica_ko.json Rename test to tests 2022-07-11 12:42:59 +02:00
node_is_replica_ok.json Rename test to tests 2022-07-11 12:42:59 +02:00
node_patroni_version.json Rename test to tests 2022-07-11 12:42:59 +02:00
node_tl_has_changed.json Rename test to tests 2022-07-11 12:42:59 +02:00