)]}'
{"nova_powervm/tests/virt/powervm/nvram/test_manager.py":[{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"516ba0375c18b2d5a92c06d13e1e6ec2aeac0696","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.nvram.manager.LOG.exception\u0027)"},{"line_number":43,"context_line":"    @mock.patch.object(vm, \u0027get_instance_wrapper\u0027)"},{"line_number":44,"context_line":"    def test_store_with_exception(self, mock_get_inst, mock_log):"},{"line_number":45,"context_line":"        mock_resp \u003d mock.Mock()"},{"line_number":46,"context_line":"        mock_resp.status \u003d 410"},{"line_number":47,"context_line":"        mock_resp.reqpath \u003d ("},{"line_number":48,"context_line":"            \u0027/rest/api/uom/ManagedSystem/c5d782c7-44e4-3086-ad15-\u0027"},{"line_number":49,"context_line":"            \u0027b16fb039d63b/LogicalPartition/1B5FB633-16D1-4E10-A14\u0027"},{"line_number":50,"context_line":"            \u00275-E6FB905161A3?group\u003dNone\u0027)"},{"line_number":51,"context_line":"        mock_get_inst.side_effect \u003d pvm_exc.HttpError(mock_resp)"},{"line_number":52,"context_line":"        mgr \u003d manager.NvramManager(self.fake_store, mock.Mock(), mock.Mock())"},{"line_number":53,"context_line":"        mgr.store(powervm.TEST_INST1)"},{"line_number":54,"context_line":"        self.assertEqual(1, mock_log.call_count)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff0f0b1f_b1857d5c","line":51,"range":{"start_line":45,"start_character":8,"end_line":51,"end_character":64},"updated":"2017-05-23 19:09:47.000000000","message":"Setting the side_effect should be enough here (could even be pvm_exc.Error). The exception is pvm_exc.Error in manager.py","commit_id":"fc36a38ac7a43d211f62a452c19f93d8d2b48430"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"9eefedfd7febf07350144801f1bd374505438176","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.nvram.manager.LOG.exception\u0027)"},{"line_number":43,"context_line":"    @mock.patch.object(vm, \u0027get_instance_wrapper\u0027)"},{"line_number":44,"context_line":"    def test_store_with_exception(self, mock_get_inst, mock_log):"},{"line_number":45,"context_line":"        mock_resp \u003d mock.Mock()"},{"line_number":46,"context_line":"        mock_resp.status \u003d 410"},{"line_number":47,"context_line":"        mock_resp.reqpath \u003d ("},{"line_number":48,"context_line":"            \u0027/rest/api/uom/ManagedSystem/c5d782c7-44e4-3086-ad15-\u0027"},{"line_number":49,"context_line":"            \u0027b16fb039d63b/LogicalPartition/1B5FB633-16D1-4E10-A14\u0027"},{"line_number":50,"context_line":"            \u00275-E6FB905161A3?group\u003dNone\u0027)"},{"line_number":51,"context_line":"        mock_get_inst.side_effect \u003d pvm_exc.HttpError(mock_resp)"},{"line_number":52,"context_line":"        mgr \u003d manager.NvramManager(self.fake_store, mock.Mock(), mock.Mock())"},{"line_number":53,"context_line":"        mgr.store(powervm.TEST_INST1)"},{"line_number":54,"context_line":"        self.assertEqual(1, mock_log.call_count)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff0f0b1f_b407ab82","line":51,"range":{"start_line":45,"start_character":8,"end_line":51,"end_character":64},"in_reply_to":"ff0f0b1f_b1857d5c","updated":"2017-05-23 19:34:37.000000000","message":"Yup, needed to rework the one below it too.  Done.","commit_id":"fc36a38ac7a43d211f62a452c19f93d8d2b48430"}],"nova_powervm/tests/virt/powervm/test_vm.py":[{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"4cce07574063f810a7ce8a153d1fd3dd6ac68f2a","unresolved":false,"context_lines":[{"line_number":303,"context_line":"            def __init__(self, body):"},{"line_number":304,"context_line":"                self.body \u003d \u0027\"%s\"\u0027 % body"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"        resp \u003d FakeResp2(\u0027running\u0027)"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"        self.apt.read.side_effect \u003d None"},{"line_number":309,"context_line":"        self.apt.read.return_value \u003d resp"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_00c3df5e","line":306,"updated":"2017-05-22 17:22:43.000000000","message":"nit: I would just merge this with line 309, since we don\u0027t use resp anywhere else.","commit_id":"b0ee1f8d41154428dfca96ef5cfe82a45b886127"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"5839453388d2dc7318f3b1f717c103c879614038","unresolved":false,"context_lines":[{"line_number":303,"context_line":"            def __init__(self, body):"},{"line_number":304,"context_line":"                self.body \u003d \u0027\"%s\"\u0027 % body"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"        resp \u003d FakeResp2(\u0027running\u0027)"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"        self.apt.read.side_effect \u003d None"},{"line_number":309,"context_line":"        self.apt.read.return_value \u003d resp"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_52b3e64d","line":306,"in_reply_to":"ff0f0b1f_00c3df5e","updated":"2017-05-22 22:38:25.000000000","message":"Done","commit_id":"b0ee1f8d41154428dfca96ef5cfe82a45b886127"}],"nova_powervm/virt/powervm/vm.py":[{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"4cce07574063f810a7ce8a153d1fd3dd6ac68f2a","unresolved":false,"context_lines":[{"line_number":45,"context_line":"from nova_powervm import conf as cfg"},{"line_number":46,"context_line":"from nova_powervm.virt.powervm import exception as nvex"},{"line_number":47,"context_line":"from nova_powervm.virt.powervm.i18n import _"},{"line_number":48,"context_line":"from nova_powervm.virt.powervm.i18n import _LI"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":51,"context_line":"CONF \u003d cfg.CONF"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_c53df9dd","line":48,"updated":"2017-05-22 17:22:43.000000000","message":"you can remove this _LI import when you remove the last reference I flagged below.","commit_id":"b0ee1f8d41154428dfca96ef5cfe82a45b886127"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"5839453388d2dc7318f3b1f717c103c879614038","unresolved":false,"context_lines":[{"line_number":45,"context_line":"from nova_powervm import conf as cfg"},{"line_number":46,"context_line":"from nova_powervm.virt.powervm import exception as nvex"},{"line_number":47,"context_line":"from nova_powervm.virt.powervm.i18n import _"},{"line_number":48,"context_line":"from nova_powervm.virt.powervm.i18n import _LI"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":51,"context_line":"CONF \u003d cfg.CONF"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_d2801649","line":48,"in_reply_to":"ff0f0b1f_c53df9dd","updated":"2017-05-22 22:38:25.000000000","message":"Done","commit_id":"b0ee1f8d41154428dfca96ef5cfe82a45b886127"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"4cce07574063f810a7ce8a153d1fd3dd6ac68f2a","unresolved":false,"context_lines":[{"line_number":610,"context_line":"    return _rename(entry)"},{"line_number":611,"context_line":""},{"line_number":612,"context_line":""},{"line_number":613,"context_line":"def dlt_lpar(adapter, instance):"},{"line_number":614,"context_line":"    \"\"\"Delete an LPAR"},{"line_number":615,"context_line":""},{"line_number":616,"context_line":"    :param adapter: The adapter for the pypowervm API."}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_c024c7b1","line":613,"updated":"2017-05-22 17:22:43.000000000","message":"if you\u0027re going to change the args, and therefore have to update everywhere that calls this, should we go ahead and s/dlt_lpar/delete_lpar/ as well?","commit_id":"b0ee1f8d41154428dfca96ef5cfe82a45b886127"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"5839453388d2dc7318f3b1f717c103c879614038","unresolved":false,"context_lines":[{"line_number":610,"context_line":"    return _rename(entry)"},{"line_number":611,"context_line":""},{"line_number":612,"context_line":""},{"line_number":613,"context_line":"def dlt_lpar(adapter, instance):"},{"line_number":614,"context_line":"    \"\"\"Delete an LPAR"},{"line_number":615,"context_line":""},{"line_number":616,"context_line":"    :param adapter: The adapter for the pypowervm API."}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_92497e32","line":613,"in_reply_to":"ff0f0b1f_c024c7b1","updated":"2017-05-22 22:38:25.000000000","message":"Well, not everywhere - bunch of @mock.patches that were previously untouched.\n\nBut okay, at the risk of being told, \"This should go in another change set,\" done.  Also did s/crt_lpar/create_lpar/.","commit_id":"b0ee1f8d41154428dfca96ef5cfe82a45b886127"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"4cce07574063f810a7ce8a153d1fd3dd6ac68f2a","unresolved":false,"context_lines":[{"line_number":619,"context_line":"    lpar_uuid \u003d get_pvm_uuid(instance)"},{"line_number":620,"context_line":"    # Attempt to delete the VM."},{"line_number":621,"context_line":"    try:"},{"line_number":622,"context_line":"        LOG.info(_LI(\u0027Deleting LPAR\u0027), instance\u003dinstance)"},{"line_number":623,"context_line":""},{"line_number":624,"context_line":"        # Ensure any vterms are closed.  Will no-op otherwise."},{"line_number":625,"context_line":"        vterm.close_vterm(adapter, lpar_uuid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_85f8217b","line":622,"range":{"start_line":622,"start_character":17,"end_line":622,"end_character":20},"updated":"2017-05-22 17:22:43.000000000","message":"you can remove _LI here","commit_id":"b0ee1f8d41154428dfca96ef5cfe82a45b886127"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"5839453388d2dc7318f3b1f717c103c879614038","unresolved":false,"context_lines":[{"line_number":619,"context_line":"    lpar_uuid \u003d get_pvm_uuid(instance)"},{"line_number":620,"context_line":"    # Attempt to delete the VM."},{"line_number":621,"context_line":"    try:"},{"line_number":622,"context_line":"        LOG.info(_LI(\u0027Deleting LPAR\u0027), instance\u003dinstance)"},{"line_number":623,"context_line":""},{"line_number":624,"context_line":"        # Ensure any vterms are closed.  Will no-op otherwise."},{"line_number":625,"context_line":"        vterm.close_vterm(adapter, lpar_uuid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_b29922c5","line":622,"range":{"start_line":622,"start_character":17,"end_line":622,"end_character":20},"in_reply_to":"ff0f0b1f_85f8217b","updated":"2017-05-22 22:38:25.000000000","message":"Done","commit_id":"b0ee1f8d41154428dfca96ef5cfe82a45b886127"}]}
