aboutsummaryrefslogtreecommitdiff
path: root/middleware/kubernetes/reverse_test.go (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-08-18mw/federation: add federation back as separate mw for k8s (#929)Gravatar Miek Gieben 1-2/+1
* 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
2017-08-17mw/kubernetes: add reverse test case (#932)Gravatar Miek Gieben 1-3/+7
Add a non-arpa testcase to the reverse test.
2017-08-16tests: add SortAndCheck helper (#926)Gravatar Miek Gieben 1-19/+1
There was quite some code duplication in a lot of tests to check if an answer was considered Ok. Created a test.SortAndCheck helper function that takes care of this.
2017-08-16mw/kubernetes: add reverse_test.go (#922)Gravatar Miek Gieben 1-0/+140
This PR adds a reverse tests that copies some of it from the main integration test. This aids in local testing because you don't need a full k8s setup running. It does the most minimal testing, a successful return and a nodata response that includes the SOA for in-addr.arpa.
2017-08-14mw/kubernetes: remove federation and cidr (#916)Gravatar Miek Gieben 1-33/+0
* mw/kubernetes: remove federation and cidr Remove both as we have a corefile syntax change that handles cidr and remove federation because that is going to be its own middleware. * backwards incompat changes This PR: * removes cidr from kubernetes (core Corefile feature now) * removes federation from kubernets (comes back as new middleware) * [remove autopath - which was already gone, so that already was backwards incompat] * adds `fallthrough` to the *etcd* middleware and makes you enable it. * Fail on unknown properties * documentation * Disable TestHealthCheck as it uses realtime and fails
2017-08-11mw/k8s: cleanups (#893)Gravatar Miek Gieben 1-2/+2
* mw/k8s: cleanups Remove some constants that aren't used any more. Make PrimaryZone private because it doesn't need to be exported. Remove test that did not cover corner case as expressed in setup.go * cleanup this as well
2017-08-09middleware/kubernetes: put reverse function in own file (#863)Gravatar Miek Gieben 1-0/+33
Move reverse function and (some) test code to reverse*.go