File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -615,6 +615,10 @@ class ProxySessionManager(SessionManager):
615615 def make_session (self , * , url : str | None = None ) -> Session :
616616 session = requests .Session ()
617617 self ._mount_adapters (session )
618+
619+ # TODO: adding this makes all proxies "not see the requests" - but they actually go since we can see MATCHED-stub id
620+ # session.trust_env = False
621+
618622 proxies = (
619623 {
620624 "no_proxy" : self ._cfg .no_proxy ,
Original file line number Diff line number Diff line change @@ -807,11 +807,13 @@ def test_proxy_env_vars_take_precedence_over_connection_params(
807807 clear_proxy_env_vars () # Clear any existing ones first
808808
809809 env_proxy_url = f"http://{ proxy_from_env_vars .wiremock_host } :{ proxy_from_env_vars .wiremock_http_port } "
810+ # TODO: commenting out this makes conn_params behave normally and be used
810811 monkeypatch .setenv ("HTTP_PROXY" , env_proxy_url )
811812 monkeypatch .setenv ("HTTPS_PROXY" , env_proxy_url )
812813
813814 # Set connection params to point to proxy1 (should take precedence)
814815 connect_kwargs = _base_connect_kwargs (target_wm )
816+ # TODO: commenting out this: connect_kwargs.update(... doesn't seem to change a thing - both proxies and the target still see all requests
815817 connect_kwargs .update (
816818 {
817819 "proxy_host" : proxy_from_conn_params .wiremock_host ,
You can’t perform that action at this time.
0 commit comments