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 #17075.

Backported commit 65add8c

Signed-off-by: Ivan Valdes <[email protected]>
  • Loading branch information
ivanvc committed Feb 18, 2024
1 parent 1115eb1 commit 8c4905e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/framework/e2e/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,15 @@ 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 8c4905e

Please sign in to comment.