diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2023-05-22 15:48:51 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2023-05-24 17:38:10 +0000 |
commit | 71fc1947033854cd57c362df69f7f2e578af7d1b (patch) | |
tree | bed4beb03897cf100b1937064a531546a0c686da /extras/hs-test/raw_session_test.go | |
parent | 5e42eae58be468ca82a372b4f751e98f327b389e (diff) |
hs-test: add vcl echo tests
Type: test
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Change-Id: I3e543cb292c7ed0f9d240f8f2473a1db07aff0fd
Diffstat (limited to 'extras/hs-test/raw_session_test.go')
-rw-r--r-- | extras/hs-test/raw_session_test.go | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/extras/hs-test/raw_session_test.go b/extras/hs-test/raw_session_test.go new file mode 100644 index 00000000000..677a47b789a --- /dev/null +++ b/extras/hs-test/raw_session_test.go @@ -0,0 +1,37 @@ +package main + +func (s *VethsSuite) TestVppEchoQuic() { + s.skip("quic test skipping..") + s.testVppEcho("quic") +} + +func (s *VethsSuite) TestVppEchoUdp() { + s.skip("udp echo currently broken in vpp, skipping..") + s.testVppEcho("udp") +} + +func (s *VethsSuite) TestVppEchoTcp() { + s.testVppEcho("tcp") +} + +func (s *VethsSuite) testVppEcho(proto string) { + serverVethAddress := s.netInterfaces["vppsrv"].ip4AddressString() + uri := proto + "://" + serverVethAddress + "/12344" + + echoSrvContainer := s.getContainerByName("server-app") + serverCommand := "vpp_echo server TX=RX" + + " socket-name " + echoSrvContainer.getContainerWorkDir() + "/var/run/app_ns_sockets/1" + + " use-app-socket-api" + + " uri " + uri + s.log(serverCommand) + echoSrvContainer.execServer(serverCommand) + + echoClnContainer := s.getContainerByName("client-app") + + clientCommand := "vpp_echo client" + + " socket-name " + echoClnContainer.getContainerWorkDir() + "/var/run/app_ns_sockets/2" + + " use-app-socket-api uri " + uri + s.log(clientCommand) + o := echoClnContainer.exec(clientCommand) + s.log(o) +} |