mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ctdb-tests: Add some simple tests for CTDB_NFS_CALLOUT
One always passes, the other fails early. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
bb7093ab09
commit
3b32c64189
12
ctdb/tests/eventscripts/60.nfs.monitor.107.sh
Executable file
12
ctdb/tests/eventscripts/60.nfs.monitor.107.sh
Executable file
@ -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
|
12
ctdb/tests/eventscripts/60.nfs.monitor.108.sh
Executable file
12
ctdb/tests/eventscripts/60.nfs.monitor.108.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user