From be293a125fc222867ca1c96e3898073e58f5fa0c Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 27 May 2022 08:38:11 +1000 Subject: [PATCH] ctdb-tests: Add new tool unit tests to cover UNKNOWN state Signed-off-by: Vinit Agnihotri Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Tue Jun 28 10:16:59 UTC 2022 on sn-devel-184 --- ctdb/tests/UNIT/tool/ctdb.nodestatus.007.sh | 36 +++++++++++++++ ctdb/tests/UNIT/tool/ctdb.status.003.sh | 49 +++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100755 ctdb/tests/UNIT/tool/ctdb.nodestatus.007.sh create mode 100755 ctdb/tests/UNIT/tool/ctdb.status.003.sh diff --git a/ctdb/tests/UNIT/tool/ctdb.nodestatus.007.sh b/ctdb/tests/UNIT/tool/ctdb.nodestatus.007.sh new file mode 100755 index 00000000000..c96df4d9616 --- /dev/null +++ b/ctdb/tests/UNIT/tool/ctdb.nodestatus.007.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +. "${TEST_SCRIPTS_DIR}/unit.sh" + +define_test "all, 3 nodes, 1 unhealthy, runstate init" + +setup_ctdbd <