aboutsummaryrefslogtreecommitdiff
path: root/middleware/file/file_test.go (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-09-14Remove the word middleware (#1067)Gravatar Miek Gieben 1-31/+0
* Rename middleware to plugin first pass; mostly used 'sed', few spots where I manually changed text. This still builds a coredns binary. * fmt error * Rename AddMiddleware to AddPlugin * Readd AddMiddleware to remain backwards compat
2017-06-18mw/file: rename to BenchmarkFileLookup (#741)Gravatar Miek Gieben 1-1/+1
In grafana we miss the context of where this is called, make the name more descriptive. Also test the GH webhook.
2017-06-13middleware/file: consider no SOA a fatal error (#734)Gravatar Miek Gieben 1-0/+19
Don't load a zone with a SOA record, barf with 'no SOA record' error.
2017-06-08middleware/file: don't reload zone when SOA isn't changed (#707)Gravatar Miek Gieben 1-1/+1
* middleware/file: don't reload zone when SOA isn't changed Give Parse an extra argument which is the SOA's serial, if > 0 we check against the just parsed SOA and then just return. Most notable use is in reload.go which is both used in the file and auto middleware. Fixes #415 * PR comments
2016-11-05middleware/file: fix delegations (#376)Gravatar Miek Gieben 1-316/+0
Fix the delegation handling in the *file* and *dnssec* middleware. Refactor tests a bit and show that they are failling. Add a Tree printer, cleanups and tests. Fix wildcard test - should get no answer from empty-non-terminal
2016-04-28Clean up remove caddy refs (#139)Gravatar Michael Richmond 1-2/+2
* Changed reference to Caddy over to CoreDNS * Removing references to caddy * Fixed misleading error message to reference coredns * Cleaning up references to caddy * Adding clean and deps targets Muscle memory is resulting in "make clean" commands. * Adding test target to makefile * More "Caddy" cleanup
2016-04-02empty non-terminal supportGravatar Miek Gieben 1-0/+11
When looking for a name in tree, return wether we got to a longer one - if so we had an ent. Add tests + dnssec tests and refactor the tests as well a bit.
2016-03-19Use context.ContextGravatar Miek Gieben 1-10/+2
Rename the old Context to State and use context.Context in the middleware for intra-middleware communication and more.
2016-03-18First commitGravatar Miek Gieben 1-0/+325