File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
airbyte-ci/connectors/live-tests/src/live_tests/commons Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -130,13 +130,15 @@ async def bind_container(self, container: dagger.Container) -> dagger.Container:
130
130
python_version_output = (await container .with_exec (["python" , "--version" ]).stdout ()).strip ()
131
131
python_version = python_version_output .split (" " )[- 1 ]
132
132
python_version_minor_only = "." .join (python_version .split ("." )[:- 1 ])
133
- requests_cert_path = f"/usr/local/lib/python{ python_version_minor_only } /site-packages/certifi/cacert.pem"
133
+ # requests_cert_path = f"/usr/local/lib/python{python_version_minor_only}/site-packages/certifi/cacert.pem"
134
+ mitm_cert_path = "/etc/ssl/certs/mitmproxy-ca.pem"
134
135
current_user = (await container .with_exec (["whoami" ]).stdout ()).strip ()
135
136
try :
136
137
return await (
137
138
container .with_user ("root" )
138
139
# Overwrite the requests cert file with the mitmproxy self-signed certificate
139
- .with_file (requests_cert_path , pem , owner = current_user )
140
+ .with_file (mitm_cert_path , pem , owner = current_user )
141
+ .with_env_variable ("REQUESTS_CA_BUNDLE" , mitm_cert_path )
140
142
.with_env_variable ("http_proxy" , f"{ self .hostname } :{ self .PROXY_PORT } " )
141
143
.with_env_variable ("https_proxy" , f"{ self .hostname } :{ self .PROXY_PORT } " )
142
144
.with_user (current_user )
You can’t perform that action at this time.
0 commit comments