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:
Miek Gieben
2016-10-18 12:05:19 +01:00
committed by GitHub
parent 89a2912c87
commit 4d55f90388
2 changed files with 93 additions and 1 deletions

View File

@@ -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