webadmin: in list with dmarc evaluations, add the dispositions applied

to easily spot rejects
This commit is contained in:
Mechiel Lukkien
2023-11-13 14:44:40 +01:00
parent bcb80c3598
commit 651fa68067
4 changed files with 41 additions and 22 deletions

View File

@ -109,14 +109,16 @@ func TestEvaluations(t *testing.T) {
expStats := map[string]EvaluationStat{
"sender1.example": {
Count: 3,
SendReport: true,
Domain: dns.Domain{ASCII: "sender1.example"},
Domain: dns.Domain{ASCII: "sender1.example"},
Dispositions: []string{"none"},
Count: 3,
SendReport: true,
},
"sender2.example": {
Count: 1,
SendReport: true,
Domain: dns.Domain{ASCII: "sender2.example"},
Domain: dns.Domain{ASCII: "sender2.example"},
Dispositions: []string{"none"},
Count: 1,
SendReport: true,
},
}
stats, err := EvaluationStats(ctxbg)
@ -142,9 +144,10 @@ func TestEvaluations(t *testing.T) {
expStats = map[string]EvaluationStat{
"sender2.example": {
Count: 1,
SendReport: true,
Domain: dns.Domain{ASCII: "sender2.example"},
Domain: dns.Domain{ASCII: "sender2.example"},
Dispositions: []string{"none"},
Count: 1,
SendReport: true,
},
}
stats, err = EvaluationStats(ctxbg)