()
| 253 | } |
| 254 | |
| 255 | func (s *ConcreteService) Ready() error { |
| 256 | if !s.isExpectedRunning() { |
| 257 | return fmt.Errorf("service %s is stopped", s.Name()) |
| 258 | } |
| 259 | |
| 260 | // Ensure the service has a readiness probe configure. |
| 261 | if s.readiness == nil { |
| 262 | return nil |
| 263 | } |
| 264 | |
| 265 | return s.readiness.Ready(s) |
| 266 | } |
| 267 | |
| 268 | func (s *ConcreteService) containerName() string { |
| 269 | return NetworkContainerHost(s.usedNetworkName, s.name) |
no test coverage detected