]> git.ipfire.org Git - people/ms/network.git/commitdiff
nitsi: Add test for PPPoE server/client
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Sep 2018 11:52:39 +0000 (12:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Sep 2018 11:52:39 +0000 (12:52 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
test/nitsi/test/pppoe/recipe [new file with mode: 0644]
test/nitsi/test/pppoe/settings [new file with mode: 0644]

index a3e1a3c4608160bf56dcad425bb9c94fdd51bc7f..5307ff05561f2904f0eba9f0a9e0f63416aabb0c 100644 (file)
@@ -599,6 +599,7 @@ CLEANFILES += \
 NITSI_TESTS = \
        test/nitsi/test/make-check \
        test/nitsi/test/phase1 \
+       test/nitsi/test/pppoe \
        test/nitsi/test/raw-device-get-by-mac \
        test/nitsi/test/zone-new-bridge \
        test/nitsi/test/zone-port-attach-bridge
diff --git a/test/nitsi/test/pppoe/recipe b/test/nitsi/test/pppoe/recipe
new file mode 100644 (file)
index 0000000..a164a83
--- /dev/null
@@ -0,0 +1,19 @@
+include: ../../include/setup
+
+# Get port names for Alice and Bob
+include: ../../include/alice-port-vars
+include: ../../include/bob-port-vars
+
+# Start a PPPoE server on Alice
+alice: network zone new upl0 bridge
+alice: network zone upl0 port attach ${p_net1}
+alice: network zone upl0 config new pppoe-server --subnet=192.168.123.0/24
+
+# Start a PPPoE client on Bob
+bob: network zone new upl0 pppoe --username=USER --password=PASSWORD
+bob: network zone upl0 port attach ${p_net1}
+
+# Show status
+all: network status
+
+# TODO need to check if the connection has come up
diff --git a/test/nitsi/test/pppoe/settings b/test/nitsi/test/pppoe/settings
new file mode 100644 (file)
index 0000000..c79a0b2
--- /dev/null
@@ -0,0 +1,3 @@
+[GENERAL]
+name = PPPoE Server/Client
+description = This test creates a PPPoE server and client and tries to connect the two of them