Auto create the local compute node

This commit is contained in:
Julien Duponchelle committed 2016-05-24 15:45:06 +02:00
1 parent b126c396c9
commit df73f80bf5
2 files changed
+18 -22

No files matched your search

+5 -3
View File
@@ -112,13 +112,15 @@ def test_getCompute(controller, async_run):
assert controller.get_compute("dsdssd")
def test_addComputeLocal(controller, controller_config_path, async_run):
def test_initControllerLocal(controller, controller_config_path, async_run):
"""
The local node is the controller itself you can not change the informations
"""
# The default test controller is not local
assert len(controller._computes) == 0
Config.instance().set("Server", "local", True)
async_run(controller.add_compute("local", host="example.org"))
assert controller.get_compute("local").host == "localhost"
c = Controller()
assert len(c._computes) == 1
def test_addProject(controller, async_run):