mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
3944fc4ae3
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
35 lines
474 B
Bash
Executable File
35 lines
474 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "managed, down - 5 times"
|
|
|
|
setup "down"
|
|
|
|
setup_script_options <<EOF
|
|
CTDB_MANAGES_HTTPD="yes"
|
|
EOF
|
|
|
|
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
|