diff options
author | adrianvillin <avillin@cisco.com> | 2024-02-13 06:00:02 -0500 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2024-03-12 16:48:46 +0000 |
commit | 28bd8f07d33bdd70c2cac03b70911a9069e4bd50 (patch) | |
tree | 102bab11aa225339995a4dd07ea8332d1fce2212 /extras/hs-test/suite_nginx_test.go | |
parent | 7a2961523ef6d58d718a9efb7809a212bb0b58b1 (diff) |
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 <avillin@cisco.com>
Diffstat (limited to 'extras/hs-test/suite_nginx_test.go')
-rw-r--r-- | extras/hs-test/suite_nginx_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extras/hs-test/suite_nginx_test.go b/extras/hs-test/suite_nginx_test.go index 94fd010814a..8f40590d1f2 100644 --- a/extras/hs-test/suite_nginx_test.go +++ b/extras/hs-test/suite_nginx_test.go @@ -1,12 +1,12 @@ package main +// These correspond to names used in yaml config const ( - // These correspond to names used in yaml config - mirroringClientInterfaceName = "hstcln" - mirroringServerInterfaceName = "hstsrv" vppProxyContainerName = "vpp-proxy" nginxProxyContainerName = "nginx-proxy" nginxServerContainerName = "nginx-server" + mirroringClientInterfaceName = "hstcln" + mirroringServerInterfaceName = "hstsrv" ) type NginxSuite struct { @@ -35,10 +35,10 @@ func (s *NginxSuite) SetupTest() { proxyVpp, _ := vppProxyContainer.newVppInstance(cpus, sessionConfig) s.assertNil(proxyVpp.start()) - clientInterface := s.netInterfaces[mirroringClientInterfaceName] + clientInterface := s.getInterfaceByName(mirroringClientInterfaceName) s.assertNil(proxyVpp.createTap(clientInterface, 1)) - serverInterface := s.netInterfaces[mirroringServerInterfaceName] + serverInterface := s.getInterfaceByName(mirroringServerInterfaceName) s.assertNil(proxyVpp.createTap(serverInterface, 2)) nginxContainer := s.getTransientContainerByName(nginxProxyContainerName) |