From b27caaedf6c7e276645ea49fc8c518072f85b3ae Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 4 Aug 2020 12:38:05 -0600 Subject: [PATCH] tests: add mock vlan executor and vlan fixture --- tests/executors/vlan | 7 +++++++ tests/fixtures/vlan.interfaces | 2 ++ 2 files changed, 9 insertions(+) create mode 100755 tests/executors/vlan create mode 100644 tests/fixtures/vlan.interfaces diff --git a/tests/executors/vlan b/tests/executors/vlan new file mode 100755 index 0000000..ba37599 --- /dev/null +++ b/tests/executors/vlan @@ -0,0 +1,7 @@ +#!/bin/sh +case "$PHASE" in +depend) + RAW_DEVICE="${IFACE%.*}" + echo "$RAW_DEVICE" + ;; +esac diff --git a/tests/fixtures/vlan.interfaces b/tests/fixtures/vlan.interfaces new file mode 100644 index 0000000..398c848 --- /dev/null +++ b/tests/fixtures/vlan.interfaces @@ -0,0 +1,2 @@ +iface eth0.8 + address 2001:db8:1000:2::2/64