Skip to content

Commit

Permalink
tests/e2e: backport e2e cluster setup
Browse files Browse the repository at this point in the history
Finish backporting the remaining functions from the original backport
from PR etcd-io#15620.

Backport of commit 65add8c

Signed-off-by: Ivan Valdes <[email protected]>
  • Loading branch information
ivanvc committed Feb 19, 2024
1 parent 2662038 commit 2d7ca08
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/e2e/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)...)
Expand Down

0 comments on commit 2d7ca08

Please sign in to comment.