hs-test: use specific port for http3 test
[vpp.git] / extras / hs-test / http_test.go
index 4aab553..9872f8d 100644 (file)
@@ -53,13 +53,25 @@ func (s *NoTopoSuite) TestNginxHttp3() {
 
        defer func() { os.Remove(query) }()
        curlCont := s.getContainerByName("curl")
-       args := fmt.Sprintf("curl --noproxy '*' --http3-only -k https://%s:8443/%s", serverAddress, query)
+       args := fmt.Sprintf("curl --noproxy '*' --local-port 55444 --http3-only -k https://%s:8443/%s", serverAddress, query)
        curlCont.extraRunningArgs = args
        o, err := curlCont.combinedOutput()
        s.assertNil(err)
        s.assertContains(o, "<http>", "<http> not found in the result!")
 }
 
+func (s *NoTopoSuite) TestHttpStaticProm() {
+       finished := make(chan error, 1)
+       query := "stats.prom"
+       vpp := s.getContainerByName("vpp").vppInstance
+       serverAddress := s.netInterfaces[tapInterfaceName].peer.ip4AddressString()
+       s.log(vpp.vppctl("http static server uri tcp://" + serverAddress + "/80 url-handlers"))
+       s.log(vpp.vppctl("prom enable"))
+       go s.startWget(finished, serverAddress, "80", query, "")
+       err := <-finished
+       s.assertNil(err)
+}
+
 func (s *NoTopoSuite) TestNginxAsServer() {
        query := "return_ok"
        finished := make(chan error, 1)