mirror of
https://github.com/coredns/coredns.git
synced 2025-11-13 15:32:24 -05:00
middleware/etcd: add setup_test.go (#304)
Add tests for parsing etcd Corefile stanza. Discover a bug in the code, fix that as well.
This commit is contained in:
@@ -27,6 +27,8 @@ type Etcd struct {
|
||||
Inflight *singleflight.Group
|
||||
Stubmap *map[string]proxy.Proxy // list of proxies for stub resolving.
|
||||
Debug bool // Do we allow debug queries.
|
||||
|
||||
endpoints []string // Stored here as well, to aid in testing.
|
||||
}
|
||||
|
||||
// Records looks up records in etcd. If exact is true, it will lookup just
|
||||
|
||||
Reference in New Issue
Block a user