diff --git a/tests/e2e/testutils.go b/tests/e2e/testutils.go index 5c507d2809..eff6b1792f 100644 --- a/tests/e2e/testutils.go +++ b/tests/e2e/testutils.go @@ -214,15 +214,6 @@ func CreateLocalCluster(nodeOS string, serverCount, agentCount int) ([]string, [ return serverNodeNames, agentNodeNames, nil } -// Deletes the content of a manifest file previously applied -func DeleteWorkload(workload, kubeconfig string) error { - cmd := "kubectl delete -f " + workload + " --kubeconfig=" + kubeconfig - if _, err := RunCommand(cmd); err != nil { - return err - } - return nil -} - func DeployWorkload(workload, kubeconfig string, hardened bool) (string, error) { resourceDir := "../amd64_resource_files" if hardened { diff --git a/tests/e2e/validatecluster/validatecluster_test.go b/tests/e2e/validatecluster/validatecluster_test.go index 712769f8be..d90f73525e 100644 --- a/tests/e2e/validatecluster/validatecluster_test.go +++ b/tests/e2e/validatecluster/validatecluster_test.go @@ -274,25 +274,6 @@ var _ = Describe("Verify Create", Ordered, func() { }) Context("Validate restart", func() { - It("Deletes daemonset", func() { - _, err := e2e.DeployWorkload("daemonset.yaml", kubeConfigFile, *hardened) - Expect(err).NotTo(HaveOccurred(), "Daemonset manifest not deployed") - defer e2e.DeleteWorkload("daemonset.yaml", kubeConfigFile) - nodes, _ := e2e.ParseNodes(kubeConfigFile, false) - - Eventually(func(g Gomega) { - pods, _ := e2e.ParsePods(kubeConfigFile, false) - count := e2e.CountOfStringInSlice("test-daemonset", pods) - g.Expect(len(nodes)).Should((Equal(count)), "Daemonset pod count does not match node count") - podsRunning := 0 - for _, pod := range pods { - if strings.Contains(pod.Name, "test-daemonset") && pod.Status == "Running" && pod.Ready == "1/1" { - podsRunning++ - } - } - g.Expect(len(nodes)).Should((Equal(podsRunning)), "Daemonset running pods count does not match node count") - }, "620s", "5s").Should(Succeed()) - }) It("Restarts normally", func() { errRestart := e2e.RestartCluster(append(serverNodeNames, agentNodeNames...)) Expect(errRestart).NotTo(HaveOccurred(), "Restart Nodes not happened correctly")