Be less picky about what error code is returned here.

The thing we're waiting for is mostly that DNS is resolving, the ELB is listening, and connections are making it to the proxy.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
Matt Moyer 2021-03-05 08:39:48 -06:00
parent ec133b9743
commit c3b7d21037
No known key found for this signature in database
GPG Key ID: EAE88AD172C5AE2D

View File

@ -303,8 +303,8 @@ func TestE2EFullIntegration(t *testing.T) {
return false return false
} }
t.Logf("got %d response from API server at %q", resp.StatusCode, restConfig.Host) t.Logf("got %d response from API server at %q", resp.StatusCode, restConfig.Host)
return resp.StatusCode == 200 || resp.StatusCode == 403 return resp.StatusCode < 500
}, 5*time.Minute, time.Second) }, 5*time.Minute, 2*time.Second)
// Expect the CLI to output a list of namespaces in JSON format. // Expect the CLI to output a list of namespaces in JSON format.
t.Logf("waiting for kubectl to output namespace list JSON") t.Logf("waiting for kubectl to output namespace list JSON")