3 .
"${TEST_SCRIPTS_DIR}/unit.sh"
5 PATH
="$PATH:$CTDB_SCRIPTS_TOOLS_HELPER_DIR"
7 setup_ctdb_base
"${TEST_VAR_DIR}" "cunit"
9 conffile
="${CTDB_BASE}/ctdb.conf"
16 test_cleanup remove_files
18 cat > "$conffile" <<EOF
24 unit_test ctdb-config get
"logging" "log level"
26 cat > "$conffile" <<EOF
28 location = syslog:magic
31 required_result
22 <<EOF
32 conf: validation for option "location" failed
33 Failed to load config file $conffile
35 unit_test ctdb-config validate
37 cat > "$conffile" <<EOF
42 required_result
22 <<EOF
43 conf: validation for option "log level" failed
44 Failed to load config file $conffile
46 unit_test ctdb-config validate
48 cat > "$conffile" <<EOF
55 unit_test ctdb-config validate
60 unit_test ctdb-config get
"logging" "location"
65 unit_test ctdb-config get
"logging" "log level"