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)
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())
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())
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())
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())
def setUp(self): TestCase.setUp(self) exception.ExceptionCollector.stop()
def setUp(self): TestCase.setUp(self) ExceptionCollector.stop( ) # Added as sometimes negative testcases fails.