87767d82d7
- avoid setting LD_PRELOAD for container - save nginx error log to shared volume - reduce test run time to 10s - add vcl and ldp debug env variables to docker file. Default to disabled. Type: test Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I401ac74e7c0ebe87befedb44150b04f773f244ea
24 lines
672 B
Go
24 lines
672 B
Go
package main
|
|
|
|
import (
|
|
"github.com/edwarnicke/exechelper"
|
|
)
|
|
|
|
func (s *NginxSuite) TestMirroring() {
|
|
proxyAddress := s.netInterfaces[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)
|
|
|
|
// Check if log output from VPP contains 'no lcl port' warnings
|
|
// TODO: Need to change after adding session worker counter
|
|
vppProxyContainer := s.getContainerByName(vppProxyContainerName)
|
|
logContent := vppProxyContainer.log()
|
|
s.assertNotContains(logContent, "no lcl port")
|
|
}
|