checker: add domain length validation and refactor rules into per-concern checks
This commit is contained in:
parent
df0d429150
commit
946ec446d2
15 changed files with 716 additions and 308 deletions
|
|
@ -197,7 +197,7 @@ func TestTLSIssuesFromRelated_StructuredIssues(t *testing.T) {
|
|||
if len(out) != 2 {
|
||||
t.Fatalf("expected 2 issues, got %d", len(out))
|
||||
}
|
||||
if out[0].Code != "xmpp.tls.tls.self_signed" || out[0].Severity != SeverityCrit {
|
||||
if out[0].Code != "xmpp.tls.self_signed" || out[0].Severity != SeverityCrit {
|
||||
t.Fatalf("unexpected first issue: %+v", out[0])
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue