Skip to content

Commit

Permalink
Fix test regex for proxy error message (#2307)
Browse files Browse the repository at this point in the history
The test was failing due to an incorrect regex
pattern in the expected error message.
The regex has been updated to match the correct
proxy-related error message format.
This ensures the test properly validates conflicting
proxy settings and prevents false failures.

Signed-off-by: Shahaf Bahar <[email protected]>
  • Loading branch information
sbahar619 authored Feb 2, 2025
1 parent 9966a42 commit b4c8748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,6 @@ def test_proxy_conflict_raises_value_error(self, monkeypatch):
with pytest.raises(
ValueError,
match="Conflicting proxy settings: client_configuration.proxy=http://not-env-proxy.com, "
"but the environment variable 'OPENSHIFT_PYTHON_WRAPPER_CLIENT_USE_PROXY' defines proxy as http://env-proxy.com.",
"but the environment variable 'HTTPS_PROXY/HTTP_PROXY' defines proxy as http://env-proxy.com.",
):
get_client(client_configuration=client_configuration)

0 comments on commit b4c8748

Please sign in to comment.