blob: 97c6c8dbf4564e5acd428a254f8800fa29bac98a [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() {
8 proxyAddress := s.netInterfaces[mirroringClientInterfaceName].Peer().IP4AddressString()
9
10 path := "/64B.json"
11
12 testCommand := "wrk -c 20 -t 10 -d 40 http://" + proxyAddress + ":80" + path
13 s.log(testCommand)
14 o, _ := exechelper.Output(testCommand)
15 s.log(string(o))
16 s.assertNotEmpty(o)
17
18 // Check if log output from VPP contains 'no lcl port' warnings
19 // TODO: Need to change after adding session worker counter
20 vppProxyContainer := s.getContainerByName(vppProxyContainerName)
21 logContent := vppProxyContainer.log()
22 s.assertNotContains(logContent, "no lcl port")
23}