mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tests: Allow specifying http version in curl
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
This commit is contained in:
parent
cee9d4c0f1
commit
063d3ceed6
@ -134,7 +134,8 @@ type cURLReq struct {
|
||||
|
||||
metricsURLScheme string
|
||||
|
||||
ciphers string
|
||||
ciphers string
|
||||
httpVersion string
|
||||
}
|
||||
|
||||
// cURLPrefixArgsCluster builds the beginning of a curl command for a given key
|
||||
@ -152,6 +153,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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user