1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-13 20:08:55 +00:00

Fix some tests on travis

This commit is contained in:
Julien Duponchelle 2017-01-16 10:13:13 +01:00
parent 7a0783d050
commit 2de284ea30
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ class VirtualBoxVM(BaseNode):
if os.path.exists(self._linked_vbox_file()):
tree = ET.parse(self._linked_vbox_file())
machine = tree.getroot().find("{http://www.virtualbox.org/}Machine")
if machine:
if machine is not None:
machine.set("uuid", "{" + self.id + "}")
tree.write(self._linked_vbox_file())

View File

@ -54,7 +54,7 @@ def test_cloud_get(http_compute, project, vm):
assert response.route == "/projects/{project_id}/cloud/nodes/{node_id}"
assert response.json["name"] == "Cloud 1"
assert response.json["project_id"] == project.id
assert response.json["status"] == "stopped"
assert response.json["status"] == "started"
def test_cloud_nio_create_udp(http_compute, vm):