Browse Source

e2e: drop "ca-file" flags

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
fa5f768236
2 changed files with 4 additions and 4 deletions
  1. 2 2
      e2e/cluster_proxy_test.go
  2. 2 2
      e2e/cluster_test.go

+ 2 - 2
e2e/cluster_proxy_test.go

@@ -250,12 +250,12 @@ func newProxyV3Proc(cfg *etcdServerProcessConfig) *proxyV3Proc {
 		case "--key-file":
 		case "--key-file":
 			tlsArgs = append(tlsArgs, "--key", cfg.tlsArgs[i+1], "--key-file", cfg.tlsArgs[i+1])
 			tlsArgs = append(tlsArgs, "--key", cfg.tlsArgs[i+1], "--key-file", cfg.tlsArgs[i+1])
 			i++
 			i++
-		case "--ca-file":
+		case "--trusted-ca-file":
 			tlsArgs = append(tlsArgs, "--cacert", cfg.tlsArgs[i+1], "--trusted-ca-file", cfg.tlsArgs[i+1])
 			tlsArgs = append(tlsArgs, "--cacert", cfg.tlsArgs[i+1], "--trusted-ca-file", cfg.tlsArgs[i+1])
 			i++
 			i++
 		case "--auto-tls":
 		case "--auto-tls":
 			tlsArgs = append(tlsArgs, "--auto-tls", "--insecure-skip-tls-verify")
 			tlsArgs = append(tlsArgs, "--auto-tls", "--insecure-skip-tls-verify")
-		case "--peer-ca-file", "--peer-cert-file", "--peer-key-file":
+		case "--peer-trusted-ca-file", "--peer-cert-file", "--peer-key-file":
 			i++ // skip arg
 			i++ // skip arg
 		case "--client-cert-auth", "--peer-auto-tls":
 		case "--client-cert-auth", "--peer-auto-tls":
 		default:
 		default:

+ 2 - 2
e2e/cluster_test.go

@@ -280,7 +280,7 @@ func (cfg *etcdProcessClusterConfig) tlsArgs() (args []string) {
 			tlsClientArgs := []string{
 			tlsClientArgs := []string{
 				"--cert-file", certPath,
 				"--cert-file", certPath,
 				"--key-file", privateKeyPath,
 				"--key-file", privateKeyPath,
-				"--ca-file", caPath,
+				"--trusted-ca-file", caPath,
 			}
 			}
 			args = append(args, tlsClientArgs...)
 			args = append(args, tlsClientArgs...)
 
 
@@ -297,7 +297,7 @@ func (cfg *etcdProcessClusterConfig) tlsArgs() (args []string) {
 			tlsPeerArgs := []string{
 			tlsPeerArgs := []string{
 				"--peer-cert-file", certPath,
 				"--peer-cert-file", certPath,
 				"--peer-key-file", privateKeyPath,
 				"--peer-key-file", privateKeyPath,
-				"--peer-ca-file", caPath,
+				"--peer-trusted-ca-file", caPath,
 			}
 			}
 			args = append(args, tlsPeerArgs...)
 			args = append(args, tlsPeerArgs...)
 		}
 		}