
- appending PID to interface and container names - added a check for used IP addresses - TestEnvoyProxyHttpTcp and TestTcpWithLoss are broken when running multiple instances Type: test Change-Id: Ib917079ec7cf851dee59ff9c67e74f48c7c5e3c6 Signed-off-by: adrianvillin <avillin@cisco.com>
21 lines
541 B
Go
21 lines
541 B
Go
package main
|
|
|
|
import (
|
|
"github.com/edwarnicke/exechelper"
|
|
)
|
|
|
|
func (s *NginxSuite) TestMirroring() {
|
|
proxyAddress := s.getInterfaceByName(mirroringClientInterfaceName).peer.ip4AddressString()
|
|
|
|
path := "/64B.json"
|
|
|
|
testCommand := "wrk -c 20 -t 10 -d 10 http://" + proxyAddress + ":80" + path
|
|
s.log(testCommand)
|
|
o, _ := exechelper.Output(testCommand)
|
|
s.log(string(o))
|
|
s.assertNotEmpty(o)
|
|
|
|
vppProxyContainer := s.getContainerByName(vppProxyContainerName)
|
|
s.assertEqual(0, vppProxyContainer.vppInstance.GetSessionStat("no lcl port"))
|
|
}
|