Skip to content

Commit 585c4e5

Browse files
committed
Use https in egress test URL to satisfy Sonar S5332 hotspot
1 parent ee79f63 commit 585c4e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/unit_test/headless/test_egress_guard_batch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ def test_comma_string_is_accepted():
5454
def test_http_client_enforces_policy():
5555
from je_auto_control.utils.http_client.http_client import http_request
5656
set_egress_policy(allow=["allowed.test"])
57-
# blocked before any connection is attempted
57+
# blocked before any connection is attempted (scheme is irrelevant here)
5858
with pytest.raises(EgressBlocked):
59-
http_request("http://blocked.test/")
59+
http_request("https://blocked.test/")
6060

6161

6262
# --- wiring ---------------------------------------------------------------

0 commit comments

Comments
 (0)