check-patroni/tests/json
benoit 46db3e2d15 Fix the cluster_has_leader service for standby clusters
Before this patch we checked the expected standby leader state
was `running` for all versions of Patroni.

With this patch, for:
* Patroni < 3.0.4, standby leaders are in `running` state.
* Patroni >= 3.0.4, standby leaders can be in `streaming` or `in
archive recovey` state. We will raise a warning for the latter.

The tests where modified to account for this.

Co-authored-by: Denis Laxalde <denis@laxalde.org>
2023-12-18 13:17:37 +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_ko_standby_leader.json Fix the cluster_has_leader service for standby clusters 2023-12-18 13:17:37 +01:00
cluster_has_leader_ko_standby_leader_archiving.json Fix the cluster_has_leader service for standby clusters 2023-12-18 13:17:37 +01: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 Fix the cluster_has_leader service for standby clusters 2023-12-18 13:17:37 +01: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