1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/eventscripts/10.interface.monitor.008.sh
Martin Schwenke a496c8bca6 ctdb-tests: Remove remaining uses of iterate_test()
They are contrived and hard to read.  Better to just enumerate the few
sub-tests in these testcases.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2015-07-14 09:57:17 +02:00

22 lines
345 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"
ethtool_interfaces_down "$iface"
required_result 1 "ERROR: No link on the public network interface $iface"
simple_test
ethtool_interfaces_up "$iface"
ok_null
simple_test
ok_null
simple_test