mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
middleware/etcd: more tests (#342)
Add a test which enables caching and debug queries and make sure the debug query does not overwrite the cache.
This commit is contained in:
@@ -26,7 +26,7 @@ func etcdMiddleware() *etcd.Etcd {
|
||||
}
|
||||
cli, _ := etcdc.New(etcdCfg)
|
||||
client := etcdc.NewKeysAPI(cli)
|
||||
return &etcd.Etcd{Client: client}
|
||||
return &etcd.Etcd{Client: client, PathPrefix: "/skydns"}
|
||||
}
|
||||
|
||||
// This test starts two coredns servers (and needs etcd). Configure a stubzones in both (that will loop) and
|
||||
|
||||
Reference in New Issue
Block a user