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 #15620. Backport of commit 65add8cec44b32682e59d2596a592038bac90dcd. Co-authored-by: Marek Siarkowicz <siarkowicz@google.com> Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
parent
fd228f2c27
commit
9a3450ae74
@ -438,6 +438,14 @@ func (epc *etcdProcessCluster) EndpointsV3() []string {
|
||||
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) {
|
||||
for _, p := range epc.procs {
|
||||
ret = append(ret, f(p)...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user