diff options
author | Martin Schwenke <martin@meltin.net> | 2019-09-09 10:51:17 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2019-09-26 04:45:37 +0000 |
commit | 1061bdf29dce60251a53dcc0623efb8815b144ae (patch) | |
tree | 12a89f897743259a40a520bad489f23ae6effb53 /ctdb/tests/UNIT/tool/ctdb.getcapabilities.001.sh | |
parent | 9585ece00c8c7eb215da9928e54dae92f55eaac0 (diff) | |
download | samba-1061bdf29dce60251a53dcc0623efb8815b144ae.tar.gz |
ctdb-tests: Move tool tests to UNIT/ subdirectory
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tests/UNIT/tool/ctdb.getcapabilities.001.sh')
-rwxr-xr-x | ctdb/tests/UNIT/tool/ctdb.getcapabilities.001.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ctdb/tests/UNIT/tool/ctdb.getcapabilities.001.sh b/ctdb/tests/UNIT/tool/ctdb.getcapabilities.001.sh new file mode 100755 index 00000000000..d04db04b60d --- /dev/null +++ b/ctdb/tests/UNIT/tool/ctdb.getcapabilities.001.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +. "${TEST_SCRIPTS_DIR}/unit.sh" + +define_test "3 nodes, all ok" + +setup_ctdbd <<EOF +NODEMAP +0 192.168.20.41 0x0 CURRENT RECMASTER +1 192.168.20.42 0x0 +2 192.168.20.43 0x0 +EOF + +required_result 0 <<EOF +RECMASTER: YES +LMASTER: YES +EOF + +simple_test |