From 84a635e21a561dfce0485bbda794bafea055d8bd Mon Sep 17 00:00:00 2001 From: yankaiz Date: Thu, 12 Apr 2018 14:03:43 -0700 Subject: [PATCH] Fix failed e2e tests for dns configmap. --- test/e2e/network/dns_configmap.go | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/test/e2e/network/dns_configmap.go b/test/e2e/network/dns_configmap.go index 8c981402426..7d61eded51b 100644 --- a/test/e2e/network/dns_configmap.go +++ b/test/e2e/network/dns_configmap.go @@ -35,8 +35,9 @@ type dnsFederationsConfigMapTest struct { var _ = SIGDescribe("DNS configMap federations", func() { + t := &dnsNameserverTest{dnsTestCommon: newDnsTestCommon()} + It("should be able to change federation configuration [Slow][Serial]", func() { - t := &dnsNameserverTest{dnsTestCommon: newDnsTestCommon()} t.c = t.f.ClientSet t.run() }) @@ -220,15 +221,21 @@ func (t *dnsPtrFwdTest) run() { var _ = SIGDescribe("DNS configMap nameserver", func() { - It("should be able to change stubDomain configuration [Slow][Serial]", func() { + Context("Change stubDomain", func() { nsTest := &dnsNameserverTest{dnsTestCommon: newDnsTestCommon()} - nsTest.c = nsTest.f.ClientSet - nsTest.run() + + It("should be able to change stubDomain configuration [Slow][Serial]", func() { + nsTest.c = nsTest.f.ClientSet + nsTest.run() + }) }) - It("should forward PTR records lookup to upstream nameserver [Slow][Serial]", func() { + Context("Forward PTR lookup", func() { fwdTest := &dnsPtrFwdTest{dnsTestCommon: newDnsTestCommon()} - fwdTest.c = fwdTest.f.ClientSet - fwdTest.run() + + It("should forward PTR records lookup to upstream nameserver [Slow][Serial]", func() { + fwdTest.c = fwdTest.f.ClientSet + fwdTest.run() + }) }) })