Pin the port tie-break on a port where it discriminates, and protocol selection by name
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ func TestShippedMiscReferenceData(t *testing.T) {
|
|||||||
"httpmethod.safe": regexp.MustCompile(`^(yes|no)$`),
|
"httpmethod.safe": regexp.MustCompile(`^(yes|no)$`),
|
||||||
"httpmethod.idempotent": regexp.MustCompile(`^(yes|no)$`),
|
"httpmethod.idempotent": regexp.MustCompile(`^(yes|no)$`),
|
||||||
"port": regexp.MustCompile(`^[1-9]\d{0,4}$`),
|
"port": regexp.MustCompile(`^[1-9]\d{0,4}$`),
|
||||||
"port.name": regexp.MustCompile(`^\S+$`),
|
"port.service": regexp.MustCompile(`^\S+$`),
|
||||||
"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}$`),
|
||||||
|
|||||||
+5
-3
@@ -710,9 +710,11 @@ func TestShippedTables(t *testing.T) {
|
|||||||
"protocol[UDP].number": "17",
|
"protocol[UDP].number": "17",
|
||||||
"protocol[ICMP].name": "Internet Control Message",
|
"protocol[ICMP].name": "Internet Control Message",
|
||||||
"port[443]": "443",
|
"port[443]": "443",
|
||||||
"port[443].name": "https",
|
"port[443].service": "https",
|
||||||
"port[22].name": "ssh",
|
"port[22].service": "ssh",
|
||||||
"port[3306].name": "mysql",
|
"port[3306].service": "mysql",
|
||||||
|
"port[2049].service": "nfs",
|
||||||
|
"protocol[Transmission Control].number": "6",
|
||||||
"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