Expect RFC 5424's severities as a table, selectable by code or name

This commit is contained in:
2026-09-20 20:37:24 +02:00
parent b581daf0ab
commit edce645f34
2 changed files with 11 additions and 0 deletions
+2
View File
@@ -119,6 +119,8 @@ func TestShippedMiscReferenceData(t *testing.T) {
"protocol": regexp.MustCompile(`^\S+( \S+)*$`),
"protocol.name": regexp.MustCompile(`\S`),
"protocol.number": regexp.MustCompile(`^\d{1,3}$`),
"loglevel": regexp.MustCompile(`^(Alert|Critical|Debug|Emergency|Error|Informational|Notice|Warning)$`),
"loglevel.code": regexp.MustCompile(`^[0-7]$`),
"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+$`),