summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2019-12-31 16:55:59 +0100
committerArne Schwabe <arne@rfc2549.org>2019-12-31 16:55:59 +0100
commitdc3820615e5d6fa6850aedfe902f3a2208db000f (patch)
tree3c28b5d119a47470c551bf2603c63cb7a967cf24 /main
parent1a9ec218e5595723d5abaa8367a92cf43a01851e (diff)
Add test for issue #1124
Diffstat (limited to 'main')
-rw-r--r--main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt b/main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt
index e66d4cad..d4a4f61b 100644
--- a/main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt
+++ b/main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt
@@ -96,7 +96,8 @@ class TestConfigParser {
"<connection>\n" +
"remote foo.bar\n" +
"tun-mtu 1222\n" +
- "</connection>\n")
+ "</connection>\n" +
+ "route 8.8.8.8 255.255.255.255 net_gateway\n")
val cp = ConfigParser()
cp.parseConfig(StringReader(config))
@@ -105,6 +106,7 @@ class TestConfigParser {
Assert.assertEquals(1234, vp.mTunMtu.toLong())
Assert.assertTrue(vp.mConnections[0].mCustomConfiguration.contains("tun-mtu 1222"))
Assert.assertTrue(vp.mConnections[0].mUseCustomConfig)
+ Assert.assertEquals(vp.mExcludedRoutes.trim(), "8.8.8.8/32");
}
@Test