aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel/src/test/resources/invalid-key.conf
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2020-03-14 10:32:12 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2020-03-14 10:32:12 +0530
commit093139bc912018114f286edb269f1f8bc137c790 (patch)
tree57c78d16b97b625c9cfc35385062e7e5e5a37e02 /tunnel/src/test/resources/invalid-key.conf
parenttunnel: Remove MISSING_VALUE from BadConfigException reasons (diff)
downloadwireguard-android-093139bc912018114f286edb269f1f8bc137c790.tar.xz
wireguard-android-093139bc912018114f286edb269f1f8bc137c790.zip
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 <me@msfjarvis.dev>
Diffstat (limited to 'tunnel/src/test/resources/invalid-key.conf')
-rw-r--r--tunnel/src/test/resources/invalid-key.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/tunnel/src/test/resources/invalid-key.conf b/tunnel/src/test/resources/invalid-key.conf
new file mode 100644
index 00000000..215bec3b
--- /dev/null
+++ b/tunnel/src/test/resources/invalid-key.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 = 192.0.2.1:51820
+PersistentKeepalive = 0
+PublicKey = vBN7qyUTb5lJtWYJ8LhbPio1Z4RcyBPGnqFBGn6Og=