1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Fix tests

This commit is contained in:
ziajka 2018-06-13 19:16:43 +02:00
parent ac73c72727
commit f3b4cc0160

View File

@ -165,7 +165,6 @@ def test_add_node_local(async_run, controller):
"name": project._name, "name": project._name,
"project_id": project._id, "project_id": project._id,
"path": project._path, "path": project._path,
"variables": None
}) })
compute.post.assert_any_call('/projects/{}/vpcs/nodes'.format(project.id), compute.post.assert_any_call('/projects/{}/vpcs/nodes'.format(project.id),
data={'node_id': node.id, data={'node_id': node.id,
@ -193,8 +192,7 @@ def test_add_node_non_local(async_run, controller):
compute.post.assert_any_call('/projects', data={ compute.post.assert_any_call('/projects', data={
"name": project._name, "name": project._name,
"project_id": project._id, "project_id": project._id
"variables": None
}) })
compute.post.assert_any_call('/projects/{}/vpcs/nodes'.format(project.id), compute.post.assert_any_call('/projects/{}/vpcs/nodes'.format(project.id),
data={'node_id': node.id, data={'node_id': node.id,
@ -234,8 +232,7 @@ def test_add_node_from_appliance(async_run, controller):
compute.post.assert_any_call('/projects', data={ compute.post.assert_any_call('/projects', data={
"name": project._name, "name": project._name,
"project_id": project._id, "project_id": project._id,
"path": project._path, "path": project._path
"variables": None
}) })
compute.post.assert_any_call('/projects/{}/vpcs/nodes'.format(project.id), compute.post.assert_any_call('/projects/{}/vpcs/nodes'.format(project.id),
data={'node_id': node.id, data={'node_id': node.id,