check-patroni/tests
benoit 908669f073 Add a --save option when state files are used
The checks `cluster_config_has_changed` and `node_tl_has_changed` use a
state file to store the previous value of the config hash and the
timeline.

Previously the check would fail if something changed, but the new value
would be saved directly. This behavious has changed. The new value
is saved only if `--save` is passed to the check.

The mimics the way [check_pgactivity] manages this kind of checks.

[check_pgactivity]: https://github.com/OPMDG/check_pgactivity
2023-03-02 17:32:18 +01:00
..
json Rename test to tests 2022-07-11 12:42:59 +02:00
test_cluster_config_has_changed.py Add a --save option when state files are used 2023-03-02 17:32:18 +01:00
test_cluster_has_leader.py Rename test to tests 2022-07-11 12:42:59 +02:00
test_cluster_has_replica.py Rename test to tests 2022-07-11 12:42:59 +02:00
test_cluster_is_in_maintenance.py Rename test to tests 2022-07-11 12:42:59 +02:00
test_cluster_node_count.py Rename test to tests 2022-07-11 12:42:59 +02:00
test_node_is_alive.py Rename test to tests 2022-07-11 12:42:59 +02:00
test_node_is_pending_restart.py Rename test to tests 2022-07-11 12:42:59 +02:00
test_node_is_primary.py Rename test to tests 2022-07-11 12:42:59 +02:00
test_node_is_replica.py Rename test to tests 2022-07-11 12:42:59 +02:00
test_node_patroni_version.py Rename test to tests 2022-07-11 12:42:59 +02:00
test_node_tl_has_changed.py Add a --save option when state files are used 2023-03-02 17:32:18 +01:00
tools.py Rename test to tests 2022-07-11 12:42:59 +02:00