aboutsummaryrefslogtreecommitdiff
path: root/test/cache_test.go (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-08-24tests: CoreDNSServerAndPorts (#972)Gravatar Miek Gieben 1-12/+2
* tests: CoreDNSServerAndPorts Copy from kubernetes.go and renamed to fit the style, adapted almost all callers. This is a mechanicl change, no testdata was changed. * typos
2017-03-02Fix resolving CNAME with no proxy (#564)Gravatar Miek Gieben 1-1/+1
This fixes a crash when we resolve (or try to) an external CNAME when no proxy is set. Add test as well.
2017-02-22Fix import path `github.com/miekg/coredns` -> `github.com/coredns/coredns` ↵Gravatar Yong Tang 1-3/+3
(#547) This fix fixes import path from `github.com/miekg/coredns` -> `github.com/coredns/coredns`
2017-01-15middleware/proxy: implement Exchanger (#480)Gravatar Miek Gieben 1-2/+2
By defining and using an proxy.Exchanger interface we make the proxy more generic and we can then fold back httproxy into proxy. This overrides #463 and #473 and should make futures extensions rather trivial * Add docs that talk about `protocol` and how to set it. * middleware/proxy: rename New to NewLookup It's used as a Lookup mechanism not as a completely new proxy, reflect that in the name. * Set maxfails to 3 by default when looking up names. Most of the changes have been copied from https://github.com/johnbelamaric/coredns/pull/1/files
2017-01-12Run tests in parallel (#478)Gravatar Miek Gieben 1-0/+1
Create a small speedup running the tests: PASS ok github.com/miekg/coredns/test 10.329s PASS ok github.com/miekg/coredns/test 6.079s Skip the etcd ones. Doing the middleware/*/*_test ones doesn't yield any speedup as these are still done on a per directory basis.
2016-10-28middleware/proxy: add request duration monitoring (#362)Gravatar Miek Gieben 1-2/+0
Add a separate request duration metrics specially for proxying requests upstream. Fixes #259
2016-10-02Pr 311 2 (#312)Gravatar Miek Gieben 1-1/+1
* Add a setup test for middleware/file This fix adds a setup test for middleware/file so that there is a basic coverage for the Corefile processing of middleware/file. This fix is related to 308 (Will look into it). Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * middleware/file: use helper function for test Fixup setup_test.go and use the test.TempFile function to make things somewhat shorter. Use clean up the use of testing.T in TempFile - it is not used.
2016-10-02middleware/cache: split cache in positive and negative and use lru (#298)Gravatar Miek Gieben 1-0/+89
Make the cache memory bounded, by using a LRU cache. Also split the cache in a positive and negative one - each with its own controls. Extend the cache stanza to allow for this: cache { positive limit [ttl] negative limit [ttl] } is now possible. This also add a cache_test.go in the toplevel test/ directory that exercises the caching path. Fixes #260