mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 03:08:14 +00:00
Fix tests
This commit is contained in:
parent
3efe753eee
commit
dadf11f69b
@ -195,7 +195,7 @@ def test_create(node, compute, project, async_run):
|
|||||||
"startup_script": "echo test",
|
"startup_script": "echo test",
|
||||||
"name": "demo"
|
"name": "demo"
|
||||||
}
|
}
|
||||||
compute.post.assert_called_with("/projects/{}/vpcs/nodes".format(node.project.id), data=data, timeout=120)
|
compute.post.assert_called_with("/projects/{}/vpcs/nodes".format(node.project.id), data=data, timeout=1200)
|
||||||
assert node._console == 2048
|
assert node._console == 2048
|
||||||
assert node._properties == {"startup_script": "echo test"}
|
assert node._properties == {"startup_script": "echo test"}
|
||||||
|
|
||||||
@ -244,7 +244,7 @@ def test_create_base_script(node, config, compute, tmpdir, async_run):
|
|||||||
"startup_script": "hostname test",
|
"startup_script": "hostname test",
|
||||||
"name": "demo"
|
"name": "demo"
|
||||||
}
|
}
|
||||||
compute.post.assert_called_with("/projects/{}/vpcs/nodes".format(node.project.id), data=data, timeout=120)
|
compute.post.assert_called_with("/projects/{}/vpcs/nodes".format(node.project.id), data=data, timeout=1200)
|
||||||
|
|
||||||
|
|
||||||
def test_symbol(node, symbols_dir):
|
def test_symbol(node, symbols_dir):
|
||||||
@ -445,7 +445,7 @@ def test_create_without_console(node, compute, project, async_run):
|
|||||||
"startup_script": "echo test",
|
"startup_script": "echo test",
|
||||||
"name": "demo"
|
"name": "demo"
|
||||||
}
|
}
|
||||||
compute.post.assert_called_with("/projects/{}/vpcs/nodes".format(node.project.id), data=data, timeout=120)
|
compute.post.assert_called_with("/projects/{}/vpcs/nodes".format(node.project.id), data=data, timeout=1200)
|
||||||
assert node._console == 2048
|
assert node._console == 2048
|
||||||
assert node._properties == {"test_value": "success", "startup_script": "echo test"}
|
assert node._properties == {"test_value": "success", "startup_script": "echo test"}
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ def test_add_node_local(async_run, controller):
|
|||||||
data={'node_id': node.id,
|
data={'node_id': node.id,
|
||||||
'startup_script': 'test.cfg',
|
'startup_script': 'test.cfg',
|
||||||
'name': 'test'},
|
'name': 'test'},
|
||||||
timeout=120)
|
timeout=1200)
|
||||||
assert compute in project._project_created_on_compute
|
assert compute in project._project_created_on_compute
|
||||||
controller.notification.emit.assert_any_call("node.created", node.__json__())
|
controller.notification.emit.assert_any_call("node.created", node.__json__())
|
||||||
|
|
||||||
@ -181,7 +181,7 @@ def test_add_node_non_local(async_run, controller):
|
|||||||
data={'node_id': node.id,
|
data={'node_id': node.id,
|
||||||
'startup_script': 'test.cfg',
|
'startup_script': 'test.cfg',
|
||||||
'name': 'test'},
|
'name': 'test'},
|
||||||
timeout=120)
|
timeout=1200)
|
||||||
assert compute in project._project_created_on_compute
|
assert compute in project._project_created_on_compute
|
||||||
controller.notification.emit.assert_any_call("node.created", node.__json__())
|
controller.notification.emit.assert_any_call("node.created", node.__json__())
|
||||||
|
|
||||||
@ -222,7 +222,7 @@ def test_add_node_from_appliance(async_run, controller):
|
|||||||
'name': 'Test-1',
|
'name': 'Test-1',
|
||||||
'a': 1,
|
'a': 1,
|
||||||
},
|
},
|
||||||
timeout=120)
|
timeout=1200)
|
||||||
assert compute in project._project_created_on_compute
|
assert compute in project._project_created_on_compute
|
||||||
controller.notification.emit.assert_any_call("node.created", node.__json__())
|
controller.notification.emit.assert_any_call("node.created", node.__json__())
|
||||||
|
|
||||||
@ -233,7 +233,7 @@ def test_add_node_from_appliance(async_run, controller):
|
|||||||
'name': 'Test-2',
|
'name': 'Test-2',
|
||||||
'a': 1
|
'a': 1
|
||||||
},
|
},
|
||||||
timeout=120)
|
timeout=1200)
|
||||||
|
|
||||||
|
|
||||||
def test_delete_node(async_run, controller):
|
def test_delete_node(async_run, controller):
|
||||||
|
Loading…
Reference in New Issue
Block a user