2023-02-27 13:22:45 +01:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/edwarnicke/exechelper"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (s *NginxSuite) TestMirroring() {
|
2023-02-28 16:55:01 +01:00
|
|
|
proxyAddress := s.netInterfaces[mirroringClientInterfaceName].peer.ip4AddressString()
|
2023-02-27 13:22:45 +01:00
|
|
|
|
|
|
|
path := "/64B.json"
|
|
|
|
|
2023-03-06 09:46:11 -08:00
|
|
|
testCommand := "wrk -c 20 -t 10 -d 10 http://" + proxyAddress + ":80" + path
|
2023-02-27 13:22:45 +01:00
|
|
|
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")
|
|
|
|
}
|