@@ -85,7 +85,7 @@ var _ = SIGDescribe("DNS", func() {
85
85
namesToResolve = append (namesToResolve , "metadata" )
86
86
}
87
87
}
88
- hostFQDN := fmt .Sprintf ("%s.%s.%s.svc.cluster.local " , dnsTestPodHostName , dnsTestServiceName , f .Namespace .Name )
88
+ hostFQDN := fmt .Sprintf ("%s.%s.%s.svc.%s " , dnsTestPodHostName , dnsTestServiceName , f .Namespace .Name , framework . TestContext . ClusterDNSDomain )
89
89
hostEntries := []string {hostFQDN , dnsTestPodHostName }
90
90
wheezyProbeCmd , wheezyFileNames := createProbeCommand (namesToResolve , hostEntries , "" , "wheezy" , f .Namespace .Name , framework .TestContext .ClusterDNSDomain )
91
91
jessieProbeCmd , jessieFileNames := createProbeCommand (namesToResolve , hostEntries , "" , "jessie" , f .Namespace .Name , framework .TestContext .ClusterDNSDomain )
@@ -153,9 +153,9 @@ var _ = SIGDescribe("DNS", func() {
153
153
// TODO: Create more endpoints and ensure that multiple A records are returned
154
154
// for headless service.
155
155
namesToResolve := []string {
156
- fmt .Sprintf ("%s.%s.svc.cluster.local " , headlessService .Name , f .Namespace .Name ),
157
- fmt .Sprintf ("_http._tcp.%s.%s.svc.cluster.local " , headlessService .Name , f .Namespace .Name ),
158
- fmt .Sprintf ("_http._tcp.%s.%s.svc.cluster.local " , regularService .Name , f .Namespace .Name ),
156
+ fmt .Sprintf ("%s.%s.svc.%s " , headlessService .Name , f .Namespace .Name , framework . TestContext . ClusterDNSDomain ),
157
+ fmt .Sprintf ("_http._tcp.%s.%s.svc.%s " , headlessService .Name , f .Namespace .Name , framework . TestContext . ClusterDNSDomain ),
158
+ fmt .Sprintf ("_http._tcp.%s.%s.svc.%s " , regularService .Name , f .Namespace .Name , framework . TestContext . ClusterDNSDomain ),
159
159
}
160
160
161
161
wheezyProbeCmd , wheezyFileNames := createProbeCommand (namesToResolve , nil , regularService .Spec .ClusterIP , "wheezy" , f .Namespace .Name , framework .TestContext .ClusterDNSDomain )
0 commit comments