Drop related tests.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
done
}
-set_ctdb_variables ()
-{
- _f="${CTDB_BASE}/ctdb.tunables"
- if [ ! -r "$_f" ] ; then
- return
- fi
-
- while IFS="=" read _var _val ; do
- case "$_var" in
- \#*|"") continue ;;
- esac
-
- if $CTDB setvar "$_var" "$_val" ; then
- echo "Set $_var to $_val"
- else
- echo "Invalid tunable: ${_var}=${_val}"
- return 1
- fi
- done <"$_f"
-}
-
############################################################
ctdb_check_args "$@"
fi
;;
-setup)
- # Set any tunables from the config file
- set_ctdb_variables || \
- die "Aborting setup due to invalid configuration - fix typos, remove unknown tunables"
- ;;
-
startup)
$CTDB attach ctdb.tdb persistent
;;
+++ /dev/null
-#!/bin/sh
-
-. "${TEST_SCRIPTS_DIR}/unit.sh"
-
-define_test "setup, no tunables in config"
-
-setup
-
-ok_null
-
-simple_test
+++ /dev/null
-#!/bin/sh
-
-. "${TEST_SCRIPTS_DIR}/unit.sh"
-
-define_test "setup, known tunables in config"
-
-setup
-
-setup_tunable_config <<EOF
-MonitorInterval=5
-EOF
-
-required_result 0 <<EOF
-Set MonitorInterval to 5
-EOF
-
-simple_test
+++ /dev/null
-#!/bin/sh
-
-. "${TEST_SCRIPTS_DIR}/unit.sh"
-
-define_test "setup, known and unknown tunables in config"
-
-setup
-
-setup_tunable_config <<EOF
-MonitorInterval=5
-UnknownMagic=0
-EOF
-
-required_result 1 <<EOF
-Set MonitorInterval to 5
-Unable to set tunable variable 'UnknownMagic'
-Invalid tunable: UnknownMagic=0
-Aborting setup due to invalid configuration - fix typos, remove unknown tunables
-EOF
-
-simple_test
+++ /dev/null
-#!/bin/sh
-
-. "${TEST_SCRIPTS_DIR}/unit.sh"
-
-define_test "setup, known and obsolete tunables in config"
-
-setup
-
-setup_tunable_config <<EOF
-MonitorInterval=5
-EventScriptUnhealthyOnTimeout=0
-EOF
-
-required_result 0 <<EOF
-Set MonitorInterval to 5
-Setting obsolete tunable variable 'EventScriptUnhealthyOnTimeout'
-Set EventScriptUnhealthyOnTimeout to 0
-EOF
-
-simple_test