mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
Port tests from SkyDNS
This adds *most* of the tests from SkyDNS, things lacking is the stubzone checking, groups and the trim prefix. These will be added in subsequent PRs and in separate test files.
This commit is contained in:
@@ -24,6 +24,9 @@ type Etcd struct {
|
||||
PathPrefix string
|
||||
}
|
||||
|
||||
// Records looks up records in etcd. If exact is true, it will lookup just
|
||||
// this name. This is used when find matches when completing SRV lookups
|
||||
// for instance.
|
||||
func (g Etcd) Records(name string, exact bool) ([]msg.Service, error) {
|
||||
path, star := g.PathWithWildcard(name)
|
||||
r, err := g.Get(path, true)
|
||||
|
||||
Reference in New Issue
Block a user