From 093139bc912018114f286edb269f1f8bc137c790 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 14 Mar 2020 10:32:12 +0530 Subject: tunnel: Add an initial set of unit tests Includes a control set of broken configuration files that we attempt to parse and verify that the parser fails in a predictable and consistent manner. Signed-off-by: Harsh Shandilya --- tunnel/src/test/resources/missing-attribute.conf | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tunnel/src/test/resources/missing-attribute.conf (limited to 'tunnel/src/test/resources/missing-attribute.conf') diff --git a/tunnel/src/test/resources/missing-attribute.conf b/tunnel/src/test/resources/missing-attribute.conf new file mode 100644 index 00000000..ddf8cbb5 --- /dev/null +++ b/tunnel/src/test/resources/missing-attribute.conf @@ -0,0 +1,8 @@ +[Interface] +Address = 192.0.2.2/32,2001:db8:ffff:ffff:ffff:ffff:ffff:ffff/128 +DNS = 192.0.2.0 +PrivateKey = TFlmmEUC7V7VtiDYLKsbP5rySTKLIZq1yn8lMqK83wo= +[Peer] +AllowedIPs = 0.0.0.0/0, ::0/0 +Endpoint = 192.0.2.1:51820 +PersistentKeepalive = 0 -- cgit v1.2.3