blob: 6c42fe8f126ef504deaa12d6555c483706912ba3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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")
}
|