diff options
author | 2016-11-29 09:54:57 +0000 | |
---|---|---|
committer | 2016-11-29 09:54:57 +0000 | |
commit | 4cfd19c7c97490dac47cd748166ec3f976e315aa (patch) | |
tree | 333b9851d6c5c80a374bf1084d2e012402710a87 /middleware/etcd/debug_test.go | |
parent | a1b9f96d876483b4356dddd83c24896d867e843c (diff) | |
download | coredns-4cfd19c7c97490dac47cd748166ec3f976e315aa.tar.gz coredns-4cfd19c7c97490dac47cd748166ec3f976e315aa.tar.zst coredns-4cfd19c7c97490dac47cd748166ec3f976e315aa.zip |
middleware/httpproxy: add debug queries (#446)
* middleware/httproxy: implement debug queries
Not too useful at the moment, but o-o.debug queries are supported
and return the Comment from dns.google.com.
Note that this is not always set.
* improve documentation
* Testing cleanups
Diffstat (limited to 'middleware/etcd/debug_test.go')
-rw-r--r-- | middleware/etcd/debug_test.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/middleware/etcd/debug_test.go b/middleware/etcd/debug_test.go index b1dbb0264..aa26dd846 100644 --- a/middleware/etcd/debug_test.go +++ b/middleware/etcd/debug_test.go @@ -4,7 +4,6 @@ package etcd import ( "sort" - "strings" "testing" "github.com/miekg/coredns/middleware/etcd/msg" @@ -14,21 +13,6 @@ import ( "github.com/miekg/dns" ) -func TestIsDebug(t *testing.T) { - if ok := isDebug("o-o.debug.miek.nl."); ok != "miek.nl." { - t.Errorf("expected o-o.debug.miek.nl. to be debug") - } - if ok := isDebug(strings.ToLower("o-o.Debug.miek.nl.")); ok != "miek.nl." { - t.Errorf("expected o-o.Debug.miek.nl. to be debug") - } - if ok := isDebug("i-o.debug.miek.nl."); ok != "" { - t.Errorf("expected i-o.Debug.miek.nl. to be non-debug") - } - if ok := isDebug(strings.ToLower("i-o.Debug.")); ok != "" { - t.Errorf("expected o-o.Debug. to be non-debug") - } -} - func TestDebugLookup(t *testing.T) { etc := newEtcdMiddleware() etc.Debugging = true |