auth/spnego: set spnego_state->{state_position,expected_packet} gensec_spnego_create_...
[Samba.git] / ctdb / tests / eventd / eventd_004.sh
blob74aa82c9d2fc4c446a47094e91a0a117558e2f4f
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "enabled event script"
7 setup_eventd
9 cat > "$eventd_scriptdir/01.test" <<EOF
10 #!/bin/sh
12 exit 0
13 EOF
15 required_result 0 <<EOF
16 01.test DISABLED
17 EOF
18 simple_test script list
20 required_result 0 <<EOF
21 EOF
22 simple_test script enable 01.test
24 required_result 0 <<EOF
25 EOF
26 simple_test script enable 01.test
28 required_result 0 <<EOF
29 EOF
30 simple_test run monitor 30
32 required_result 0 <<EOF
33 01.test OK DURATION DATETIME
34 EOF
35 simple_test status monitor lastrun
37 required_result 0 <<EOF
38 01.test OK DURATION DATETIME
39 EOF
40 simple_test status monitor lastpass
42 required_result 0 <<EOF
43 Event monitor has never failed
44 EOF
45 simple_test status monitor lastfail