summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/50.samba.monitor.107.sh
blob: 573ff80e4fc0119035a46ada7f8c5a9879bc32a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "port 139 down, default tcp checker, debug"

export CTDB_SCRIPT_DEBUGLEVEL=4

setup_samba
tcp_port_down 139

required_result 1 <<EOF
ERROR: samba tcp port 139 is not responding
DEBUG: "ctdb checktcpport 139" was able to bind to port
EOF

simple_test