mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Accept a node name when creating a node from a template using the API. Fixes #1708
This commit is contained in:
1 parent
688b1ac0e4
commit
0a87ee573c
3 files changed
+9
-4
No files matched your search
@@ -966,6 +966,6 @@ def test_create_node_from_template(http_controller, controller, project, compute
|
||||
"x": 42,
|
||||
"y": 12
|
||||
})
|
||||
mock.assert_called_with(id, x=42, y=12, compute_id=None)
|
||||
mock.assert_called_with(id, x=42, y=12, name=None, compute_id=None)
|
||||
assert response.route == "/projects/{project_id}/templates/{template_id}"
|
||||
assert response.status == 201
|
||||
Reference in new issue
Block a user