From 7bc8fb6da2a777aa89c94f4c47b508b4d2113a58 Mon Sep 17 00:00:00 2001 From: James Page Date: Tue, 5 Feb 2019 10:55:46 +0000 Subject: [PATCH] Allow configure section to be absent --- zaza/charm_lifecycle/func_test_runner.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zaza/charm_lifecycle/func_test_runner.py b/zaza/charm_lifecycle/func_test_runner.py index 55c6bf1..f99c90d 100644 --- a/zaza/charm_lifecycle/func_test_runner.py +++ b/zaza/charm_lifecycle/func_test_runner.py @@ -57,8 +57,9 @@ def func_test_runner(keep_model=False, smoke=False, dev=False, bundle=None): deploy.deploy( os.path.join(utils.BUNDLE_DIR, '{}.yaml'.format(t)), model_name) - # Configure - configure.configure(model_name, test_config['configure']) + if 'configure' in test_config: + # Configure + configure.configure(model_name, test_config['configure']) # Test test.test(model_name, test_config['tests']) # Destroy