Generate an uuid for compute node if None is provided

This commit is contained in:
Julien Duponchelle committed 2016-05-25 14:10:03 +02:00
1 parent 6162d7e431
commit 314a7cd8fb
5 files changed
+51 -18

No files matched your search

+2 -1
View File
@@ -47,9 +47,10 @@ def test_name():
assert c.name == "Local"
c = Compute("world", protocol="https", host="example.com", port=84, controller=MagicMock(), name="hello")
assert c.name == "hello"
c = Compute("world", protocol="https", host="example.com", port=84, controller=MagicMock(),user="azertyuiopqsdfghjklkm")
c = Compute("world", protocol="https", host="example.com", port=84, controller=MagicMock(), user="azertyuiopqsdfghjklkm")
assert c.name == "https://azertyuiopq...@example.com:84"
def test_compute_local(compute):
"""
If the compute is local but the compute id is local