From c9f498fe17b63916ad4ea1477046d72b640c9306 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Mon, 9 Dec 2024 09:40:59 +0000 Subject: [PATCH] Specify protocol when using host.docker.internal proxy --- tests/base-notebook/test_healthcheck.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/base-notebook/test_healthcheck.py b/tests/base-notebook/test_healthcheck.py index d5874c9a3c..36a8a4dcc3 100644 --- a/tests/base-notebook/test_healthcheck.py +++ b/tests/base-notebook/test_healthcheck.py @@ -82,7 +82,10 @@ def test_healthy( "env,cmd,user", [ ( - ["HTTPS_PROXY=host.docker.internal", "HTTP_PROXY=host.docker.internal"], + [ + "HTTPS_PROXY=https://host.docker.internal", + "HTTP_PROXY=http://host.docker.internal", + ], None, None, ), @@ -91,8 +94,8 @@ def test_healthy( "NB_USER=testuser", "CHOWN_HOME=1", "JUPYTER_PORT=8123", - "HTTPS_PROXY=host.docker.internal", - "HTTP_PROXY=host.docker.internal", + "HTTPS_PROXY=https://host.docker.internal", + "HTTP_PROXY=http://host.docker.internal", ], ["start-notebook.py", "--ServerApp.base_url=/test"], "root",