def _micado_parser_upload(self, path, parsed_params): """ Parse the file and retrieve the object """ logger.debug("instantiation of submitter and retrieve template") parser = MiCADOParser() template = parser.set_template(path=path, parsed_params=parsed_params) logger.info("Valid & Compatible TOSCA template") return template
def test_good_template(self): self.good_tpl.__eq__( MiCADOParser().set_template("tests/templates/good_tosca.yaml"))
def test_wrong_import(self): with self.assertRaises(Exception): MiCADOParser().set_template("tests/templates/wrong_import.yaml")
def test_bad_template(self): with self.assertRaises(MultiError): MiCADOParser().set_template("tests/templates/bad_tosca.yaml")