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>
This commit is contained in:
Matus Fabian
2024-08-26 18:01:14 +02:00
parent 62b508b396
commit a647a83496
5 changed files with 164 additions and 141 deletions

View File

@ -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