mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-02-08 01:03:48 +02:00
Remove debug message
This commit is contained in:
parent
eca502c49c
commit
a792792128
@ -52,7 +52,6 @@ async def test_controller_endpoints_require_authentication(app: FastAPI, unautho
|
|||||||
if isinstance(route, APIRoute):
|
if isinstance(route, APIRoute):
|
||||||
for method in list(route.methods):
|
for method in list(route.methods):
|
||||||
if (route.path, method) not in ALLOWED_CONTROLLER_ENDPOINTS:
|
if (route.path, method) not in ALLOWED_CONTROLLER_ENDPOINTS:
|
||||||
print(f"Testing {route.path} {method}")
|
|
||||||
response = await getattr(unauthorized_client, method.lower())(route.path)
|
response = await getattr(unauthorized_client, method.lower())(route.path)
|
||||||
assert response.status_code == status.HTTP_401_UNAUTHORIZED
|
assert response.status_code == status.HTTP_401_UNAUTHORIZED
|
||||||
elif isinstance(route, APIWebSocketRoute):
|
elif isinstance(route, APIWebSocketRoute):
|
||||||
|
Loading…
Reference in New Issue
Block a user