Fix Compute name is lost at save

Fix #562
This commit is contained in:
Julien Duponchelle committed 2016-06-08 14:25:11 +02:00
1 parent add546158f
commit 1b530bde3f
4 files changed
+6 -1

No files matched your search

+2 -1
View File
@@ -102,13 +102,14 @@ def test_deleteCompute(controller, controller_config_path, async_run):
def test_addComputeConfigFile(controller, controller_config_path, async_run):
async_run(controller.add_compute(compute_id="test1"))
async_run(controller.add_compute(compute_id="test1", name="Test"))
assert len(controller.computes) == 1
with open(controller_config_path) as f:
data = json.load(f)
assert data["computes"] == [
{
'compute_id': 'test1',
'name': 'Test',
'host': 'localhost',
'port': 3080,
'protocol': 'http',