X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fhs-test%2Fhttp_test.go;h=503f42a47c7d26d3f10230483acbbe9929fa3fe1;hb=31eaea9eef0594117e83733aa01f8bbda940e4da;hp=e576e4a832d9fd365db68bec5df2f721a4bf9406;hpb=fe965a3a17fd543cb5a7caf37b25729c1683865b;p=vpp.git diff --git a/extras/hs-test/http_test.go b/extras/hs-test/http_test.go index e576e4a832d..503f42a47c7 100644 --- a/extras/hs-test/http_test.go +++ b/extras/hs-test/http_test.go @@ -40,6 +40,26 @@ func (s *VethsSuite) TestHttpCli() { s.assertContains(o, "", " not found in the result!") } +func (s *NoTopoSuite) TestNginxHttp3() { + s.SkipUnlessExtendedTestsBuilt() + + query := "index.html" + nginxCont := s.getContainerByName("nginx-http3") + s.assertNil(nginxCont.run()) + + vpp := s.getContainerByName("vpp").vppInstance + vpp.waitForApp("nginx-", 5) + serverAddress := s.netInterfaces[tapInterfaceName].peer.ip4AddressString() + + defer func() { os.Remove(query) }() + curlCont := s.getContainerByName("curl") + args := fmt.Sprintf("curl --noproxy '*' --http3-only -k https://%s:8443/%s", serverAddress, query) + curlCont.extraRunningArgs = args + o, err := curlCont.combinedOutput() + s.assertNil(err) + s.assertContains(o, "", " not found in the result!") +} + func (s *NoTopoSuite) TestNginxAsServer() { query := "return_ok" finished := make(chan error, 1)