aboutsummaryrefslogtreecommitdiff
path: root/plugin/proxy/dnstap_test.go
diff options
context:
space:
mode:
authorGravatar varyoo <varyoo@users.noreply.github.com> 2018-03-01 03:19:01 +0100
committerGravatar Miek Gieben <miek@miek.nl> 2018-02-28 18:19:01 -0800
commit6bb08ffee446573c8f401160fa7830ffacca8530 (patch)
treece52ca2ecb3b2b7dbbac16218a22d0af868a19e0 /plugin/proxy/dnstap_test.go
parentf697b33283afe695554888eb0cf9f5451c481470 (diff)
downloadcoredns-6bb08ffee446573c8f401160fa7830ffacca8530.tar.gz
coredns-6bb08ffee446573c8f401160fa7830ffacca8530.tar.zst
coredns-6bb08ffee446573c8f401160fa7830ffacca8530.zip
Easier way to dnstap? (#1496)
* Easier way to dnstap? * Remove unnecessary function parameter from Tapper * golint * golint 2 * Proxy dnstap tests * README.md & doc * net.IP * Proxy test was incorrect * Small changes * Update README.md * Was not reporting dnstap errors + test * Wasn't working at all, now it's ok * Thanks Travis
Diffstat (limited to 'plugin/proxy/dnstap_test.go')
-rw-r--r--plugin/proxy/dnstap_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/proxy/dnstap_test.go b/plugin/proxy/dnstap_test.go
index 6ed0c61ed..83696921a 100644
--- a/plugin/proxy/dnstap_test.go
+++ b/plugin/proxy/dnstap_test.go
@@ -14,9 +14,9 @@ import (
"golang.org/x/net/context"
)
-func testCase(t *testing.T, ex Exchanger, q, r *dns.Msg, datq, datr *msg.Data) {
- tapq := datq.ToOutsideQuery(tap.Message_FORWARDER_QUERY)
- tapr := datr.ToOutsideResponse(tap.Message_FORWARDER_RESPONSE)
+func testCase(t *testing.T, ex Exchanger, q, r *dns.Msg, datq, datr *msg.Builder) {
+ tapq, _ := datq.ToOutsideQuery(tap.Message_FORWARDER_QUERY)
+ tapr, _ := datr.ToOutsideResponse(tap.Message_FORWARDER_RESPONSE)
ctx := test.Context{}
err := toDnstap(&ctx, "10.240.0.1:40212", ex,
request.Request{W: &mwtest.ResponseWriter{}, Req: q}, r, time.Now())