mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
32 lines
455 B
Bash
32 lines
455 B
Bash
|
#!/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
|