1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/eventd/eventd_001.sh
Amitay Isaacs ca0894e932 ctdb-tests: Add tests for event daemon
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
2016-12-18 14:23:23 +01:00

32 lines
508 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "empty eventscript directory"
setup_eventd
required_result 0 <<EOF
No event scripts found
EOF
simple_test script list
required_result 0 <<EOF
EOF
simple_test run monitor 30
required_result 0 <<EOF
Event monitor has never run
EOF
simple_test status monitor
required_result 0 <<EOF
Event monitor has never passed
EOF
simple_test status monitor lastpass
required_result 0 <<EOF
Event monitor has never failed
EOF
simple_test status monitor lastfail