tests: CoreDNSServerAndPorts (#972)
* tests: CoreDNSServerAndPorts Copy from kubernetes.go and renamed to fit the style, adapted almost all callers. This is a mechanicl change, no testdata was changed. * typos
This commit is contained in:
parent
ea53f8c219
commit
f901b0cefa
24 changed files with 39 additions and 143 deletions
|
@ -47,15 +47,10 @@ func TestEtcdStubAndProxyLookup(t *testing.T) {
|
|||
proxy . 8.8.8.8:53
|
||||
}`
|
||||
|
||||
ex, err := CoreDNSServer(corefile)
|
||||
ex, udp, _, err := CoreDNSServerAndPorts(corefile)
|
||||
if err != nil {
|
||||
t.Fatalf("Could not get CoreDNS serving instance: %s", err)
|
||||
}
|
||||
|
||||
udp, _ := CoreDNSServerPorts(ex, 0)
|
||||
if udp == "" {
|
||||
t.Fatalf("Could not get UDP listening port")
|
||||
}
|
||||
defer ex.Stop()
|
||||
|
||||
etc := etcdMiddleware()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue