diff options
author | 2024-08-26 18:01:14 +0200 | |
---|---|---|
committer | 2024-08-26 18:03:31 +0200 | |
commit | a647a83496f81a83c02fe9317955a781b7f95d8c (patch) | |
tree | de2c54b572d7d2a725b5b55b442178b2dca020b2 /extras/hs-test/nginx_test.go | |
parent | 62b508b396b4bcca37b934247ea04f5efef85354 (diff) |
hs-test: http tests improvement
- added http specific asserts
- added helper functions to NoTopoSuite
Type: test
Change-Id: I0a7e77ed3ffd938aa3eaa37ed5432fbaab0dab64
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'extras/hs-test/nginx_test.go')
-rw-r--r-- | extras/hs-test/nginx_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/hs-test/nginx_test.go b/extras/hs-test/nginx_test.go index 98235b6f766..fa6afda58fc 100644 --- a/extras/hs-test/nginx_test.go +++ b/extras/hs-test/nginx_test.go @@ -22,7 +22,7 @@ func NginxHttp3Test(s *NoTopoSuite) { vpp := s.GetContainerByName("vpp").VppInstance vpp.WaitForApp("nginx-", 5) - serverAddress := s.GetInterfaceByName(TapInterfaceName).Peer.Ip4AddressString() + serverAddress := s.VppAddr() defer func() { os.Remove(query) }() curlCont := s.GetContainerByName("curl") @@ -44,7 +44,7 @@ func NginxAsServerTest(s *NoTopoSuite) { vpp := s.GetContainerByName("vpp").VppInstance vpp.WaitForApp("nginx-", 5) - serverAddress := s.GetInterfaceByName(TapInterfaceName).Peer.Ip4AddressString() + serverAddress := s.VppAddr() defer func() { os.Remove(query) }() go func() { @@ -68,7 +68,7 @@ func runNginxPerf(s *NoTopoSuite, mode, ab_or_wrk string) error { nRequests := 1000000 nClients := 1000 - serverAddress := s.GetInterfaceByName(TapInterfaceName).Peer.Ip4AddressString() + serverAddress := s.VppAddr() vpp := s.GetContainerByName("vpp").VppInstance |