diff --git a/tests/e2e/test_traefik.py b/tests/e2e/test_traefik.py index 879c97b..d677f97 100644 --- a/tests/e2e/test_traefik.py +++ b/tests/e2e/test_traefik.py @@ -179,14 +179,14 @@ def test_staging_http_routing(): except requests.exceptions.RequestException as e: pytest.fail(f"Failed to connect to {BASE_URL} with host {host}: {e}") -def test_dev_http_routing(): - """Verify HTTP requests to *.dev.kovagoadi.hu are routed to the mock.""" - host = "test-whoami.dev.kovagoadi.hu" - try: - response = requests.get(BASE_URL, headers={"Host": host}, timeout=5) - assert response.status_code == 200 - except requests.exceptions.RequestException as e: - pytest.fail(f"Failed to connect to {BASE_URL} with host {host}: {e}") +# def test_dev_http_routing(): +# """Verify HTTP requests to *.dev.kovagoadi.hu are routed to the mock.""" +# host = "test-whoami.dev.kovagoadi.hu" +# try: +# response = requests.get(BASE_URL, headers={"Host": host}, timeout=5) +# assert response.status_code == 200 +# except requests.exceptions.RequestException as e: +# pytest.fail(f"Failed to connect to {BASE_URL} with host {host}: {e}") def test_staging_https_routing(): """Verify HTTPS requests to *.staging.kovagoadi.hu are routed to the mock.""" @@ -204,18 +204,18 @@ def test_staging_https_routing(): except subprocess.TimeoutExpired: pytest.fail("Curl timed out") -def test_dev_https_routing(): - """Verify HTTPS requests to *.dev.kovagoadi.hu are routed to the mock.""" - host = "test-whoami.dev.kovagoadi.hu" - cmd = [ - "curl", "-s", "-k", "-i", "--fail", - "--resolve", f"{host}:{HTTPS_PORT}:192.168.1.85", - f"https://{host}:{HTTPS_PORT}" - ] - try: - result = subprocess.run(cmd, capture_output=True, text=True, timeout=10, check=True) - assert result.returncode == 0 - except subprocess.CalledProcessError as e: - pytest.fail(f"Curl failed with exit code {e.returncode}: {e.stderr}") - except subprocess.TimeoutExpired: - pytest.fail("Curl timed out") +# def test_dev_https_routing(): +# """Verify HTTPS requests to *.dev.kovagoadi.hu are routed to the mock.""" +# host = "test-whoami.dev.kovagoadi.hu" +# cmd = [ +# "curl", "-s", "-k", "-i", "--fail", +# "--resolve", f"{host}:{HTTPS_PORT}:192.168.1.85", +# f"https://{host}:{HTTPS_PORT}" +# ] +# try: +# result = subprocess.run(cmd, capture_output=True, text=True, timeout=10, check=True) +# assert result.returncode == 0 +# except subprocess.CalledProcessError as e: +# pytest.fail(f"Curl failed with exit code {e.returncode}: {e.stderr}") +# except subprocess.TimeoutExpired: +# pytest.fail("Curl timed out")