test: mirror runtime trust environment

This commit is contained in:
twentyOne2x 2026-07-15 07:35:59 +02:00
parent 25c2682476
commit 1b21139d4e

View file

@ -331,6 +331,10 @@ def _configure_runtime_environment(monkeypatch: pytest.MonkeyPatch) -> None:
"SSL_CERT_DIR",
"SSL_CERT_FILE",
"SSLKEYLOGFILE",
"OPENSSL_CONF",
"OPENSSL_ENGINES",
"OPENSSL_MODULES",
"GCONV_PATH",
}
):
monkeypatch.delenv(key, raising=False)
@ -349,6 +353,8 @@ def test_runtime_environment_fixture_scrubs_github_runner_inheritance(
monkeypatch.setenv("HTTP_PROXY", "http://runner-proxy.invalid:8080")
monkeypatch.setenv("BASH_FUNC_runner%%", "() { :; }")
monkeypatch.setenv("SSL_CERT_FILE", "/tmp/runner-ca.pem")
monkeypatch.setenv("OPENSSL_CONF", "/tmp/runner-openssl.cnf")
monkeypatch.setenv("GCONV_PATH", "/tmp/runner-gconv")
_configure_runtime_environment(monkeypatch)