Merge pull request #95676 from jdef/patch-1

fix "forbidden" test flakes
This commit is contained in:
Kubernetes Prow Robot 2020-10-21 13:09:03 -07:00 committed by GitHub
commit ededd08ba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -375,7 +375,7 @@ func TestSampleAPIServer(f *framework.Framework, aggrclient *aggregatorclient.Cl
if !ok {
return false, err
}
if status.Status().Code == 503 {
if status.Status().Code == 403 || status.Status().Code == 503 {
return false, nil
}
if status.Status().Code == 404 && strings.HasPrefix(err.Error(), "the server could not find the requested resource") {