mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Deactivate 'use default IOU values' by default and update RAM/NVRAM values
This commit is contained in:
5 files changed
+14
-14
No files matched your search
@@ -262,7 +262,7 @@ def test_create_netmap_config(vm):
|
||||
|
||||
async def test_build_command(vm):
|
||||
|
||||
assert await vm._build_command() == [vm.path, str(vm.application_id)]
|
||||
assert await vm._build_command() == [vm.path, "-n", "256", "-m", "1024", str(vm.application_id)]
|
||||
|
||||
|
||||
def test_get_startup_config(vm):
|
||||
|
||||
@@ -69,8 +69,8 @@ async def test_iou_create(compute_api, compute_project, base_params):
|
||||
assert response.json["project_id"] == compute_project.id
|
||||
assert response.json["serial_adapters"] == 2
|
||||
assert response.json["ethernet_adapters"] == 2
|
||||
assert response.json["ram"] == 256
|
||||
assert response.json["nvram"] == 128
|
||||
assert response.json["ram"] == 1024
|
||||
assert response.json["nvram"] == 256
|
||||
assert response.json["l1_keepalives"] is False
|
||||
|
||||
|
||||
@@ -130,8 +130,8 @@ async def test_iou_get(compute_api, compute_project, vm):
|
||||
assert response.json["project_id"] == compute_project.id
|
||||
assert response.json["serial_adapters"] == 2
|
||||
assert response.json["ethernet_adapters"] == 2
|
||||
assert response.json["ram"] == 256
|
||||
assert response.json["nvram"] == 128
|
||||
assert response.json["ram"] == 1024
|
||||
assert response.json["nvram"] == 256
|
||||
assert response.json["l1_keepalives"] is False
|
||||
|
||||
|
||||
|
||||
@@ -592,14 +592,14 @@ async def test_iou_template_create(controller_api):
|
||||
"default_name_format": "IOU{0}",
|
||||
"ethernet_adapters": 2,
|
||||
"name": "IOU template",
|
||||
"nvram": 128,
|
||||
"nvram": 256,
|
||||
"path": "/path/to/i86bi_linux-ipbase-ms-12.4.bin",
|
||||
"private_config": "",
|
||||
"ram": 256,
|
||||
"ram": 1024,
|
||||
"serial_adapters": 2,
|
||||
"startup_config": "iou_l3_base_startup-config.txt",
|
||||
"symbol": ":/symbols/multilayer_switch.svg",
|
||||
"use_default_iou_values": True,
|
||||
"use_default_iou_values": False,
|
||||
"l1_keepalives": False}
|
||||
|
||||
for item, value in expected_response.items():
|
||||
|
||||
Reference in new issue
Block a user