blob: 1fd15dde2f4ed0509c56ca404eaad6724dd01460 [file] [log] [blame]
package main
import (
"github.com/edwarnicke/exechelper"
)
func init() {
registerNginxTests(MirroringTest)
}
// broken when CPUS > 1
func MirroringTest(s *NginxSuite) {
s.SkipIfMultiWorker()
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"))
}