Add E2E tests for HealthCheck

Adds e2e tests for:

- upstream-max-fails
- upstream-fail-timeout
This commit is contained in:
Fernando Diaz 2018-10-05 15:06:49 -05:00
parent be5b86fa8f
commit 527805f296
2 changed files with 116 additions and 0 deletions

View file

@ -50,6 +50,7 @@ func (f *Framework) ExecCommand(pod *v1.Pod, command string) (string, error) {
// NewIngressController deploys a new NGINX Ingress controller in a namespace
func (f *Framework) NewIngressController(namespace string) error {
// Creates an nginx deployment
cmd := exec.Command("./wait-for-nginx.sh", namespace)
out, err := cmd.CombinedOutput()
if err != nil {