blob: 03e9c03b8dbe38ae0ee42f7c8b25e8b7aa6dce57 [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() {
Maros Ondrejickae7625d02023-02-28 16:55:01 +01008 proxyAddress := s.netInterfaces[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}