From 28bd8f07d33bdd70c2cac03b70911a9069e4bd50 Mon Sep 17 00:00:00 2001 From: adrianvillin Date: Tue, 13 Feb 2024 06:00:02 -0500 Subject: hs-test: experimental support for multiple test instances - appending PID to interface and container names - added a check for used IP addresses - TestEnvoyProxyHttpTcp and TestTcpWithLoss are broken when running multiple instances Type: test Change-Id: Ib917079ec7cf851dee59ff9c67e74f48c7c5e3c6 Signed-off-by: adrianvillin --- extras/hs-test/suite_ns_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extras/hs-test/suite_ns_test.go') diff --git a/extras/hs-test/suite_ns_test.go b/extras/hs-test/suite_ns_test.go index b32fec7e729..46d5bef92ad 100644 --- a/extras/hs-test/suite_ns_test.go +++ b/extras/hs-test/suite_ns_test.go @@ -1,7 +1,7 @@ package main +// These correspond to names used in yaml config const ( - // These correspond to names used in yaml config clientInterface = "hclnvpp" serverInterface = "hsrvvpp" ) @@ -33,11 +33,11 @@ func (s *NsSuite) SetupTest() { vpp, _ := container.newVppInstance(cpus, sessionConfig) s.assertNil(vpp.start()) - idx, err := vpp.createAfPacket(s.netInterfaces[serverInterface]) + idx, err := vpp.createAfPacket(s.getInterfaceByName(serverInterface)) s.assertNil(err, err) s.assertNotEqual(0, idx) - idx, err = vpp.createAfPacket(s.netInterfaces[clientInterface]) + idx, err = vpp.createAfPacket(s.getInterfaceByName(clientInterface)) s.assertNil(err, err) s.assertNotEqual(0, idx) -- cgit 1.2.3-korg