A client could not erase the local compute node config in the controller

Fix #499
This commit is contained in:
Julien Duponchelle committed 2016-05-11 15:02:35 +02:00
1 parent 4342b4346e
commit 390401000f
2 files changed
+32

No files matched your search

+9
View File
@@ -108,6 +108,15 @@ def test_getCompute(controller, async_run):
assert controller.getCompute("dsdssd")
def test_addComputeLocal(controller, controller_config_path, async_run):
"""
The local node is the controller itself you can not change the informations
"""
Config.instance().set("Server", "local", True)
async_run(controller.addCompute("local", host="example.org"))
assert controller.getCompute("local").host == "localhost"
def test_addProject(controller, async_run):
uuid1 = str(uuid.uuid4())
uuid2 = str(uuid.uuid4())