3 . "${EVENTSCRIPTS_TESTS_DIR}/common.sh"
5 define_test "port 139 down, ctdb checktcpport not implemented, debug"
7 ctdb_not_implemented "checktcpport"
9 # This has to go before the setup, otherwise it will write a dud file.
10 export CTDB_DEBUGLEVEL=4
12 setup_nmap_output_filter
17 required_result 1 <<EOF
18 DEBUG: ctdb_check_ports - checker ctdb not implemented
19 DEBUG: output from checker was:
20 DEBUG: ctdb checktcpport 445 (exited with 0) with output:
22 ERROR: samba tcp port 139 is not responding
23 DEBUG: nmap -n -oG - -PS 127.0.0.1 -p 445,139 shows this output:
24 DEBUG: # Nmap 5.21 scan initiated DATE as: nmap -n -oG - -PS 127.0.0.1 -p 445,139
25 DEBUG: Host: 127.0.0.1 () Status: Up
26 DEBUG: Host: 127.0.0.1 () Ports: 445/open/tcp//microsoft-ds///, 139/closed/tcp//netbios-ssn///
27 DEBUG: # Nmap done at DATE -- 1 IP address (1 host up) scanned in 0.04 seconds