summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py
diff options
context:
space:
mode:
authorjulien zhang <zhang.jun3g@zte.com.cn>2016-06-15 08:11:35 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-06-15 08:11:35 +0000
commit3f449b07548e68eaa680b6707be7d9b3bb78b01e (patch)
tree44174cbe13c6ec7a5d8bc1c2bd0b128c797824ee /tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py
parent37c637988622dde3425390fb861800ffdaf2b6cb (diff)
parenta17eab054e89552cfafdad1b0f45d5a613cc2ba6 (diff)
Merge "tosco-parser supports importing the other service with topology template"
Diffstat (limited to 'tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py')
-rw-r--r--tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py b/tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py
index 0f1a33e..cbd4e3b 100644
--- a/tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py
+++ b/tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py
@@ -34,6 +34,11 @@ class TopologyTemplateTest(TestCase):
self.topo = TopologyTemplate(self.topo_tpl,
self._get_all_custom_def())
+ self.tosca_system_tpl_path = os.path.join(
+ os.path.dirname(os.path.abspath(__file__)),
+ "data/topology_template/system.yaml")
+ self.system_template = ToscaTemplate(self.tosca_system_tpl_path)
+
def _get_custom_def(self, type_definition):
custom_defs = {}
for definition in self.imports: