summaryrefslogtreecommitdiffstats
path: root/tests/test_ipapython
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2011-05-27 13:51:21 +0200
committerMartin Kosek <mkosek@redhat.com>2011-05-30 13:38:46 +0200
commitfd639bc88c2b811fda538988593dc8898ea5ab6d (patch)
tree173b556800d81fd8fa7a361c123b7e5e882727b8 /tests/test_ipapython
parentdb78f362358862c5225f8d3b83ecc2a88d47e45b (diff)
downloadfreeipa-fd639bc88c2b811fda538988593dc8898ea5ab6d.tar.gz
freeipa-fd639bc88c2b811fda538988593dc8898ea5ab6d.tar.xz
freeipa-fd639bc88c2b811fda538988593dc8898ea5ab6d.zip
Do stricter checking of IP addressed passed to server install.
ticket 1213
Diffstat (limited to 'tests/test_ipapython')
-rw-r--r--tests/test_ipapython/test_ipautil.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_ipapython/test_ipautil.py b/tests/test_ipapython/test_ipautil.py
index 03f5f7b18..68391c2e1 100644
--- a/tests/test_ipapython/test_ipautil.py
+++ b/tests/test_ipapython/test_ipautil.py
@@ -42,12 +42,21 @@ def test_ip_address():
('10.11.12.1337',),
('10.11.12.13/33',),
('127.0.0.1',),
+ ('241.1.2.3',),
+ ('169.254.1.2',),
+ ('10.11.12.0/24',),
+ ('224.5.6.7',),
+ ('10.11.12.255/24',),
('2001::1', (0x2001, 0, 0, 0, 0, 0, 0, 1), 64),
('2001::1/72', (0x2001, 0, 0, 0, 0, 0, 0, 1), 72),
('2001::1beef',),
('2001::1/129',),
('::1',),
+ ('6789::1',),
+ ('fe89::1',),
+ ('2001::/64',),
+ ('ff01::1',),
('junk',)
]