testing: Increase HTTP request timeout to 60 seconds

We have been seeing frequent intermittent failures in the
barbican-tox-functional CI job due to timeouts waiting for HTTP
requests to respond, for example:

  requests.exceptions.ReadTimeout:
    HTTPConnectionPool(host='213.32.72.107', port=80): Read timed out.
    (read timeout=10)

This occurred from a request to Barbican API to delete a secret.

The timeout is defaulted to 10 seconds, which does not seem to be long
enough for the current CI node environment. This increases the timeout
to 60 seconds based on the default HTTP request timeout in Tempest [1]
in an effort to improve stability of the barbican-tox-functional job.

[1] fc2868e475/tempest/config.py (L229-L232)

Change-Id: I2645073ca1fd5085fd165dc1dba4766d77a692a3
This commit is contained in:
melanie witt
2025-06-12 10:10:26 -07:00
parent d98891faee
commit 9ff28ac79a

View File

@@ -57,7 +57,7 @@ auditor_b_password=barbican
#verify_ssl=True
# use this to increase the timeout (in seconds) when debugging API calls
#timeout=10
timeout=60
# use this to run the functional tests against a
# different barbican server than the one that is