From a17eab054e89552cfafdad1b0f45d5a613cc2ba6 Mon Sep 17 00:00:00 2001 From: shangxdy Date: Sun, 5 Jun 2016 01:37:11 +0800 Subject: tosco-parser supports importing the other service with topology template As a tosca-parser developer; I want to implement the function of substitution_mapping; So that must support the import topology template firstly Change-Id: Ie26aab712e7870e1ec345ad654460bb84014f207 JIRA: PARSER-48 Signed-off-by: shangxdy --- tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py') 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: -- cgit 1.2.3-korg