summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/UNIT/eventscripts/41.httpd.monitor.002.sh
blob: 383040c41586544a2211cbfe7ec0d1ed19dcbd4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "managed, down - 5 times"

setup "down"

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