tests: add ifquery tests for ppp

This commit is contained in:
Ariadne Conill 2020-08-19 06:09:05 -06:00
parent dd02502461
commit 0dd8dc1b0e

View file

@ -21,7 +21,9 @@ tests_init \
implicit_vlan \ implicit_vlan \
vrf_dependency \ vrf_dependency \
vrf_ifupdown2_rewrite \ vrf_ifupdown2_rewrite \
vrf_ifupdown2_dependency vrf_ifupdown2_dependency \
ppp_dependency \
ppp_legacy_rewrite
noargs_body() { noargs_body() {
atf_check -s exit:1 -e ignore ifquery -S/dev/null atf_check -s exit:1 -e ignore ifquery -S/dev/null
@ -130,3 +132,13 @@ vrf_ifupdown2_dependency_body() {
atf_check -s exit:0 -o match:"requires vrf-red" \ atf_check -s exit:0 -o match:"requires vrf-red" \
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/vrf-ifupdown2.interfaces eth0 ifquery -E $EXECUTORS_LINUX -i $FIXTURES/vrf-ifupdown2.interfaces eth0
} }
ppp_dependency_body() {
atf_check -s exit:0 -o match:"requires eth0" \
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/ppp.interfaces ppp0
}
ppp_legacy_rewrite_body() {
atf_check -s exit:0 -o match:"ppp-provider someisp" \
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/ppp-legacy.interfaces ppp0
}