Read misc.tld from the IANA Root Zone Database #27
@@ -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 .+`),
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user