vcl: add http support to vcl_test_protos
Type: improvement Change-Id: Ibb493f1d7713d0e10b8bd1d5ff17b89967b53b8a Signed-off-by: Aritra Basu <aritrbas@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
0acb398d6d
commit
70d2a08e7e
@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user