Expect the IANA root zone as a table, selectable by either label

This commit is contained in:
2026-09-20 18:06:01 +02:00
parent b3be1ee137
commit 15af49e618
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -119,6 +119,9 @@ func TestShippedMiscReferenceData(t *testing.T) {
"protocol": regexp.MustCompile(`^\S+( \S+)*$`),
"protocol.name": regexp.MustCompile(`\S`),
"protocol.number": regexp.MustCompile(`^\d{1,3}$`),
"tld": regexp.MustCompile(`^\.[a-z0-9]([a-z0-9-]*[a-z0-9])?$`),
"tld.type": regexp.MustCompile(`^(country-code|generic|generic-restricted|infrastructure|sponsored)$`),
"tld.unicode": regexp.MustCompile(`^\.\S+$`),
"httpstatus": regexp.MustCompile(`^[1-5]\d{2} \S.*$`),
"httpstatus.code": regexp.MustCompile(`^[1-5]\d{2}$`),
"useragent": regexp.MustCompile(`^Mozilla/5\.0 .+`),
+7
View File
@@ -716,6 +716,13 @@ func TestShippedTables(t *testing.T) {
"port[465].service": "urd",
"port[2049].service": "nfs",
"protocol[Transmission Control].number": "6",
"tld[.se]": ".se",
"tld[.se].type": "country-code",
"tld[.com].type": "generic",
"tld[.museum].type": "sponsored",
"tld[.arpa].type": "infrastructure",
"tld[.рф]": ".xn--p1ai",
"tld[.xn--p1ai].unicode": ".рф",
"territory[NP].timezone.offset": "+05:45",
} {
if got := fake(t, f, path); got != want {