mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
02fc52d69b
Using CTDB_SET_TunableVariables in the main configuration file is no longer supported. The only subtlety is an unexpected order change in one of the unit test results. This is because the old implementation implicitly sorted the tunable variables via the set command. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
22 lines
400 B
Bash
Executable File
22 lines
400 B
Bash
Executable File
#!/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
|