mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tests/e2e: implement EtcdProcess Etcdctl
Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
parent
26bae5efbd
commit
c37d33c571
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user