Skip to content

Commit

Permalink
[TEST] Get more error's info
Browse files Browse the repository at this point in the history
  • Loading branch information
josep-tecnativa committed Jun 13, 2024
1 parent e2f4efd commit f61ee47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_routing.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import time
import uuid
from pathlib import Path
Expand Down Expand Up @@ -124,6 +125,11 @@ def test_multiple_domains(
# alt0 and alt1, no TLS
for alt_num in range(2):
response = requests.get(f"http://alt{alt_num}.main0.{base_path}")
print(
f"main0.{base_path} Response Status: {response.status_code}, URL: {response.url}"
)
print(f"Response Headers: {response.headers}")
sys.stdout.flush()
assert response.ok
assert response.url == f"http://main0.{base_path}"
assert response.history[0].status_code == 302
Expand Down

0 comments on commit f61ee47

Please sign in to comment.