From dcf2da0c537b1b25272f552bd9dc4bf055eec6c0 Mon Sep 17 00:00:00 2001 From: Brandon Palm Date: Tue, 30 Jan 2024 17:21:12 -0600 Subject: [PATCH] Fix networking suite single node --- .../networking/tests/networking_multus_links.go | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/tests/networking/tests/networking_multus_links.go b/tests/networking/tests/networking_multus_links.go index 177b0bed9..064ae7622 100644 --- a/tests/networking/tests/networking_multus_links.go +++ b/tests/networking/tests/networking_multus_links.go @@ -391,28 +391,16 @@ var _ = Describe("Networking custom namespace,", func() { err = tshelper.DefineAndCreateDaemonsetWithMultusOnCluster(tsparams.TestNadNameB, randomNamespace, "ds5") Expect(err).ToNot(HaveOccurred()) - // Note: We cannot perform the icmpv4 connectivity test on a single node cluster when defining a daemonset. - // Since this is a [negative] test case, we expect it to fail. - expectedState := globalparameters.TestCaseFailed - if globalhelper.GetNumberOfNodes(globalhelper.GetAPIClient().K8sClient.CoreV1()) == 1 { - expectedState = globalparameters.TestCasePassed - } - By("Start tests") err = globalhelper.LaunchTests( tsparams.TnfMultusIpv4TcName, globalhelper.ConvertSpecNameToFileName(CurrentSpecReport().FullText()), randomReportDir, randomTnfConfigDir) - - if expectedState == globalparameters.TestCasePassed { - Expect(err).ToNot(HaveOccurred()) - } else { - Expect(err).To(HaveOccurred()) - } + Expect(err).To(HaveOccurred()) By("Verify test case status in Claim report") err = globalhelper.ValidateIfReportsAreValid( tsparams.TnfMultusIpv4TcName, - expectedState, randomReportDir) + globalparameters.TestCaseFailed, randomReportDir) Expect(err).ToNot(HaveOccurred()) })