Maros Ondrejicka | c2f76f4 | 2023-02-27 13:22:45 +0100 | [diff] [blame] | 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | "github.com/edwarnicke/exechelper" |
| 5 | ) |
| 6 | |
| 7 | func (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 | } |