Files
vpp/extras/hs-test/mirroring_test.go
Adrian Villin 05b0307962 hs-test: add libunwind dependency to nginx dockerfile
- Libunwind was missing in Dockerfile.nginx, causing some tests to fail.
  Tests that were temporarily disabled because of that issue
  are now re-enabled.

Type: test

Change-Id: I3f544be483784e8a7a1f22737cafca615b9f836b
Signed-off-by: Adrian Villin <avillin@cisco.com>
2024-06-03 04:58:58 -04:00

27 lines
637 B
Go

package main
import (
"github.com/edwarnicke/exechelper"
)
func init() {
registerNginxTests(MirroringTest)
}
// broken when CPUS > 1
func MirroringTest(s *NginxSuite) {
s.SkipIfMultiWorker()
proxyAddress := s.getInterfaceByName(mirroringClientInterfaceName).peer.ip4AddressString()
path := "/64B.json"
testCommand := "wrk -c 20 -t 10 -d 10 http://" + proxyAddress + ":80" + path
s.log(testCommand)
o, _ := exechelper.Output(testCommand)
s.log(string(o))
s.assertNotEmpty(o)
vppProxyContainer := s.getContainerByName(vppProxyContainerName)
s.assertEqual(0, vppProxyContainer.vppInstance.GetSessionStat("no lcl port"))
}