コード例 #1
0
 def setUp(self):
     TestCase.setUp(self)
     exception.ExceptionCollector.stop(
     )  # Added as sometimes negative testcases fails.
     self.tosca_tpl = os.path.join(
         os.path.dirname(os.path.abspath(__file__)),
         "spec_samples/etsi_sol001/sunshinedb/Definitions/sunshinedb.yaml")
     self.tosca = ToscaTemplate(path=tosca_tpl,
                                no_required_paras_check=True)
コード例 #2
0
 def setUp(self):
     TestCase.setUp(self)
     """TOSCA template."""
     self.tosca_tpl_path = os.path.join(
         os.path.dirname(os.path.abspath(__file__)), "data/topology_template/subsystem.yaml"
     )
     self.tpl = YAML_LOADER(self.tosca_tpl_path)
     self.topo_tpl = self.tpl.get("topology_template")
     self.imports = self.tpl.get("imports")
     self.topo = TopologyTemplate(self.topo_tpl, self._get_all_custom_def())
コード例 #3
0
 def setUp(self):
     TestCase.setUp(self)
     '''TOSCA template.'''
     self.tosca_tpl_path = os.path.join(
         os.path.dirname(os.path.abspath(__file__)),
         "data/topology_template/subsystem.yaml")
     self.tpl = YAML_LOADER(self.tosca_tpl_path)
     self.topo_tpl = self.tpl.get('topology_template')
     self.imports = self.tpl.get('imports')
     self.topo = TopologyTemplate(self.topo_tpl, self._get_all_custom_def())
コード例 #4
0
 def setUp(self):
     TestCase.setUp(self)
     '''TOSCA template.'''
     self.tosca_tpl_path = os.path.join(
         os.path.dirname(os.path.abspath(__file__)),
         "data/topology_template/transactionsubsystem.yaml")
     self.tpl = YAML_LOADER(self.tosca_tpl_path)
     self.topo_tpl = self.tpl.get('topology_template')
     self.imports = self.tpl.get('imports')
     self.topo = TopologyTemplate(self.topo_tpl,
                                  self._get_all_custom_def())
コード例 #5
0
 def setUp(self):
     TestCase.setUp(self)
     exception.ExceptionCollector.stop(
     )  # Added as sometimes negative testcases fails.
     '''TOSCA template.'''
     self.tosca_tpl_path = os.path.join(
         os.path.dirname(os.path.abspath(__file__)),
         "data/topology_template/transactionsubsystem.yaml")
     self.tpl = YAML_LOADER(self.tosca_tpl_path)
     self.topo_tpl = self.tpl.get('topology_template')
     self.imports = self.tpl.get('imports')
     self.topo = TopologyTemplate(self.topo_tpl, self._get_all_custom_def())
コード例 #6
0
 def setUp(self):
     TestCase.setUp(self)
     exception.ExceptionCollector.stop()
コード例 #7
0
 def setUp(self):
     TestCase.setUp(self)
     ExceptionCollector.stop(
     )  # Added as sometimes negative testcases fails.