coredns/middleware/test
Miek Gieben 34ffb2b314 Fix TestStubLookup and TestLookup (#213)
Changes large parts of proxy lookup mechanism.

The duplicate zone checking erroneous added a nameserver for each
zone we are auth. for, creating to many backend hosts. So even when a
host was determined do be Down() we still got an (identical) new one
from the list.

The Down() and failure checking for upstream hosts had data race in the
uh.Fails check - we now use atomic.LoadInt32 for that.

Use and debug the test/server.go test servers implementation in the
TestStubLookup test to prevent going out to the internet.

Also delete the stub cycle test. That test was wrong and did not test
what it needed to be testing.  Deleted for now.
2016-08-14 12:57:49 -06:00
..
file.go Add middleware/dnssec (#133) 2016-04-26 17:57:11 +01:00
file_test.go Fix path for asset storage (#144) 2016-04-30 21:56:43 +01:00
helpers.go Fix stubzone retention (#198) 2016-08-08 19:18:55 -07:00
helpers_test.go Fix path for asset storage (#144) 2016-04-30 21:56:43 +01:00
responsewriter.go Rename middleware/testing (#103) 2016-04-11 07:56:38 +01:00
server.go Fix TestStubLookup and TestLookup (#213) 2016-08-14 12:57:49 -06:00