Since time to time TestRail goes down (service
unavailable error is recieved on all requests),
added 503 code to known errors and 10 retries w/
60 seconds sleep for such cases.
Default sleep value was increased from 5 to 60
seconds, because 429 error is always returned
w/ 'retry-after' header, so it will be used
for handling 503 error only.
Reviewed: https:/ /review. openstack. org/325241 /git.openstack. org/cgit/ openstack/ fuel-qa/ commit/ ?id=b5333c09ab7 f7811200360f0a3 14f47f14f0f3bf
Committed: https:/
Submitter: Jenkins
Branch: master
commit b5333c09ab7f781 1200360f0a314f4 7f14f0f3bf
Author: Artem Panchenko <email address hidden>
Date: Fri Jun 3 14:44:27 2016 +0300
[TestRail] Wait up to 10 min for API is up
Since time to time TestRail goes down (service
unavailable error is recieved on all requests),
added 503 code to known errors and 10 retries w/
60 seconds sleep for such cases.
Default sleep value was increased from 5 to 60
seconds, because 429 error is always returned
w/ 'retry-after' header, so it will be used
for handling 503 error only.
Change-Id: I87cf4b422d9922 67d39623d552de1 9664f000af9
Closes-bug: #1588793