3 func (s *NsSuite) TestHttpTps() {
5 finished := make(chan error, 1)
6 server_ip := "10.0.0.2"
9 container := s.getContainerByName("vpp")
11 t.Log("starting vpp..")
13 // start & configure vpp in the container
14 _, err := container.execAction("ConfigureHttpTps")
17 go startWget(finished, server_ip, port, "client")
23 func (s *VethsSuite) TestHttpCli() {
26 serverContainer := s.getContainerByName("server-vpp")
27 clientContainer := s.getContainerByName("client-vpp")
29 _, err := serverContainer.execAction("Configure2Veths srv")
32 _, err = clientContainer.execAction("Configure2Veths cln")
35 t.Log("configured IPs...")
37 _, err = serverContainer.execAction("RunHttpCliSrv")
40 t.Log("configured http server")
42 o, err := clientContainer.execAction("RunHttpCliCln /show/version")
45 s.assertContains(o, "<html>", "<html> not found in the result!")