From c2f76f4590f57729d1bcf03bd816c10991431b18 Mon Sep 17 00:00:00 2001 From: Maros Ondrejicka Date: Mon, 27 Feb 2023 13:22:45 +0100 Subject: hs-test: test vpp+nginx mirroring with tap ifaces Type: test Signed-off-by: Maros Ondrejicka Change-Id: I05bbed8fd9d40929f040574044aed5292a475e91 --- extras/hs-test/mirroring_test.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 extras/hs-test/mirroring_test.go (limited to 'extras/hs-test/mirroring_test.go') 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") +} -- cgit 1.2.3-korg