summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/vcl_test.go
diff options
context:
space:
mode:
authorAritra Basu <aritrbas@cisco.com>2024-08-28 14:02:34 -0700
committerFlorin Coras <florin.coras@gmail.com>2024-09-17 15:59:00 +0000
commit70d2a08e7efa0ecb255f2174e6a57b6511016059 (patch)
tree528cfdba2d063965ff33081e40d3a0e32ddf6a35 /extras/hs-test/vcl_test.go
parent0acb398d6d13b03514bcda72a7b52ece28932b1f (diff)
vcl: add http support to vcl_test_protos
Type: improvement Change-Id: Ibb493f1d7713d0e10b8bd1d5ff17b89967b53b8a Signed-off-by: Aritra Basu <aritrbas@cisco.com>
Diffstat (limited to 'extras/hs-test/vcl_test.go')
-rw-r--r--extras/hs-test/vcl_test.go11
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")
}