tests: Allow specifying http version in curl
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
This commit is contained in:
parent
4e9911ec26
commit
2f4d75feb1
@ -130,6 +130,7 @@ type cURLReq struct {
|
|||||||
metricsURLScheme string
|
metricsURLScheme string
|
||||||
|
|
||||||
ciphers string
|
ciphers string
|
||||||
|
httpVersion string
|
||||||
}
|
}
|
||||||
|
|
||||||
// cURLPrefixArgsCluster builds the beginning of a curl command for a given key
|
// 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 (
|
var (
|
||||||
cmdArgs = []string{"curl"}
|
cmdArgs = []string{"curl"}
|
||||||
)
|
)
|
||||||
|
if req.httpVersion != "" {
|
||||||
|
cmdArgs = append(cmdArgs, "--http"+req.httpVersion)
|
||||||
|
}
|
||||||
if req.metricsURLScheme != "https" {
|
if req.metricsURLScheme != "https" {
|
||||||
if req.isTLS {
|
if req.isTLS {
|
||||||
if connType != clientTLSAndNonTLS {
|
if connType != clientTLSAndNonTLS {
|
||||||
|
Loading…
Reference in New Issue
Block a user