diff --git a/tests/framework/e2e/etcd_process.go b/tests/framework/e2e/etcd_process.go index c3eaa188d..a741998c5 100644 --- a/tests/framework/e2e/etcd_process.go +++ b/tests/framework/e2e/etcd_process.go @@ -58,6 +58,8 @@ type EtcdProcess interface { PeerProxy() proxy.Server Failpoints() *BinaryFailpoints IsRunning() bool + + Etcdctl(connType ClientConnType, isAutoTLS bool, v2 bool) *Etcdctl } type LogsExpect interface { @@ -249,6 +251,10 @@ func (ep *EtcdServerProcess) IsRunning() bool { return false } +func (ep *EtcdServerProcess) Etcdctl(connType ClientConnType, isAutoTLS, v2 bool) *Etcdctl { + return NewEtcdctl(ep.EndpointsV3(), connType, isAutoTLS, v2) +} + type BinaryFailpoints struct { member EtcdProcess availableCache map[string]string