mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
plugin/dnssec: add per server metrics (#1743)
* plugin/dnssec: add per server metrics final plugin. Fixes #1696 #1492 #1189 * Move cache cap into handler so we can access the server label * Remove cache-capacity from it entirely
This commit is contained in:
@@ -17,7 +17,7 @@ func TestZoneSigningBlackLies(t *testing.T) {
|
||||
|
||||
m := testNxdomainMsg()
|
||||
state := request.Request{Req: m, Zone: "miek.nl."}
|
||||
m = d.Sign(state, time.Now().UTC())
|
||||
m = d.Sign(state, time.Now().UTC(), server)
|
||||
if !section(m.Ns, 2) {
|
||||
t.Errorf("authority section should have 2 sig")
|
||||
}
|
||||
@@ -48,7 +48,7 @@ func TestBlackLiesNoError(t *testing.T) {
|
||||
|
||||
m := testSuccessMsg()
|
||||
state := request.Request{Req: m, Zone: "miek.nl."}
|
||||
m = d.Sign(state, time.Now().UTC())
|
||||
m = d.Sign(state, time.Now().UTC(), server)
|
||||
|
||||
if m.Rcode != dns.RcodeSuccess {
|
||||
t.Errorf("expected rcode %d, got %d", dns.RcodeSuccess, m.Rcode)
|
||||
|
||||
Reference in New Issue
Block a user