tests: Allow specifying http version in curl

Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
This commit is contained in:
Marek Siarkowicz 2023-03-14 15:43:59 +01:00
parent 4e9911ec26
commit 2f4d75feb1

View File

@ -130,6 +130,7 @@ type cURLReq struct {
metricsURLScheme string
ciphers string
httpVersion string
}
// cURLPrefixArgsCluster builds the beginning of a curl command for a given key
@ -147,6 +148,9 @@ func cURLPrefixArgs(clientURL string, connType clientConnType, CN bool, method s
var (
cmdArgs = []string{"curl"}
)
if req.httpVersion != "" {
cmdArgs = append(cmdArgs, "--http"+req.httpVersion)
}
if req.metricsURLScheme != "https" {
if req.isTLS {
if connType != clientTLSAndNonTLS {