
Type: test Change-Id: I09df597ccb8a3c4af47b8a36010afb81df533236 Signed-off-by: adrianvillin <avillin@cisco.com>
37 lines
1.0 KiB
Go
37 lines
1.0 KiB
Go
package main
|
|
|
|
func (s *VethsSuite) TestVppEchoQuic() {
|
|
s.testVppEcho("quic")
|
|
}
|
|
|
|
// udp echo currently broken in vpp, skipping
|
|
func (s *VethsSuite) SkipTestVppEchoUdp() {
|
|
s.testVppEcho("udp")
|
|
}
|
|
|
|
func (s *VethsSuite) TestVppEchoTcp() {
|
|
s.testVppEcho("tcp")
|
|
}
|
|
|
|
func (s *VethsSuite) testVppEcho(proto string) {
|
|
serverVethAddress := s.netInterfaces[serverInterfaceName].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/default" +
|
|
" 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/default" +
|
|
" use-app-socket-api uri " + uri
|
|
s.log(clientCommand)
|
|
o := echoClnContainer.exec(clientCommand)
|
|
s.log(o)
|
|
}
|