( name string, image string, command *e2e.Command, readiness e2e.ReadinessProbe, httpPort int, grpcPort int, otherPorts ...int, )
| 10 | } |
| 11 | |
| 12 | func NewCortexService( |
| 13 | name string, |
| 14 | image string, |
| 15 | command *e2e.Command, |
| 16 | readiness e2e.ReadinessProbe, |
| 17 | httpPort int, |
| 18 | grpcPort int, |
| 19 | otherPorts ...int, |
| 20 | ) *CortexService { |
| 21 | return &CortexService{ |
| 22 | HTTPService: e2e.NewHTTPService(name, image, command, readiness, httpPort, append(otherPorts, grpcPort)...), |
| 23 | grpcPort: grpcPort, |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func (s *CortexService) GRPCEndpoint() string { |
| 28 | return s.Endpoint(s.grpcPort) |
no test coverage detected