test: mirror runtime trust environment
This commit is contained in:
parent
25c2682476
commit
1b21139d4e
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue