diff options
Diffstat (limited to 'extras/hs-test/vcl_test.go')
-rw-r--r-- | extras/hs-test/vcl_test.go | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/extras/hs-test/vcl_test.go b/extras/hs-test/vcl_test.go index 3b413b26bed..81da0c533b9 100644 --- a/extras/hs-test/vcl_test.go +++ b/extras/hs-test/vcl_test.go @@ -1,14 +1,15 @@ package main import ( - . "fd.io/hs-test/infra" "fmt" "time" + + . "fd.io/hs-test/infra" ) func init() { RegisterVethTests(XEchoVclClientUdpTest, XEchoVclClientTcpTest, XEchoVclServerUdpTest, - XEchoVclServerTcpTest, VclEchoTcpTest, VclEchoUdpTest, VclRetryAttachTest) + XEchoVclServerTcpTest, VclEchoTcpTest, VclEchoUdpTest, VclHttpPostTest, VclRetryAttachTest) } func getVclConfig(c *Container, ns_id_optional ...string) string { @@ -89,7 +90,7 @@ func testVclEcho(s *VethsSuite, proto string) { srvAppCont.CreateFile("/vcl.conf", getVclConfig(srvVppCont)) srvAppCont.AddEnvVar("VCL_CONFIG", "/vcl.conf") - srvAppCont.ExecServer("vcl_test_server " + port) + srvAppCont.ExecServer("vcl_test_server -p " + proto + " " + port) serverVeth := s.GetInterfaceByName(ServerInterfaceName) serverVethAddress := serverVeth.Ip4AddressString() @@ -111,6 +112,10 @@ func VclEchoUdpTest(s *VethsSuite) { testVclEcho(s, "udp") } +func VclHttpPostTest(s *VethsSuite) { + testVclEcho(s, "http") +} + func VclRetryAttachTest(s *VethsSuite) { testRetryAttach(s, "tcp") } |