EOF
ok <<EOF
-Node 0 is unchanged
-Node 1 is unchanged
-Node 2 is unchanged
No change in nodes file, skipping unnecessary reload
EOF
EOF
required_result 0 <<EOF
-Node 0 is unchanged
-Node 1 is unchanged
-Node 2 is unchanged
Node 3 is NEW
-Reloading nodes file on node 0
-Reloading nodes file on node 1
-Reloading nodes file on node 2
EOF
simple_test
EOF
required_result 0 <<EOF
-Node 0 is unchanged
-Node 1 is unchanged
Node 2 is DELETED
-Reloading nodes file on node 0
-Reloading nodes file on node 1
EOF
simple_test
EOF
required_result 1 <<EOF
-Node 0 is unchanged
-Node 1 is unchanged
Node 2 is DELETED
ERROR: Node 2 is still connected
ERROR: Nodes will not be reloaded due to previous error
required_result 0 <<EOF
Node 0 is DELETED
-Node 1 is unchanged
-Node 2 is unchanged
-Reloading nodes file on node 1
-Reloading nodes file on node 2
EOF
simple_test
required_result 1 <<EOF
Node 0 is DELETED
ERROR: Node 0 is still connected
-Node 1 is unchanged
-Node 2 is unchanged
ERROR: Nodes will not be reloaded due to previous error
EOF
EOF
required_result 0 <<EOF
-Node 0 is unchanged
Node 1 is DELETED
-Node 2 is unchanged
-Reloading nodes file on node 0
-Reloading nodes file on node 2
EOF
simple_test
EOF
required_result 1 <<EOF
-Node 0 is unchanged
Node 1 is DELETED
ERROR: Node 1 is still connected
-Node 2 is unchanged
ERROR: Nodes will not be reloaded due to previous error
EOF
EOF
required_result 0 <<EOF
-Node 0 is unchanged
-Node 1 is unchanged
-Node 2 is unchanged
Node 3 is NEW
Node 4 is NEW
Node 5 is NEW
-Reloading nodes file on node 0
-Reloading nodes file on node 1
-Reloading nodes file on node 2
EOF
simple_test
EOF
required_result 0 <<EOF
-Node 0 is unchanged
Node 1 is DELETED
-Node 2 is unchanged
Node 3 is NEW
Node 4 is NEW
-Reloading nodes file on node 0
-Reloading nodes file on node 2
EOF
simple_test
EOF
required_result 0 <<EOF
-Node 0 is unchanged
-Node 1 is unchanged
Node 2 is DELETED
Node 3 is NEW
Node 4 is NEW
-Reloading nodes file on node 0
-Reloading nodes file on node 1
EOF
simple_test
EOF
required_result 0 <<EOF
-Node 0 is unchanged
-Node 1 is unchanged
WARNING: Node 1 is disconnected. You MUST fix this node manually!
-Node 2 is unchanged
Node 3 is NEW
-Reloading nodes file on node 0
-Reloading nodes file on node 2
EOF
simple_test
EOF
ok <<EOF
-Node 0 is unchanged
Node 1 is UNDELETED
-Node 2 is unchanged
-Reloading nodes file on node 0
-Reloading nodes file on node 2
EOF
simple_test
EOF
ok <<EOF
-Node 0 is unchanged
-Node 1 is unchanged (DELETED)
-Node 2 is unchanged
No change in nodes file, skipping unnecessary reload
EOF
_cmd="${_f#ctdb.}"
_cmd="${_cmd%.*}" # Strip test number
export CTDB="$VALGRIND ctdb --socket $ctdbd_socket"
- export CTDB_DEBUGLEVEL=3
+ export CTDB_DEBUGLEVEL=2
test_args="$_cmd"
;;
*)