mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #43731 from bowei/flake-dns
Automatic merge from submit-queue Move DNS configmap tests to slow, serial suites These tests take a long time due to the ConfigMap update interval and may briefly disrupt DNS resolution in the cluster.
This commit is contained in:
commit
f655c06b68
@ -38,7 +38,7 @@ var _ = framework.KubeDescribe("DNS configMap federations", func() {
|
|||||||
t := &dnsNameserverTest{dnsTestCommon: newDnsTestCommon()}
|
t := &dnsNameserverTest{dnsTestCommon: newDnsTestCommon()}
|
||||||
BeforeEach(func() { t.c = t.f.ClientSet })
|
BeforeEach(func() { t.c = t.f.ClientSet })
|
||||||
|
|
||||||
It("should be able to change federation configuration", func() {
|
It("should be able to change federation configuration [Slow][Serial]", func() {
|
||||||
t.run()
|
t.run()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -169,12 +169,12 @@ func (t *dnsNameserverTest) run() {
|
|||||||
"def.acme.local",
|
"def.acme.local",
|
||||||
func(actual []string) bool { return len(actual) == 1 && actual[0] == "2.2.2.2" },
|
func(actual []string) bool { return len(actual) == 1 && actual[0] == "2.2.2.2" },
|
||||||
"dnsmasq",
|
"dnsmasq",
|
||||||
wait.ForeverTestTimeout)
|
moreForeverTestTimeout)
|
||||||
t.checkDNSRecordFrom(
|
t.checkDNSRecordFrom(
|
||||||
"widget.local",
|
"widget.local",
|
||||||
func(actual []string) bool { return len(actual) == 1 && actual[0] == "3.3.3.3" },
|
func(actual []string) bool { return len(actual) == 1 && actual[0] == "3.3.3.3" },
|
||||||
"dnsmasq",
|
"dnsmasq",
|
||||||
wait.ForeverTestTimeout)
|
moreForeverTestTimeout)
|
||||||
|
|
||||||
t.c.Core().ConfigMaps(t.ns).Delete(t.name, nil)
|
t.c.Core().ConfigMaps(t.ns).Delete(t.name, nil)
|
||||||
// Wait for the deleted ConfigMap to take effect, otherwise the
|
// Wait for the deleted ConfigMap to take effect, otherwise the
|
||||||
@ -190,7 +190,7 @@ var _ = framework.KubeDescribe("DNS configMap nameserver", func() {
|
|||||||
t := &dnsNameserverTest{dnsTestCommon: newDnsTestCommon()}
|
t := &dnsNameserverTest{dnsTestCommon: newDnsTestCommon()}
|
||||||
BeforeEach(func() { t.c = t.f.ClientSet })
|
BeforeEach(func() { t.c = t.f.ClientSet })
|
||||||
|
|
||||||
It("should be able to change stubDomain configuration", func() {
|
It("should be able to change stubDomain configuration [Slow][Serial]", func() {
|
||||||
t.run()
|
t.run()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user