mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tests/e2e: backport e2e cluster setup
Finish backporting the remaining functions from the original backport from PR #17075. Backported commit 65add8cec44b32682e59d2596a592038bac90dcd Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
parent
1115eb1590
commit
c486b58947
@ -491,6 +491,15 @@ func (epc *EtcdProcessCluster) EndpointsV3() []string {
|
|||||||
return epc.Endpoints(func(ep EtcdProcess) []string { return ep.EndpointsV3() })
|
return epc.Endpoints(func(ep EtcdProcess) []string { return ep.EndpointsV3() })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (epc *EtcdProcessCluster) EndpointsGRPC() []string {
|
||||||
|
return epc.Endpoints(func(ep EtcdProcess) []string { return ep.EndpointsGRPC() })
|
||||||
|
}
|
||||||
|
|
||||||
|
func (epc *EtcdProcessCluster) EndpointsHTTP() []string {
|
||||||
|
return epc.Endpoints(func(ep EtcdProcess) []string { return ep.EndpointsHTTP() })
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
func (epc *EtcdProcessCluster) Endpoints(f func(ep EtcdProcess) []string) (ret []string) {
|
func (epc *EtcdProcessCluster) Endpoints(f func(ep EtcdProcess) []string) (ret []string) {
|
||||||
for _, p := range epc.Procs {
|
for _, p := range epc.Procs {
|
||||||
ret = append(ret, f(p)...)
|
ret = append(ret, f(p)...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user