diff options
author | Chris Donley <christopher.donley@huawei.com> | 2018-05-30 19:55:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-05-30 19:55:33 +0000 |
commit | e65155cab8d6d74989f1dd0bd1a493e1c91a30d9 (patch) | |
tree | 9112d60bee675751d2bfe0e029929ec8960f49cc /vnftest/core/testcase.py | |
parent | bfb67b927b59525028420e4477b1310fb6a69335 (diff) | |
parent | 82aeca18c66dc4c312a57f24ed3c4c33a2063070 (diff) |
Merge "Refactor api definition yamls to support jinja2"
Diffstat (limited to 'vnftest/core/testcase.py')
-rw-r--r-- | vnftest/core/testcase.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vnftest/core/testcase.py b/vnftest/core/testcase.py index ef3e535..ea07243 100644 --- a/vnftest/core/testcase.py +++ b/vnftest/core/testcase.py @@ -74,8 +74,9 @@ class Testcase(object): return record def _parse_testcase(self, testcase_info): - - rendered_testcase = TaskTemplate.render(testcase_info) + kw = {} + kw['vnf_descriptor'] = {} + rendered_testcase = TaskTemplate.render(testcase_info, **kw) testcase_cfg = yaml_load(rendered_testcase) test_precondition = testcase_cfg.get('precondition', {}) |