diff --git a/ctdb/tests/eventscripts/60.nfs.monitor.107.sh b/ctdb/tests/eventscripts/60.nfs.monitor.107.sh new file mode 100755 index 00000000000..8f590b01757 --- /dev/null +++ b/ctdb/tests/eventscripts/60.nfs.monitor.107.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +. "${TEST_SCRIPTS_DIR}/unit.sh" + +define_test "callout is 'true'" + +setup_nfs + +export CTDB_NFS_CALLOUT="true" + +ok_null +simple_test diff --git a/ctdb/tests/eventscripts/60.nfs.monitor.108.sh b/ctdb/tests/eventscripts/60.nfs.monitor.108.sh new file mode 100755 index 00000000000..6fe7bada1cc --- /dev/null +++ b/ctdb/tests/eventscripts/60.nfs.monitor.108.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +. "${TEST_SCRIPTS_DIR}/unit.sh" + +define_test "callout is 'false', causes monitor-pre to fail" + +setup_nfs + +export CTDB_NFS_CALLOUT="echo monitor-pre ; false" + +required_result 1 "monitor-pre" +simple_test