tests: add ifup/ifdown/ifquery tests for vlans

This commit is contained in:
Ariadne Conill 2020-08-04 13:08:30 -06:00
parent b27caaedf6
commit 0de4a3f6f9
4 changed files with 28 additions and 3 deletions

View file

@ -17,7 +17,8 @@ tests_init \
bonded_bridge \
learned_dependency \
learned_dependency_2 \
learned_executor
learned_executor \
implicit_vlan
noargs_body() {
atf_check -s exit:1 -e ignore ifdown -S/dev/null
@ -132,3 +133,10 @@ learned_executor_body() {
-E $EXECUTORS \
-i $FIXTURES/mock-dependency-generator-2.interfaces br0
}
implicit_vlan_body() {
atf_check -s exit:0 -o ignore \
-e match:"attempting to run vlan executor" \
-e match:"attempting to run link executor" \
ifdown -n -S $FIXTURES/vlan.ifstate -E $EXECUTORS -i $FIXTURES/vlan.interfaces eth0.8
}