mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
ctdb-tests: Add new httpd event script test
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
ca28a47cb4
commit
0d60ecf032
31
ctdb/tests/eventscripts/41.httpd.monitor.002.sh
Executable file
31
ctdb/tests/eventscripts/41.httpd.monitor.002.sh
Executable file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
|
||||
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
||||
|
||||
define_test "managed, down - 5 times"
|
||||
|
||||
setup_httpd "down"
|
||||
export CTDB_MANAGES_HTTPD="yes"
|
||||
|
||||
ok_null
|
||||
simple_test
|
||||
|
||||
ok <<EOF
|
||||
HTTPD is not running. Trying to restart HTTPD.
|
||||
service: can't stop httpd - not running
|
||||
Starting httpd: OK
|
||||
EOF
|
||||
simple_test
|
||||
|
||||
ok_null
|
||||
simple_test
|
||||
|
||||
ok_null
|
||||
simple_test
|
||||
|
||||
required_result 1 <<EOF
|
||||
HTTPD is not running. Trying to restart HTTPD.
|
||||
Stopping httpd: OK
|
||||
Starting httpd: OK
|
||||
EOF
|
||||
simple_test
|
Loading…
Reference in New Issue
Block a user