tests: Update tests to reflect create/destroy phase.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
Maximilian Wilhelm 2020-09-09 23:36:11 +02:00
parent af94d760d0
commit d9e78e14fb
6 changed files with 35 additions and 29 deletions

View file

@ -9,7 +9,7 @@ tests_init \
member_bringup
leader_bringup_body() {
export MOCK=echo IFACE=vrf-red PHASE=pre-up IF_VRF_TABLE=1 IF_VRF_MEMBER=
export MOCK=echo IFACE=vrf-red PHASE=create IF_VRF_TABLE=1 IF_VRF_MEMBER=
atf_check -s exit:0 \
-o match:'ip link add vrf-red type vrf table 1' \
-o match:'ip rule add iif vrf-red table 1' \
@ -18,7 +18,7 @@ leader_bringup_body() {
}
leader_teardown_body() {
export MOCK=echo IFACE=vrf-red PHASE=post-down IF_VRF_TABLE=1 IF_VRF_MEMBER=
export MOCK=echo IFACE=vrf-red PHASE=destroy IF_VRF_TABLE=1 IF_VRF_MEMBER=
atf_check -s exit:0 \
-o match:'ip link del vrf-red type vrf table 1' \
-o match:'ip rule del iif vrf-red table 1' \