Commit 10281080 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

junit: added ipv6 nfs export test

parent b5b8f7e1
......@@ -100,4 +100,22 @@ public class FsExportTest {
assertFalse("Deny host not recognized", export.isAllowed(deny2));
}
@Test
public void testSubnets_IPv6() throws UnknownHostException {
FsExport export = _exportFile.getExport("/subnet_ipv6");
InetAddress allow = InetAddress.getByName("fe80::21c:c0ff:fea0:caf4");
assertTrue("Ipv6 Allowed not recognized", export.isAllowed(allow));
}
@Test
public void testSubnets_IPv6Bad() throws UnknownHostException {
FsExport export = _exportFile.getExport("/subnet_ipv6");
InetAddress deny = InetAddress.getByName("ae80::21c:c0ff:fea0:caf4");
assertFalse("Deny ipv6 not recognized", export.isAllowed(deny));
}
}
......@@ -9,4 +9,5 @@
/trusted www.google.com(no_root_squash) www.yahoo.com
/subnet_b 192.168.2.1/24
/subnet_c 192.168.2.1/16
/subnet_bad 192.168.2.1/16/32
\ No newline at end of file
/subnet_bad 192.168.2.1/16/32
/subnet_ipv6 fe80::21c:c0ff:fea0:caf4/64
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment