ctdb-tests: Allow use of setup_ctdb_base() outside of test cases
[vlendec/samba-autobuild/.git] / ctdb / tests / eventscripts / 00.ctdb.setup.003.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "setup, known and unknown tunables in config"
6
7 setup
8
9 setup_tunable_config <<EOF
10 MonitorInterval=5
11 UnknownMagic=0
12 EOF
13
14 required_result 1 <<EOF
15 Set MonitorInterval to 5
16 Unable to set tunable variable 'UnknownMagic'
17 Invalid tunable: UnknownMagic=0
18 Aborting setup due to invalid configuration - fix typos, remove unknown tunables
19 EOF
20
21 simple_test