Fix Compute name is lost at save

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

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',