aboutsummaryrefslogtreecommitdiffstats
path: root/extras/hs-test/mirroring_test.go
diff options
context:
space:
mode:
authorMaros Ondrejicka <mondreji@cisco.com>2023-02-27 13:22:45 +0100
committerFlorin Coras <florin.coras@gmail.com>2023-02-28 18:27:17 +0000
commitc2f76f4590f57729d1bcf03bd816c10991431b18 (patch)
tree9ab0273c87c3f5ba21cf0ee8277f60f73e95f762 /extras/hs-test/mirroring_test.go
parentb0116a13dcc631d5128209dec867c3fb5209629d (diff)
hs-test: test vpp+nginx mirroring with tap ifaces
Type: test Signed-off-by: Maros Ondrejicka <mondreji@cisco.com> Change-Id: I05bbed8fd9d40929f040574044aed5292a475e91
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")
+}