summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/UNIT/eventd/eventd_005.sh
blob: 28f4935e86b0725e6aa081a49a7f810ab6490959 (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
31
32
33
34
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "enabled event script"

setup_eventd

ok_null
simple_test script enable random 02.enabled

ok_null
simple_test script enable random 02.enabled

ok_null
simple_test run 10 random monitor

ok <<EOF
01.disabled          DISABLED  
02.enabled           OK         DURATION DATETIME
EOF
simple_test status random monitor

ok_null
simple_test script enable random 01.disabled

ok_null
simple_test run 10 random monitor

ok <<EOF
01.disabled          OK         DURATION DATETIME
02.enabled           OK         DURATION DATETIME
EOF
simple_test status random monitor