b8c2c86333
While translating node_template, heat-translator first checks whether the policy is derived from the policies 'tosca.policies.Scaling' or 'tosca.policies.Monitoring', If yes, then it adds them into TOSCA_TO_HOT_TYPE map. In the subsequent code, it again checks for those policies and if they are not present in TOSCA_TO_HOT_TYPE map then it raises UnsupportedTypeError exception. This patch removes this unnecessary redundant code of checking policies again and ensures that the affected code is getting covered through test case. TrivialFix Change-Id: Ibe435e23e7ac11834e662745d327e6f99280f9f5 |
||
---|---|---|
.. | ||
data | ||
__init__.py | ||
base.py | ||
test_conf.py | ||
test_shell.py | ||
test_template.py | ||
test_tosca_hot_translation.py | ||
test_utils.py |