mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +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()
|
||||
|
||||
@@ -74,7 +74,7 @@ def get_appliance(appliance_id: UUID) -> schemas.Appliance:
|
||||
|
||||
|
||||
@router.post("/{appliance_id}/version", status_code=status.HTTP_201_CREATED)
|
||||
def add_appliance_version(appliance_id: UUID, appliance_version: schemas.ApplianceVersion) -> schemas.Appliance:
|
||||
def add_appliance_version(appliance_id: UUID, appliance_version: schemas.ApplianceVersion) -> dict:
|
||||
"""
|
||||
Add a version to an appliance
|
||||
"""
|
||||
|
||||
@@ -284,7 +284,7 @@ async def get_node_links(node: Node = Depends(dep_node)) -> List[schemas.Link]:
|
||||
|
||||
|
||||
@router.get("/{node_id}/dynamips/auto_idlepc")
|
||||
async def auto_idlepc(node: Node = Depends(dep_node)) -> str:
|
||||
async def auto_idlepc(node: Node = Depends(dep_node)) -> dict:
|
||||
"""
|
||||
Compute an Idle-PC value for a Dynamips node
|
||||
"""
|
||||
|
||||
@@ -40,7 +40,7 @@ router = APIRouter()
|
||||
|
||||
|
||||
@router.get("")
|
||||
def get_symbols() -> List[str]:
|
||||
def get_symbols() -> List[dict]:
|
||||
|
||||
controller = Controller.instance()
|
||||
return controller.symbols.list()
|
||||
|
||||
Reference in new issue
Block a user