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-section.conf | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tunnel/src/test/resources/missing-section.conf (limited to 'tunnel/src/test/resources/missing-section.conf') diff --git a/tunnel/src/test/resources/missing-section.conf b/tunnel/src/test/resources/missing-section.conf new file mode 100644 index 00000000..676199ac --- /dev/null +++ b/tunnel/src/test/resources/missing-section.conf @@ -0,0 +1,5 @@ +[Peer] +AllowedIPs = 0.0.0.0/0, ::0/0 +Endpoint = 192.0.2.1:51820 +PersistentKeepalive = 0 +PublicKey = vBN7qyUTb5lJtWYJ8LhbPio1Z4RcyBPGnqFBGn6O6Qg= -- cgit v1.2.3