[package testing] Stabilize status api test (#129228) (#129247)

There appears to be a brief moment after kibana starts where we are
listening for http connections but immediately closing requests to the
status API.  The return code by ansible here is -1, so this adds that as
a valid response to retry.

(cherry picked from commit f2654802a5)

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
This commit is contained in:
Kibana Machine 2022-04-01 16:17:31 -04:00 committed by GitHub
parent a82fbbd6ba
commit 313e1b55a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,6 @@
status_code: [200, 401]
timeout: 120
register: result
until: result.status != 503
until: result.status not in [503, -1]
retries: 3
delay: 30