From 63e6228a0b8c3bb3a5b177a2ee817bfa98e199b6 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Tue, 17 May 2016 12:47:21 -0700 Subject: [PATCH] e2e: fix typo(isClientAuthTLS to isClientAutoTLS) --- e2e/ctl_v3_test.go | 2 +- e2e/etcd_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/ctl_v3_test.go b/e2e/ctl_v3_test.go index 274075bdb..aa944e0fa 100644 --- a/e2e/ctl_v3_test.go +++ b/e2e/ctl_v3_test.go @@ -140,7 +140,7 @@ func (cx *ctlCtx) PrefixArgs() []string { } cmdArgs := []string{"../bin/etcdctl", "--endpoints", endpoints, "--dial-timeout", cx.dialTimeout.String()} if cx.epc.cfg.clientTLS == clientTLS { - if cx.epc.cfg.isClientAuthTLS { + if cx.epc.cfg.isClientAutoTLS { cmdArgs = append(cmdArgs, "--insecure-transport=false", "--insecure-skip-tls-verify") } else { cmdArgs = append(cmdArgs, "--cacert", caPath, "--cert", certPath, "--key", privateKeyPath) diff --git a/e2e/etcd_test.go b/e2e/etcd_test.go index 06ce58043..283f8ce28 100644 --- a/e2e/etcd_test.go +++ b/e2e/etcd_test.go @@ -74,7 +74,7 @@ var ( configClientAutoTLS = etcdProcessClusterConfig{ clusterSize: 1, proxySize: 0, - isClientAuthTLS: true, + isClientAutoTLS: true, clientTLS: clientTLS, initialToken: "new", } @@ -138,7 +138,7 @@ type etcdProcessClusterConfig struct { clientTLS clientConnType isPeerTLS bool isPeerAutoTLS bool - isClientAuthTLS bool + isClientAutoTLS bool initialToken string quotaBackendBytes int64 } @@ -296,7 +296,7 @@ func (cfg *etcdProcessClusterConfig) etcdProcessConfigs() []*etcdProcessConfig { func (cfg *etcdProcessClusterConfig) tlsArgs() (args []string) { if cfg.clientTLS != clientNonTLS { - if cfg.isClientAuthTLS { + if cfg.isClientAutoTLS { args = append(args, "--auto-tls=true") } else { tlsClientArgs := []string{