)]}'
{"tacker/tests/unit/vnfm/test_plugin.py":[{"author":{"_account_id":20182,"name":"Bhagyashri Shewale","email":"bshewale@redhat.com","username":"bhagyashris"},"change_message_id":"87cb64d841afc9cb2d909ff90bbf3e6fdb72ab94","unresolved":false,"context_lines":[{"line_number":471,"context_line":"                          self.vnfm_plugin.create_vnf,"},{"line_number":472,"context_line":"                          self.context, vnf_obj)"},{"line_number":473,"context_line":""},{"line_number":474,"context_line":"    @patch(\u0027tacker.vnfm.plugin.VNFMPlugin._report_deprecated_yaml_str\u0027)"},{"line_number":475,"context_line":"    def test_create_vnf_with_invalid_param_and_config_format(self,"},{"line_number":476,"context_line":"                                            mock_report_deprecated_yaml_str):"},{"line_number":477,"context_line":"        self._insert_dummy_vnf_template()"}],"source_content_type":"text/x-python","patch_set":6,"id":"9fdfeff1_3edfc366","line":474,"range":{"start_line":474,"start_character":4,"end_line":474,"end_character":71},"updated":"2019-02-15 09:43:49.000000000","message":"As _report_deprecated_yaml_str() is removed in this patch so no need to mock otherwise this will give error: AttributeError: \u003cclass \u0027tacker.vnfm.plugin.VNFMPlugin\u0027\u003e does not have the attribute \u0027_report_deprecated_yaml_str\u0027\nRemove this and #line 482 as well.","commit_id":"52124a8d477fa2eb8dd9fd61c9c1ce96f2a9913d"},{"author":{"_account_id":18955,"name":"dharmendra","email":"dharmendra.kushwaha@gmail.com","username":"dharmendra"},"change_message_id":"1a42b4e013f020c04624842f2673c43debcf1680","unresolved":false,"context_lines":[{"line_number":471,"context_line":"                          self.vnfm_plugin.create_vnf,"},{"line_number":472,"context_line":"                          self.context, vnf_obj)"},{"line_number":473,"context_line":""},{"line_number":474,"context_line":"    @patch(\u0027tacker.vnfm.plugin.VNFMPlugin._report_deprecated_yaml_str\u0027)"},{"line_number":475,"context_line":"    def test_create_vnf_with_invalid_param_and_config_format(self,"},{"line_number":476,"context_line":"                                            mock_report_deprecated_yaml_str):"},{"line_number":477,"context_line":"        self._insert_dummy_vnf_template()"}],"source_content_type":"text/x-python","patch_set":6,"id":"9fdfeff1_10acf0ec","line":474,"range":{"start_line":474,"start_character":4,"end_line":474,"end_character":71},"in_reply_to":"9fdfeff1_3edfc366","updated":"2019-02-19 12:05:58.000000000","message":"Done","commit_id":"52124a8d477fa2eb8dd9fd61c9c1ce96f2a9913d"},{"author":{"_account_id":20182,"name":"Bhagyashri Shewale","email":"bshewale@redhat.com","username":"bhagyashris"},"change_message_id":"87cb64d841afc9cb2d909ff90bbf3e6fdb72ab94","unresolved":false,"context_lines":[{"line_number":702,"context_line":"            res_state\u003dmock.ANY, res_type\u003dconstants.RES_TYPE_VNF,"},{"line_number":703,"context_line":"            tstamp\u003dmock.ANY)"},{"line_number":704,"context_line":""},{"line_number":705,"context_line":"    @mock.patch(\u0027tacker.vnfm.plugin.VNFMPlugin._report_deprecated_yaml_str\u0027)"},{"line_number":706,"context_line":"    def test_update_vnf_invalid_config_format(self,"},{"line_number":707,"context_line":"                                              mock_report_deprecated_yaml_str):"},{"line_number":708,"context_line":"        self._insert_dummy_vnf_template()"}],"source_content_type":"text/x-python","patch_set":6,"id":"9fdfeff1_fed61b4f","line":705,"range":{"start_line":705,"start_character":4,"end_line":705,"end_character":76},"updated":"2019-02-15 09:43:49.000000000","message":"As _report_deprecated_yaml_str() is removed in this patch so no need to mock otherwise this will give error: AttributeError: \u003cclass \u0027tacker.vnfm.plugin.VNFMPlugin\u0027\u003e does not have the attribute \u0027_report_deprecated_yaml_str\u0027\nRemove this line and #line 714","commit_id":"52124a8d477fa2eb8dd9fd61c9c1ce96f2a9913d"},{"author":{"_account_id":18955,"name":"dharmendra","email":"dharmendra.kushwaha@gmail.com","username":"dharmendra"},"change_message_id":"1a42b4e013f020c04624842f2673c43debcf1680","unresolved":false,"context_lines":[{"line_number":702,"context_line":"            res_state\u003dmock.ANY, res_type\u003dconstants.RES_TYPE_VNF,"},{"line_number":703,"context_line":"            tstamp\u003dmock.ANY)"},{"line_number":704,"context_line":""},{"line_number":705,"context_line":"    @mock.patch(\u0027tacker.vnfm.plugin.VNFMPlugin._report_deprecated_yaml_str\u0027)"},{"line_number":706,"context_line":"    def test_update_vnf_invalid_config_format(self,"},{"line_number":707,"context_line":"                                              mock_report_deprecated_yaml_str):"},{"line_number":708,"context_line":"        self._insert_dummy_vnf_template()"}],"source_content_type":"text/x-python","patch_set":6,"id":"9fdfeff1_70a77c0d","line":705,"range":{"start_line":705,"start_character":4,"end_line":705,"end_character":76},"in_reply_to":"9fdfeff1_fed61b4f","updated":"2019-02-19 12:05:58.000000000","message":"Done","commit_id":"52124a8d477fa2eb8dd9fd61c9c1ce96f2a9913d"}],"tacker/vnfm/plugin.py":[{"author":{"_account_id":18955,"name":"dharmendra","email":"dharmendra.kushwaha@gmail.com","username":"dharmendra"},"change_message_id":"4ad3b1e6f7a8eed71138ba5f55189ecfbd3c2363","unresolved":false,"context_lines":[{"line_number":625,"context_line":"        return policy"},{"line_number":626,"context_line":""},{"line_number":627,"context_line":"    def _report_deprecated_yaml_str(self):"},{"line_number":628,"context_line":"        utils.deprecate_warning(what\u003d\u0027yaml as string\u0027,"},{"line_number":629,"context_line":"                                as_of\u003d\u0027N\u0027, in_favor_of\u003d\u0027yaml as dictionary\u0027)"},{"line_number":630,"context_line":""},{"line_number":631,"context_line":"    def _make_policy_dict(self, vnf, name, policy):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a3905b3_7001ea37","side":"PARENT","line":628,"range":{"start_line":628,"start_character":8,"end_line":628,"end_character":31},"updated":"2017-01-23 08:54:25.000000000","message":"Can we also remove deprecate_warning from tacker/common/utils.py , as no one else using this.","commit_id":"ae3966e773a2eea26aeb294267895496969643a6"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"4b1a8cff4521333d2563afa284be1539cd9d086a","unresolved":false,"context_lines":[{"line_number":625,"context_line":"        return policy"},{"line_number":626,"context_line":""},{"line_number":627,"context_line":"    def _report_deprecated_yaml_str(self):"},{"line_number":628,"context_line":"        utils.deprecate_warning(what\u003d\u0027yaml as string\u0027,"},{"line_number":629,"context_line":"                                as_of\u003d\u0027N\u0027, in_favor_of\u003d\u0027yaml as dictionary\u0027)"},{"line_number":630,"context_line":""},{"line_number":631,"context_line":"    def _make_policy_dict(self, vnf, name, policy):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a430d35_37fbcfc2","side":"PARENT","line":628,"range":{"start_line":628,"start_character":8,"end_line":628,"end_character":31},"in_reply_to":"5a3905b3_7001ea37","updated":"2017-02-08 00:44:55.000000000","message":"Done","commit_id":"ae3966e773a2eea26aeb294267895496969643a6"},{"author":{"_account_id":12455,"name":"bharaththiruveedula","email":"bharath_ves@hotmail.com","username":"bharaththiruveedula"},"change_message_id":"916ebff5c1cffaf5f80bd1e120dd1e8059ec312c","unresolved":false,"context_lines":[{"line_number":404,"context_line":"        vnf_attributes \u003d vnf[\u0027vnf\u0027][\u0027attributes\u0027]"},{"line_number":405,"context_line":"        if vnf_attributes.get(\u0027config\u0027):"},{"line_number":406,"context_line":"            config \u003d vnf_attributes[\u0027config\u0027]"},{"line_number":407,"context_line":"            if isinstance(config, dict):"},{"line_number":408,"context_line":"                # TODO(sripriya) remove this yaml dump once db supports storing"},{"line_number":409,"context_line":"                # json format of yaml files in a separate column instead of"},{"line_number":410,"context_line":"                #  key value string pairs in vnf attributes table"},{"line_number":411,"context_line":"                vnf_attributes[\u0027config\u0027] \u003d yaml.safe_dump(config)"},{"line_number":412,"context_line":"        vnf_dict \u003d self._update_vnf_pre(context, vnf_id)"},{"line_number":413,"context_line":"        driver_name, vim_auth \u003d self._get_infra_driver(context, vnf_dict)"},{"line_number":414,"context_line":"        instance_id \u003d self._instance_id(vnf_dict)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a3905b3_5995f284","line":411,"range":{"start_line":407,"start_character":12,"end_line":411,"end_character":65},"updated":"2017-01-23 11:02:09.000000000","message":"better to raise an exception if not dict and we have to remove the corresponding code from tacker client [1]\n[1]https://github.com/openstack/python-tackerclient/blob/master/tackerclient/tacker/v1_0/vnfm/vnf.py#L101","commit_id":"2f14a9d268f4dfaa11f55b8c3495646d452a38ab"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"4b1a8cff4521333d2563afa284be1539cd9d086a","unresolved":false,"context_lines":[{"line_number":404,"context_line":"        vnf_attributes \u003d vnf[\u0027vnf\u0027][\u0027attributes\u0027]"},{"line_number":405,"context_line":"        if vnf_attributes.get(\u0027config\u0027):"},{"line_number":406,"context_line":"            config \u003d vnf_attributes[\u0027config\u0027]"},{"line_number":407,"context_line":"            if isinstance(config, dict):"},{"line_number":408,"context_line":"                # TODO(sripriya) remove this yaml dump once db supports storing"},{"line_number":409,"context_line":"                # json format of yaml files in a separate column instead of"},{"line_number":410,"context_line":"                #  key value string pairs in vnf attributes table"},{"line_number":411,"context_line":"                vnf_attributes[\u0027config\u0027] \u003d yaml.safe_dump(config)"},{"line_number":412,"context_line":"        vnf_dict \u003d self._update_vnf_pre(context, vnf_id)"},{"line_number":413,"context_line":"        driver_name, vim_auth \u003d self._get_infra_driver(context, vnf_dict)"},{"line_number":414,"context_line":"        instance_id \u003d self._instance_id(vnf_dict)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a430d35_b7d41f20","line":411,"range":{"start_line":407,"start_character":12,"end_line":411,"end_character":65},"in_reply_to":"5a3905b3_5995f284","updated":"2017-02-08 00:44:55.000000000","message":"Done, added defensive exceptions.\n\nThe above tackerclient code will be removed in Pike. We just added a deprecation warning in Ocata.","commit_id":"2f14a9d268f4dfaa11f55b8c3495646d452a38ab"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"761d4979facff597641b403de018dcd900f42c01","unresolved":false,"context_lines":[{"line_number":28,"context_line":"from tacker.api.v1 import attributes"},{"line_number":29,"context_line":"from tacker.common import driver_manager"},{"line_number":30,"context_line":"from tacker.common import exceptions"},{"line_number":31,"context_line":"from tacker.common import utils"},{"line_number":32,"context_line":"from tacker.db.vnfm import vnfm_db"},{"line_number":33,"context_line":"from tacker.extensions import vnfm"},{"line_number":34,"context_line":"from tacker.plugins.common import constants"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a430d35_be658f1e","side":"PARENT","line":31,"range":{"start_line":31,"start_character":26,"end_line":31,"end_character":31},"updated":"2017-02-09 11:23:42.000000000","message":"it is needed by line 345","commit_id":"5283dfc3bfe18a5d19e9244ce0863020bce32b6a"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"89f8c40f6c61ee341c44a4f4f848819b841159d6","unresolved":false,"context_lines":[{"line_number":28,"context_line":"from tacker.api.v1 import attributes"},{"line_number":29,"context_line":"from tacker.common import driver_manager"},{"line_number":30,"context_line":"from tacker.common import exceptions"},{"line_number":31,"context_line":"from tacker.common import utils"},{"line_number":32,"context_line":"from tacker.db.vnfm import vnfm_db"},{"line_number":33,"context_line":"from tacker.extensions import vnfm"},{"line_number":34,"context_line":"from tacker.plugins.common import constants"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_7d856305","side":"PARENT","line":31,"range":{"start_line":31,"start_character":26,"end_line":31,"end_character":31},"in_reply_to":"1a430d35_be658f1e","updated":"2017-02-13 20:11:27.000000000","message":"Done","commit_id":"5283dfc3bfe18a5d19e9244ce0863020bce32b6a"},{"author":{"_account_id":19644,"name":"Yan Xing\u0027an","email":"yanxingan@cmss.chinamobile.com","username":"yanxingan"},"change_message_id":"22af4d00334952eb759630af67d15d39b0ee4a60","unresolved":false,"context_lines":[{"line_number":342,"context_line":"        # if vnfd_template specified, create vnfd from template"},{"line_number":343,"context_line":"        # create template dictionary structure same as needed in create_vnfd()"},{"line_number":344,"context_line":"        if vnf_info.get(\u0027vnfd_template\u0027):"},{"line_number":345,"context_line":"            vnfd_name \u003d utils.generate_resource_name(name, \u0027inline\u0027)"},{"line_number":346,"context_line":"            vnfd \u003d {\u0027vnfd\u0027: {\u0027attributes\u0027: {\u0027vnfd\u0027: vnf_info[\u0027vnfd_template\u0027]},"},{"line_number":347,"context_line":"                             \u0027name\u0027: vnfd_name,"},{"line_number":348,"context_line":"                             \u0027template_source\u0027: \u0027inline\u0027,"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a430d35_00501331","line":345,"range":{"start_line":345,"start_character":12,"end_line":345,"end_character":68},"updated":"2017-02-09 02:44:57.000000000","message":"utils is not imported.","commit_id":"695ad286be1d0b9858687d3bce274dc23518ec2f"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"89f8c40f6c61ee341c44a4f4f848819b841159d6","unresolved":false,"context_lines":[{"line_number":342,"context_line":"        # if vnfd_template specified, create vnfd from template"},{"line_number":343,"context_line":"        # create template dictionary structure same as needed in create_vnfd()"},{"line_number":344,"context_line":"        if vnf_info.get(\u0027vnfd_template\u0027):"},{"line_number":345,"context_line":"            vnfd_name \u003d utils.generate_resource_name(name, \u0027inline\u0027)"},{"line_number":346,"context_line":"            vnfd \u003d {\u0027vnfd\u0027: {\u0027attributes\u0027: {\u0027vnfd\u0027: vnf_info[\u0027vnfd_template\u0027]},"},{"line_number":347,"context_line":"                             \u0027name\u0027: vnfd_name,"},{"line_number":348,"context_line":"                             \u0027template_source\u0027: \u0027inline\u0027,"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_bd7b5b27","line":345,"range":{"start_line":345,"start_character":12,"end_line":345,"end_character":68},"in_reply_to":"1a430d35_00501331","updated":"2017-02-13 20:11:27.000000000","message":"Done","commit_id":"695ad286be1d0b9858687d3bce274dc23518ec2f"}]}
