mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Delete a VM, mark it as destroyable
This commit is contained in:
1 parent
28308b10bc
commit
f97c2b2cbe
6 files changed
+105
-11
No files matched your search
@@ -19,6 +19,8 @@
|
||||
This test suite check /project endpoint
|
||||
"""
|
||||
|
||||
import uuid
|
||||
|
||||
|
||||
def test_create_project_with_dir(server, tmpdir):
|
||||
response = server.post("/project", {"location": str(tmpdir)})
|
||||
@@ -46,3 +48,13 @@ def test_create_project_with_uuid(server):
|
||||
assert response.status == 200
|
||||
assert response.json["uuid"] == "00010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||
assert response.json["location"] == "/tmp"
|
||||
|
||||
|
||||
def test_commit_project(server, project):
|
||||
response = server.post("/project/{uuid}/commit".format(uuid=project.uuid))
|
||||
assert response.status == 204
|
||||
|
||||
|
||||
def test_commit_project_invalid_project_uuid(server, project):
|
||||
response = server.post("/project/{uuid}/commit".format(uuid=uuid.uuid4()))
|
||||
assert response.status == 404
|
||||
Reference in new issue
Block a user