testprogs/blackbox: add test_trust_utils.sh
[Samba.git] / ctdb / tests / eventscripts / 00.ctdb.setup.003.sh
blob4ce704051f243b40fda0e2f45ac04eb279c6c5af
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "setup, known and unknown tunables in config"
7 setup_ctdb
9 setup_config <<EOF
10 CTDB_SET_MonitorInterval=5
11 CTDB_SET_UnknownMagic=0
12 EOF
14 required_result 1 <<EOF
15 Set MonitorInterval to 5
16 Unable to set tunable variable 'UnknownMagic'
17 Invalid configuration: CTDB_SET_UnknownMagic=0
18 Aborting setup due to invalid configuration - fix typos, remove unknown tunables
19 EOF
21 simple_test