Skip to content

Commit 9e0a1d2

Browse files
lee0cPatrickLang
authored andcommitted
Remove ndots check as it doesn't apply to windows
1 parent c0e079b commit 9e0a1d2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

test/e2e/windows/dns.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,9 @@ var _ = SIGDescribe("DNS", func() {
4848
ginkgo.By("Creating a pod with dnsPolicy=None and customized dnsConfig...")
4949
testUtilsPod := generateDNSUtilsPod()
5050
testUtilsPod.Spec.DNSPolicy = v1.DNSNone
51-
testNdotsValue := "2"
5251
testUtilsPod.Spec.DNSConfig = &v1.PodDNSConfig{
5352
Nameservers: []string{testInjectedIP},
5453
Searches: []string{testSearchPath},
55-
Options: []v1.PodDNSConfigOption{
56-
{
57-
Name: "ndots",
58-
Value: &testNdotsValue,
59-
},
60-
},
6154
}
6255
testUtilsPod, err := f.ClientSet.CoreV1().Pods(f.Namespace.Name).Create(testUtilsPod)
6356
framework.ExpectNoError(err)
@@ -88,7 +81,7 @@ var _ = SIGDescribe("DNS", func() {
8881
if dnsRegex.MatchString(stdout) {
8982
match := dnsRegex.FindString(stdout)
9083

91-
if !strings.Contains(match, "ndots:2") {
84+
if !strings.Contains(match, testInjectedIP) {
9285
framework.Failf("customized DNS options not found in ipconfig /all, got: %s", match)
9386
}
9487
} else {

0 commit comments

Comments
 (0)