tests/e2e: implement EtcdProcess Etcdctl

Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
Ivan Valdes 2024-02-05 16:58:29 -08:00
parent 26bae5efbd
commit c37d33c571
No known key found for this signature in database
GPG Key ID: 4037D37741ED0CC5

View File

@ -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