Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2021-03-18 04:09:03 +0300
committerjbzdarkid <jbzdarkid@gmail.com>2021-03-22 02:27:08 +0300
commit8090071effa7534ed6c985e8ebee666a4aae1f6d (patch)
treefea69765323f8ae48ba409758b1c69034bb2a64e /test
parent89c80947df964b6853ce22dba1f20e246bdcf48d (diff)
Update regex to disallow leading zeros
Also updated a comment to point to a non-experimental RFC. Signed-off-by: jbzdarkid <jbzdarkid@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_automated_install.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_automated_install.py b/test/test_automated_install.py
index 20dadc26..1266f46b 100644
--- a/test/test_automated_install.py
+++ b/test/test_automated_install.py
@@ -555,6 +555,14 @@ def test_validate_ip(Pihole):
test_address('8.8.8.8:65535')
test_address('8.8.8.8:65536', False)
test_address('8.8.8.8:-1', False)
+ test_address('00.0.0.0', False)
+ test_address('010.0.0.0', False)
+ test_address('001.0.0.0', False)
+ test_address('0.0.0.0:00', False)
+ test_address('0.0.0.0:01', False)
+ test_address('0.0.0.0:001', False)
+ test_address('0.0.0.0:0001', False)
+ test_address('0.0.0.0:00001', False)
def test_os_check_fails(Pihole):