mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 10:34:40 +03:00
webadmin: in list with dmarc evaluations, add the dispositions applied
to easily spot rejects
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user