Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix networking suite single node #682

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions tests/networking/tests/networking_multus_links.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
})

Expand Down
Loading