e7625d0856
Exported indentifiers in Go start with capital letters. Only few fields in hs-test, which are being unmarshaled from yaml are required to be exported. Every other field name or method name should start with lower-case letter, to be consistent with this naming convention. Type: test Signed-off-by: Maros Ondrejicka <mondreji@cisco.com> Change-Id: I7eab0eef9fd08a7890c77b6ce1aeb3fa4b80f3cd
24 lines
670 B
Go
24 lines
670 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")
|
|
}
|