aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/replacer/replacer_test.go
diff options
context:
space:
mode:
authorGravatar Dzmitry Razhanski <drazhanski@infoblox.com> 2018-10-29 21:50:31 +0300
committerGravatar corbot[bot] <corbot[bot]@users.noreply.github.com> 2018-10-29 18:50:31 +0000
commit8045aa279b510793a7c083a50de66e1df8871564 (patch)
tree0dbed7d9244fc888be4eb3c7589af094a7fc1c62 /plugin/pkg/replacer/replacer_test.go
parente6d02a3fd25831fc68e5c6f2bf9b779098ef8b98 (diff)
downloadcoredns-8045aa279b510793a7c083a50de66e1df8871564.tar.gz
coredns-8045aa279b510793a7c083a50de66e1df8871564.tar.zst
coredns-8045aa279b510793a7c083a50de66e1df8871564.zip
log/forward plugins: Extend dns query logging (#2240)
Automatically submitted.
Diffstat (limited to 'plugin/pkg/replacer/replacer_test.go')
-rw-r--r--plugin/pkg/replacer/replacer_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/pkg/replacer/replacer_test.go b/plugin/pkg/replacer/replacer_test.go
index 2fcaafc92..53b41510f 100644
--- a/plugin/pkg/replacer/replacer_test.go
+++ b/plugin/pkg/replacer/replacer_test.go
@@ -17,7 +17,7 @@ func TestNewReplacer(t *testing.T) {
r.SetQuestion("example.org.", dns.TypeHINFO)
r.MsgHdr.AuthenticatedData = true
- replaceValues := New(r, w, "")
+ replaceValues := New(nil, r, w, "")
switch v := replaceValues.(type) {
case replacer:
@@ -47,7 +47,7 @@ func TestSet(t *testing.T) {
r.SetQuestion("example.org.", dns.TypeHINFO)
r.MsgHdr.AuthenticatedData = true
- repl := New(r, w, "")
+ repl := New(nil, r, w, "")
repl.Set("name", "coredns.io.")
repl.Set("type", "A")