hs-test: add nginx+quic test

Type: test

Change-Id: I15e4f2fb84cb4f34b6fea95978db000854a63e78
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
This commit is contained in:
Filip Tehlar
2023-06-15 10:06:57 +02:00
committed by Florin Coras
parent fe965a3a17
commit 31eaea9eef
18 changed files with 235 additions and 5 deletions

View File

@@ -4,6 +4,8 @@ import (
"flag"
"io/ioutil"
"os"
"os/exec"
"strings"
"time"
"github.com/edwarnicke/exechelper"
@@ -162,6 +164,20 @@ func (s *HstSuite) SkipIfMultiWorker(args ...any) {
}
}
func (s *HstSuite) SkipUnlessExtendedTestsBuilt() {
imageName := "hs-test/nginx-http3"
cmd := exec.Command("docker", "images", imageName)
byteOutput, err := cmd.CombinedOutput()
if err != nil {
s.log("error while searching for docker image")
return
}
if !strings.Contains(string(byteOutput), imageName) {
s.skip("extended tests not built")
}
}
func (s *HstSuite) resetContainers() {
for _, container := range s.containers {
container.stop()