coredns/middleware
Miek Gieben 4096c4906d Pr 311 2 (#312)
* 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-02 15:58:01 +01:00
..
bind Doc: add package docs (#296) 2016-09-25 08:39:20 +01:00
cache middleware/cache: split cache in positive and negative and use lru (#298) 2016-10-02 08:31:44 +01:00
chaos Doc: add package docs (#296) 2016-09-25 08:39:20 +01:00
dnssec Pr 311 2 (#312) 2016-10-02 15:58:01 +01:00
errors Golint2 (#280) 2016-09-23 09:14:12 +01:00
etcd middleware/etcd: add setup_test.go (#304) 2016-09-26 14:43:38 +01:00
file Pr 311 2 (#312) 2016-10-02 15:58:01 +01:00
health Doc: add package docs (#296) 2016-09-25 08:39:20 +01:00
kubernetes Doc: add package docs (#296) 2016-09-25 08:39:20 +01:00
loadbalance Doc: add package docs (#296) 2016-09-25 08:39:20 +01:00
log Golint2 (#280) 2016-09-23 09:14:12 +01:00
metrics Doc: add package docs (#296) 2016-09-25 08:39:20 +01:00
pkg middleware/cache: split cache in positive and negative and use lru (#298) 2016-10-02 08:31:44 +01:00
pprof Doc: add package docs (#296) 2016-09-25 08:39:20 +01:00
proxy Golint middleware/proxy (#290) 2016-09-23 23:00:50 +01:00
rewrite Golint2 (#280) 2016-09-23 09:14:12 +01:00
secondary Doc: add package docs (#296) 2016-09-25 08:39:20 +01:00
test Pr 311 2 (#312) 2016-10-02 15:58:01 +01:00
whoami Doc: add package docs (#296) 2016-09-25 08:39:20 +01:00
middleware.go middleware/whoami: add (#264) 2016-09-17 17:09:05 +01:00
middleware_test.go Use context.Context 2016-03-19 07:32:50 +00:00
normalize.go Run golint and go vet (#276) 2016-09-21 17:01:19 +01:00
normalize_test.go Add tests for normalize.go 2016-09-07 12:55:41 +00:00