1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/eventscripts/00.ctdb.setup.004.sh
Martin Schwenke c3706e7fb0 ctdb-tool: Print a warning when setting an obsolete tunable variable
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2015-02-18 05:34:06 +01:00

21 lines
379 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "setup, known and obsolete tunables in config"
setup_ctdb
setup_config <<EOF
CTDB_SET_MonitorInterval=5
CTDB_SET_EventScriptUnhealthyOnTimeout=0
EOF
required_result 0 <<EOF
Setting obsolete tunable variable 'EventScriptUnhealthyOnTimeout'
Set EventScriptUnhealthyOnTimeout to 0
Set MonitorInterval to 5
EOF
simple_test