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() { |
Maros Ondrejicka | e7625d0 | 2023-02-28 16:55:01 +0100 | [diff] [blame] | 8 | proxyAddress := s.netInterfaces[mirroringClientInterfaceName].peer.ip4AddressString() |
Maros Ondrejicka | c2f76f4 | 2023-02-27 13:22:45 +0100 | [diff] [blame] | 9 | |
| 10 | path := "/64B.json" |
| 11 | |
Florin Coras | 87767d8 | 2023-03-06 09:46:11 -0800 | [diff] [blame] | 12 | testCommand := "wrk -c 20 -t 10 -d 10 http://" + proxyAddress + ":80" + path |
Maros Ondrejicka | c2f76f4 | 2023-02-27 13:22:45 +0100 | [diff] [blame] | 13 | s.log(testCommand) |
| 14 | o, _ := exechelper.Output(testCommand) |
| 15 | s.log(string(o)) |
| 16 | s.assertNotEmpty(o) |
| 17 | |
Maros Ondrejicka | c2f76f4 | 2023-02-27 13:22:45 +0100 | [diff] [blame] | 18 | vppProxyContainer := s.getContainerByName(vppProxyContainerName) |
Filip Tehlar | 543cd57 | 2023-06-27 10:01:37 +0200 | [diff] [blame] | 19 | s.assertEqual(0, vppProxyContainer.vppInstance.GetSessionStat("no lcl port")) |
Maros Ondrejicka | c2f76f4 | 2023-02-27 13:22:45 +0100 | [diff] [blame] | 20 | } |