mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
df39a671db
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit eb13507713ba6732271b7c3024bfddbda6da5ffc)
16 lines
372 B
Bash
Executable File
16 lines
372 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "unknown interface, down, up"
|
|
|
|
setup_ctdb
|
|
|
|
iface="dev999"
|
|
export CTDB_PUBLIC_INTERFACE="$iface"
|
|
|
|
#EVENTSCRIPTS_TESTS_TRACE="sh -x"
|
|
iterate_test 3 "ok_null" \
|
|
1 'ethtool_interfaces_down "$iface" ; required_result 1 "ERROR: No link on the public network interface $iface"' \
|
|
2 'ethtool_interfaces_up "$iface"'
|