blob: 91f43f45682143df76b01e85d01f33b2022fedc2 [file] [log] [blame]
Maros Ondrejickac2f76f42023-02-27 13:22:45 +01001package main
2
3import (
4 "github.com/edwarnicke/exechelper"
5)
6
7func (s *NginxSuite) TestMirroring() {
adrianvillin28bd8f02024-02-13 06:00:02 -05008 proxyAddress := s.getInterfaceByName(mirroringClientInterfaceName).peer.ip4AddressString()
Maros Ondrejickac2f76f42023-02-27 13:22:45 +01009
10 path := "/64B.json"
11
Florin Coras87767d82023-03-06 09:46:11 -080012 testCommand := "wrk -c 20 -t 10 -d 10 http://" + proxyAddress + ":80" + path
Maros Ondrejickac2f76f42023-02-27 13:22:45 +010013 s.log(testCommand)
14 o, _ := exechelper.Output(testCommand)
15 s.log(string(o))
16 s.assertNotEmpty(o)
17
Maros Ondrejickac2f76f42023-02-27 13:22:45 +010018 vppProxyContainer := s.getContainerByName(vppProxyContainerName)
Filip Tehlar543cd572023-06-27 10:01:37 +020019 s.assertEqual(0, vppProxyContainer.vppInstance.GetSessionStat("no lcl port"))
Maros Ondrejickac2f76f42023-02-27 13:22:45 +010020}