ctdb-server: Use find_public_ip_vnn() in a couple of extra places
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.setdebug.002.sh
blob7819b0b450a9b438c7e14e198d94740f70836c83
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "bogus debug level integer, ensure no change"
7 setup_ctdbd <<EOF
8 NODEMAP
9 0 192.168.20.41 0x0 CURRENT RECMASTER
10 1 192.168.20.42 0x0
11 2 192.168.20.43 0x0
12 EOF
14 orig=$($CTDB -d $CTDB_DEBUGLEVEL getdebug)
16 required_result 1 <<EOF
17 Invalid debug level '42'. Valid levels are:
18 ERROR | WARNING | NOTICE | INFO | DEBUG
19 EOF
20 simple_test 42
22 ok "$orig"
23 simple_test_other getdebug