]> git.proxmox.com Git - pve-installer.git/blobdiff - test/parse-fqdn.pl
sys: net: do not allow overlong FQDNs as per RFCs and Debian spec
[pve-installer.git] / test / parse-fqdn.pl
index 1ffb3008067ff8ddb4689e78b57bdc0f3d91c779..3009984821d71f30a5d9ddeb3ef1f8bf396e3e1e 100755 (executable)
@@ -47,4 +47,8 @@ is_invalid('123.com', ERR_NUMERIC);
 is_parsed('foo123.com', ['foo123', 'com']);
 is_parsed('123foo.com', ['123foo', 'com']);
 
+is_parsed('a' x 63 . '.com', ['a' x 63, 'com']);
+is_invalid('a' x 250 . '.com', ERR_TOOLONG);
+is_invalid('a' x 64 . '.com', ERR_ALPHANUM);
+
 done_testing();