summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/mirroring_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'extras/hs-test/mirroring_test.go')
-rw-r--r--extras/hs-test/mirroring_test.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/extras/hs-test/mirroring_test.go b/extras/hs-test/mirroring_test.go
new file mode 100644
index 00000000000..97c6c8dbf45
--- /dev/null
+++ b/extras/hs-test/mirroring_test.go
@@ -0,0 +1,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 40 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")
+}