ensure that we trust the same cert bundle when checking the status of the test-proxy as we do when interacting with the test-proxy
@@ -37,6 +37,13 @@ discovered_roots = []
from urllib3 import PoolManager, Retry
from urllib3.exceptions import HTTPError
+if os.getenv("REQUESTS_CA_BUNDLE"):
+ http_client = PoolManager(
+ retries=Retry(total=3, raise_on_status=False),
+ cert_reqs="CERT_REQUIRED",
+ ca_certs=os.getenv("REQUESTS_CA_BUNDLE"),
+ )
+else:
http_client = PoolManager(retries=Retry(total=1, raise_on_status=False))
