From 7808dbf2f23dba23c6d3af21a0e5c248662f5baa Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 16 Sep 2018 12:52:39 +0100 Subject: [PATCH] nitsi: Add test for PPPoE server/client Signed-off-by: Michael Tremer --- Makefile.am | 1 + test/nitsi/test/pppoe/recipe | 19 +++++++++++++++++++ test/nitsi/test/pppoe/settings | 3 +++ 3 files changed, 23 insertions(+) create mode 100644 test/nitsi/test/pppoe/recipe create mode 100644 test/nitsi/test/pppoe/settings diff --git a/Makefile.am b/Makefile.am index a3e1a3c..5307ff0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 index 0000000..a164a83 --- /dev/null +++ b/test/nitsi/test/pppoe/recipe @@ -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 index 0000000..c79a0b2 --- /dev/null +++ b/test/nitsi/test/pppoe/settings @@ -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 -- 2.47.3