Expect the IANA root zone as a table, selectable by either label
This commit is contained in:
@@ -119,6 +119,9 @@ func TestShippedMiscReferenceData(t *testing.T) {
|
|||||||
"protocol": regexp.MustCompile(`^\S+( \S+)*$`),
|
"protocol": regexp.MustCompile(`^\S+( \S+)*$`),
|
||||||
"protocol.name": regexp.MustCompile(`\S`),
|
"protocol.name": regexp.MustCompile(`\S`),
|
||||||
"protocol.number": regexp.MustCompile(`^\d{1,3}$`),
|
"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": regexp.MustCompile(`^[1-5]\d{2} \S.*$`),
|
||||||
"httpstatus.code": regexp.MustCompile(`^[1-5]\d{2}$`),
|
"httpstatus.code": regexp.MustCompile(`^[1-5]\d{2}$`),
|
||||||
"useragent": regexp.MustCompile(`^Mozilla/5\.0 .+`),
|
"useragent": regexp.MustCompile(`^Mozilla/5\.0 .+`),
|
||||||
|
|||||||
@@ -716,6 +716,13 @@ func TestShippedTables(t *testing.T) {
|
|||||||
"port[465].service": "urd",
|
"port[465].service": "urd",
|
||||||
"port[2049].service": "nfs",
|
"port[2049].service": "nfs",
|
||||||
"protocol[Transmission Control].number": "6",
|
"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",
|
"territory[NP].timezone.offset": "+05:45",
|
||||||
} {
|
} {
|
||||||
if got := fake(t, f, path); got != want {
|
if got := fake(t, f, path); got != want {
|
||||||
|
|||||||
Reference in New Issue
Block a user