Commit graph

3 commits

Author SHA1 Message Date
Miek Gieben
818d2b10ad cidr everywhere: check all middleware ()
* cidr everywhere: check all middleware

Add tests for cidr in only that middleware that already tests for this.
Check the other ones manually (and put reverse in the tests cases
anyway).

Make etcd setup_test run without +build etcd tag - it is not needed
for this test - move rest of the code to lookup_test.go.

Cleanup proxy test a bit and remove TempDir as there is test.TempFile
that does the same thing.

Fixes 

* coredns package

* Fix test compile
2017-08-13 18:16:25 +01:00
Yong Tang
ad7e78ec31 Add cache_capacity option to dnssec middleware for the capacity of LRU cache ()
This fix adds a `cache_capacity` option to dnssec middleware, so that
it is possible to specify the capacity of the LRU cache used by dnssec
middleware.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-10-18 13:33:23 -07:00
Miek Gieben
9ac3cab1b7 Make CoreDNS a server type plugin for Caddy ()
* Make CoreDNS a server type plugin for Caddy

Remove code we don't need and port all middleware over. Fix all tests
and rework the documentation.

Also make `go generate` build a caddy binary which we then copy into
our directory. This means `go build`-builds remain working as-is.

And new etc instances in each etcd test for better isolation.
Fix more tests and rework test.Server with the newer support Caddy offers.

Fix Makefile to support new mode of operation.
2016-08-19 17:14:17 -07:00
Renamed from core/setup/dnssec_test.go (Browse further)