From 8f1219e27f62014db09ede9d0304e5cb797e1020 Mon Sep 17 00:00:00 2001 From: kovagoadi Date: Wed, 1 Apr 2026 12:22:38 +0200 Subject: [PATCH] Testing with real IP --- tests/e2e/test_traefik.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/e2e/test_traefik.py b/tests/e2e/test_traefik.py index 49f086b..d248752 100644 --- a/tests/e2e/test_traefik.py +++ b/tests/e2e/test_traefik.py @@ -7,8 +7,8 @@ DOMAIN = os.getenv("DOMAIN", "asdasd.kovagoadi.hu") PORT = os.getenv("PORT", "10000") HTTPS_PORT = os.getenv("HTTPS_PORT", "10001") -BASE_URL = f"http://127.0.0.1:{PORT}" -HTTPS_BASE_URL = f"https://127.0.0.1:{HTTPS_PORT}" +BASE_URL = f"http://192.168.1.85:{PORT}" +HTTPS_BASE_URL = f"https://192.168.1.85:{HTTPS_PORT}" HOST_HEADER = f"test-whoami.{DOMAIN}" @pytest.fixture(scope="session", autouse=True) @@ -122,7 +122,7 @@ def test_whoami_https_reachable(): # We use curl because requests doesn't support --resolve easily to force SNI with custom IP cmd = [ "curl", "-s", "-k", "--fail", - "--resolve", f"{HOST_HEADER}:{HTTPS_PORT}:127.0.0.1", + "--resolve", f"{HOST_HEADER}:{HTTPS_PORT}:192.168.1.85", f"https://{HOST_HEADER}:{HTTPS_PORT}" ] try: @@ -159,7 +159,7 @@ def test_unknown_host_https_passthrough(): # unknown.com should hit the catch-all SNI router cmd = [ "curl", "-s", "-k", "-i", "--fail", - "--resolve", f"tar.kovagoadi.hu:{HTTPS_PORT}:127.0.0.1", + "--resolve", f"tar.kovagoadi.hu:{HTTPS_PORT}:192.168.1.85", f"https://tar.kovagoadi.hu:{HTTPS_PORT}/login" ] try: @@ -193,7 +193,7 @@ def test_staging_https_routing(): host = "test-whoami.staging.kovagoadi.hu" cmd = [ "curl", "-s", "-k", "-i", "--fail", - "--resolve", f"{host}:{HTTPS_PORT}:127.0.0.1", + "--resolve", f"{host}:{HTTPS_PORT}:192.168.1.85", f"https://{host}:{HTTPS_PORT}" ] try: @@ -209,7 +209,7 @@ def test_dev_https_routing(): host = "test-whoami.dev.kovagoadi.hu" cmd = [ "curl", "-s", "-k", "-i", "--fail", - "--resolve", f"{host}:{HTTPS_PORT}:127.0.0.1", + "--resolve", f"{host}:{HTTPS_PORT}:192.168.1.85", f"https://{host}:{HTTPS_PORT}" ] try: