mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 15:21:13 +02:00
Fix tests
This commit is contained in:
1 parent
1490e458b6
commit
d867e1f1c1
6 files changed
+26
-26
No files matched your search
@@ -56,7 +56,7 @@ def allocate_udp_port(project_id: UUID) -> dict:
|
||||
|
||||
|
||||
@router.get("/network/interfaces")
|
||||
def network_interfaces() -> dict:
|
||||
def network_interfaces() -> List[dict]:
|
||||
"""
|
||||
List all the network interfaces available on the compute"
|
||||
"""
|
||||
|
||||
@@ -44,7 +44,7 @@ async def get_docker_images() -> List[str]:
|
||||
|
||||
|
||||
@router.get("/dynamips/images")
|
||||
async def get_dynamips_images() -> List[str]:
|
||||
async def get_dynamips_images() -> List[dict]:
|
||||
"""
|
||||
Get all Dynamips images.
|
||||
"""
|
||||
@@ -85,7 +85,7 @@ async def download_dynamips_image(filename: str) -> FileResponse:
|
||||
|
||||
|
||||
@router.get("/iou/images")
|
||||
async def get_iou_images() -> List[str]:
|
||||
async def get_iou_images() -> List[dict]:
|
||||
"""
|
||||
Get all IOU images.
|
||||
"""
|
||||
@@ -125,7 +125,7 @@ async def download_iou_image(filename: str) -> FileResponse:
|
||||
|
||||
|
||||
@router.get("/qemu/images")
|
||||
async def get_qemu_images() -> List[str]:
|
||||
async def get_qemu_images() -> List[dict]:
|
||||
|
||||
qemu_manager = Qemu.instance()
|
||||
return await qemu_manager.list_images()
|
||||
|
||||
Reference in new issue
Block a user