ctdb-tests: Improve test coverage for leader role yield and elections
authorMartin Schwenke <martin@meltin.net>
Fri, 14 Jan 2022 12:09:38 +0000 (23:09 +1100)
committerMartin Schwenke <martins@samba.org>
Mon, 17 Jan 2022 10:21:33 +0000 (10:21 +0000)
commit01313ea243e4d52ea558ca4c53b6f4a1f07341e7
tree9f8699bb40fac0fc21aa1bbc2ec665844d499b27
parent5d317781498a69c94b47ce47b60438e6cb520f96
ctdb-tests: Improve test coverage for leader role yield and elections

Rename test, clean up node selection.  Duplicate for for banning and
removing leader capability cases.  Repeat all 3 tests without cluster
lock.

All of the standard election triggers are now tested, with and without
cluster lock.  Due to test cluster configuration limitations, the
tests without cluster lock are skipped on a real cluster.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/INTEGRATION/simple/cluster.001.stop_leader_yield.sh [moved from ctdb/tests/INTEGRATION/simple/cluster.002.recmaster_yield.sh with 54% similarity]
ctdb/tests/INTEGRATION/simple/cluster.002.ban_leader_yield.sh [new file with mode: 0755]
ctdb/tests/INTEGRATION/simple/cluster.003.capability_leader_yield.sh [new file with mode: 0755]
ctdb/tests/INTEGRATION/simple/cluster.006.stop_leader_yield_no_lock.sh [new file with mode: 0755]
ctdb/tests/INTEGRATION/simple/cluster.007.ban_leader_yield_no_lock.sh [new file with mode: 0755]
ctdb/tests/INTEGRATION/simple/cluster.008.capability_leader_yield_no_lock.sh [new file with mode: 0755]