3 func (s *NsSuite) TestHttpTps() {
4 finished := make(chan error, 1)
5 server_ip := "10.0.0.2"
8 container := s.getContainerByName("vpp")
10 s.log("starting vpp..")
12 // start & configure vpp in the container
13 _, err := container.execAction("ConfigureHttpTps")
16 go startWget(finished, server_ip, port, "client")
22 func (s *VethsSuite) TestHttpCli() {
23 serverContainer := s.getContainerByName("server-vpp")
24 clientContainer := s.getContainerByName("client-vpp")
26 _, err := serverContainer.execAction("Configure2Veths srv")
29 _, err = clientContainer.execAction("Configure2Veths cln")
32 s.log("configured IPs...")
34 _, err = serverContainer.execAction("RunHttpCliSrv")
37 s.log("configured http server")
39 o, err := clientContainer.execAction("RunHttpCliCln /show/version")
42 s.assertContains(o, "<html>", "<html> not found in the result!")