diff options
author | 2017-08-18 14:45:20 +0100 | |
---|---|---|
committer | 2017-08-18 14:45:20 +0100 | |
commit | f96cf27193032120ba727316c4057dffed0cbe48 (patch) | |
tree | c76caa111aba281560a3b7db91953e307c06f1c9 /test/kubernetes_test.go | |
parent | cc4e4a0626bf8881e2ae8b2c1e52e09c6308e74e (diff) | |
download | coredns-f96cf27193032120ba727316c4057dffed0cbe48.tar.gz coredns-f96cf27193032120ba727316c4057dffed0cbe48.tar.zst coredns-f96cf27193032120ba727316c4057dffed0cbe48.zip |
mw/federation: add federation back as separate mw for k8s (#929)
* mw/federaration
This PR add the federation back as a middleware to keep it more
contained from the main kubernetes code.
It also makes parseRequest less import and pushes this functionlity down
in the k.Entries. This minimizes (or tries to) the importance for the
qtype in the query. In the end the qtype checking should only happen
in ServeDNS - but for k8s this might proof difficult.
Numerous other cleanup in code and kubernetes tests.
* up test coverage
Diffstat (limited to 'test/kubernetes_test.go')
-rw-r--r-- | test/kubernetes_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/kubernetes_test.go b/test/kubernetes_test.go index f9a0b00c4..2ee5a2d7f 100644 --- a/test/kubernetes_test.go +++ b/test/kubernetes_test.go @@ -357,7 +357,7 @@ func doIntegrationTests(t *testing.T, corefile string, testCases []test.Case) { } if len(res.Answer) != len(tc.Answer) { - t.Errorf("Expected %d answers but got %d for query %s, %d", len(tc.Answer), len(res.Answer), tc.Qname, tc.Qtype) + t.Errorf("Expected %d answers but got %d for query %s, %d\nfull reply %s", len(tc.Answer), len(res.Answer), tc.Qname, tc.Qtype, res) } //TODO: Check the actual RR values |