mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
df39a671db
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit eb13507713ba6732271b7c3024bfddbda6da5ffc)
31 lines
916 B
Bash
Executable File
31 lines
916 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "port 139 down, ctdb checktcpport not implemented, debug"
|
|
|
|
ctdb_not_implemented "checktcpport"
|
|
|
|
# This has to go before the setup, otherwise it will write a dud file.
|
|
export CTDB_DEBUGLEVEL=4
|
|
|
|
setup_nmap_output_filter
|
|
|
|
setup_samba
|
|
tcp_port_down 139
|
|
|
|
required_result 1 <<EOF
|
|
DEBUG: ctdb_check_ports - checker ctdb not implemented
|
|
DEBUG: output from checker was:
|
|
DEBUG: ctdb checktcpport 445 (exited with 1) with output:
|
|
$ctdb_not_implemented
|
|
ERROR: samba tcp port 139 is not responding
|
|
DEBUG: nmap -n -oG - -PS 127.0.0.1 -p 445,139 shows this output:
|
|
DEBUG: # Nmap 5.21 scan initiated DATE as: nmap -n -oG - -PS 127.0.0.1 -p 445,139
|
|
DEBUG: Host: 127.0.0.1 () Status: Up
|
|
DEBUG: Host: 127.0.0.1 () Ports: 445/open/tcp//microsoft-ds///, 139/closed/tcp//netbios-ssn///
|
|
DEBUG: # Nmap done at DATE -- 1 IP address (1 host up) scanned in 0.04 seconds
|
|
EOF
|
|
|
|
simple_test
|