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/syntax-error.conf | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tunnel/src/test/resources/syntax-error.conf (limited to 'tunnel/src/test/resources/syntax-error.conf') diff --git a/tunnel/src/test/resources/syntax-error.conf b/tunnel/src/test/resources/syntax-error.conf new file mode 100644 index 00000000..38b8ec95 --- /dev/null +++ b/tunnel/src/test/resources/syntax-error.conf @@ -0,0 +1,9 @@ +[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 = +PersistentKeepalive = 0 +PublicKey = vBN7qyUTb5lJtWYJ8LhbPio1Z4RcyBPGnqFBGn6O6Qg= -- cgit v1.2.3-59-g8ed1b