From 59674755eba67d4b603c9bbf91b712c1098b8044 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Tue, 17 Nov 2020 16:34:48 +0100 Subject: [PATCH] e2e SCTP test not depend on kubenet e2e test should be platform and component independent. Consumers can filter using tags or regex. --- test/e2e/network/service.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/test/e2e/network/service.go b/test/e2e/network/service.go index 61dfddc364080..a73a2d4a309cf 100644 --- a/test/e2e/network/service.go +++ b/test/e2e/network/service.go @@ -3799,18 +3799,10 @@ var _ = SIGDescribe("SCTP [Feature:SCTP] [LinuxOnly]", func() { }) ginkgo.It("should create a Pod with SCTP HostPort", func() { - ginkgo.By("checking whether kubenet is used") node, err := e2enode.GetRandomReadySchedulableNode(cs) framework.ExpectNoError(err) hostExec := utils.NewHostExec(f) defer hostExec.Cleanup() - cmd := "ps -C kubelet -o cmd= | grep kubenet" - framework.Logf("Executing cmd %q on node %v", cmd, node.Name) - err = hostExec.IssueCommand(cmd, node) - if err != nil { - e2eskipper.Skipf("Interrogation of kubenet usage failed on node %s", node.Name) - } - framework.Logf("kubenet is in use") ginkgo.By("getting the state of the sctp module on the selected node") nodes := &v1.NodeList{} @@ -3829,7 +3821,7 @@ var _ = SIGDescribe("SCTP [Feature:SCTP] [LinuxOnly]", func() { framework.ExpectNoError(err, "failed to delete pod: %s in namespace: %s", podName, f.Namespace.Name) }() // wait until host port manager syncs rules - cmd = "iptables-save" + cmd := "iptables-save" if framework.TestContext.ClusterIsIPv6() { cmd = "ip6tables-save" }