)]}'
{"manila/share/drivers/netapp/dataontap/cluster_mode/lib_base.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"bc34ceee90e9fce01515a258400cc774218f5cf0","unresolved":false,"context_lines":[{"line_number":967,"context_line":"                exception.VserverNotFound) as error:"},{"line_number":968,"context_line":"            LOG.warning(_LW(\"Could not determine share server for share being \""},{"line_number":969,"context_line":"                            \"updated: %(share)s. Error: %(error)s\"),"},{"line_number":970,"context_line":"                        {\u0027share\u0027: share[\u0027id\u0027], \u0027error\u0027: error})"},{"line_number":971,"context_line":"            return"},{"line_number":972,"context_line":""},{"line_number":973,"context_line":"        share_name \u003d self._get_valid_share_name(share[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aed3d3a_21ca25a2","line":970,"range":{"start_line":970,"start_character":56,"end_line":970,"end_character":61},"updated":"2016-02-25 19:57:22.000000000","message":"six.text_type(error)","commit_id":"a8a793f49bfe04170b2a43428a2d4406cdbb5d22"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"34075f71afe9db7f20d5a84035dad48d24a60f54","unresolved":false,"context_lines":[{"line_number":967,"context_line":"                exception.VserverNotFound) as error:"},{"line_number":968,"context_line":"            LOG.warning(_LW(\"Could not determine share server for share being \""},{"line_number":969,"context_line":"                            \"updated: %(share)s. Error: %(error)s\"),"},{"line_number":970,"context_line":"                        {\u0027share\u0027: share[\u0027id\u0027], \u0027error\u0027: error})"},{"line_number":971,"context_line":"            return"},{"line_number":972,"context_line":""},{"line_number":973,"context_line":"        share_name \u003d self._get_valid_share_name(share[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aed3d3a_f29ac9c4","line":970,"range":{"start_line":970,"start_character":56,"end_line":970,"end_character":61},"in_reply_to":"9aed3d3a_21ca25a2","updated":"2016-02-25 20:48:41.000000000","message":"I finally came up with a test with a unicode char.  Wrapping non-ascii messages with six.text_type just causes UnicodeDecodeError in python2.  So this py3 \"fix\" seems to be worse than not wrapping it. I still haven\u0027t seen a problem not doing this on py3.","commit_id":"a8a793f49bfe04170b2a43428a2d4406cdbb5d22"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"99ac76bc87d404fe02ea1b4ceba9d4bfb4d4b3a7","unresolved":false,"context_lines":[{"line_number":967,"context_line":"                exception.VserverNotFound) as error:"},{"line_number":968,"context_line":"            LOG.warning(_LW(\"Could not determine share server for share being \""},{"line_number":969,"context_line":"                            \"updated: %(share)s. Error: %(error)s\"),"},{"line_number":970,"context_line":"                        {\u0027share\u0027: share[\u0027id\u0027], \u0027error\u0027: error})"},{"line_number":971,"context_line":"            return"},{"line_number":972,"context_line":""},{"line_number":973,"context_line":"        share_name \u003d self._get_valid_share_name(share[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aed3d3a_370ede34","line":970,"range":{"start_line":970,"start_character":56,"end_line":970,"end_character":61},"in_reply_to":"9aed3d3a_f29ac9c4","updated":"2016-02-25 22:30:13.000000000","message":"Xing reminds me that exceptions wrapped by the i18n functions (_, _LW, etc.) don\u0027t need to be explicitly cast to strings.","commit_id":"a8a793f49bfe04170b2a43428a2d4406cdbb5d22"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"5a66c181cdc2ca56ca11783c4b4592ae5f8963ac","unresolved":false,"context_lines":[{"line_number":966,"context_line":"                exception.VserverNotSpecified,"},{"line_number":967,"context_line":"                exception.VserverNotFound) as error:"},{"line_number":968,"context_line":"            LOG.warning(_LW(\"Could not determine share server for share being \""},{"line_number":969,"context_line":"                            \"updated: %(share)s. Error: %(error)s\"),"},{"line_number":970,"context_line":"                        {\u0027share\u0027: share[\u0027id\u0027], \u0027error\u0027: error})"},{"line_number":971,"context_line":"            return"},{"line_number":972,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9aed3d3a_ba52d3db","line":969,"updated":"2016-02-25 22:41:14.000000000","message":"This doesn\u0027t mention \"access\".  Is this warning clear enough if debug and info are suppressed?  I\u0027ll assume you\u0027d be able to figure it out.","commit_id":"1bcbe67df309db00084e3ca7477f061d276ad4cf"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"f74841e9f593b53e5fc8e5c0da3fa74aceb07f8d","unresolved":false,"context_lines":[{"line_number":966,"context_line":"                exception.VserverNotSpecified,"},{"line_number":967,"context_line":"                exception.VserverNotFound) as error:"},{"line_number":968,"context_line":"            LOG.warning(_LW(\"Could not determine share server for share being \""},{"line_number":969,"context_line":"                            \"updated: %(share)s. Error: %(error)s\"),"},{"line_number":970,"context_line":"                        {\u0027share\u0027: share[\u0027id\u0027], \u0027error\u0027: error})"},{"line_number":971,"context_line":"            return"},{"line_number":972,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9aed3d3a_6b6a3f1c","line":969,"in_reply_to":"9aed3d3a_ba52d3db","updated":"2016-02-25 23:55:26.000000000","message":"OK, since I had to rebase anyway.  Done.","commit_id":"1bcbe67df309db00084e3ca7477f061d276ad4cf"}],"manila/tests/share/drivers/netapp/dataontap/cluster_mode/test_lib_base.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"bc34ceee90e9fce01515a258400cc774218f5cf0","unresolved":false,"context_lines":[{"line_number":1785,"context_line":"                         mock.Mock(return_value\u003dprotocol_helper))"},{"line_number":1786,"context_line":"        mock_share_exists \u003d self.mock_object(self.library,"},{"line_number":1787,"context_line":"                                             \u0027_share_exists\u0027,"},{"line_number":1788,"context_line":"                                             mock.Mock(return_value\u003dFalse))"},{"line_number":1789,"context_line":""},{"line_number":1790,"context_line":"        self.library.update_access(self.context,"},{"line_number":1791,"context_line":"                                   fake.SHARE,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aed3d3a_019e0156","line":1788,"range":{"start_line":1788,"start_character":45,"end_line":1788,"end_character":74},"updated":"2016-02-25 19:57:22.000000000","message":"since _share_exists is not called you don\u0027t really need an explicit return value.","commit_id":"a8a793f49bfe04170b2a43428a2d4406cdbb5d22"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"99ac76bc87d404fe02ea1b4ceba9d4bfb4d4b3a7","unresolved":false,"context_lines":[{"line_number":1785,"context_line":"                         mock.Mock(return_value\u003dprotocol_helper))"},{"line_number":1786,"context_line":"        mock_share_exists \u003d self.mock_object(self.library,"},{"line_number":1787,"context_line":"                                             \u0027_share_exists\u0027,"},{"line_number":1788,"context_line":"                                             mock.Mock(return_value\u003dFalse))"},{"line_number":1789,"context_line":""},{"line_number":1790,"context_line":"        self.library.update_access(self.context,"},{"line_number":1791,"context_line":"                                   fake.SHARE,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aed3d3a_97024a3d","line":1788,"range":{"start_line":1788,"start_character":45,"end_line":1788,"end_character":74},"in_reply_to":"9aed3d3a_019e0156","updated":"2016-02-25 22:30:13.000000000","message":"Done","commit_id":"a8a793f49bfe04170b2a43428a2d4406cdbb5d22"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"bc34ceee90e9fce01515a258400cc774218f5cf0","unresolved":false,"context_lines":[{"line_number":1795,"context_line":"        self.assertFalse(mock_share_exists.called)"},{"line_number":1796,"context_line":"        self.assertFalse(protocol_helper.set_client.called)"},{"line_number":1797,"context_line":"        self.assertFalse(protocol_helper.update_access.called)"},{"line_number":1798,"context_line":""},{"line_number":1799,"context_line":"    def test_update_access_share_not_found(self):"},{"line_number":1800,"context_line":""},{"line_number":1801,"context_line":"        vserver_client \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aed3d3a_81efb1af","line":1798,"updated":"2016-02-25 19:57:22.000000000","message":"It\u0027d be good to test for _get_vserver called to prove your mock is used as expected.","commit_id":"a8a793f49bfe04170b2a43428a2d4406cdbb5d22"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"99ac76bc87d404fe02ea1b4ceba9d4bfb4d4b3a7","unresolved":false,"context_lines":[{"line_number":1795,"context_line":"        self.assertFalse(mock_share_exists.called)"},{"line_number":1796,"context_line":"        self.assertFalse(protocol_helper.set_client.called)"},{"line_number":1797,"context_line":"        self.assertFalse(protocol_helper.update_access.called)"},{"line_number":1798,"context_line":""},{"line_number":1799,"context_line":"    def test_update_access_share_not_found(self):"},{"line_number":1800,"context_line":""},{"line_number":1801,"context_line":"        vserver_client \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aed3d3a_57e8c27c","line":1798,"in_reply_to":"9aed3d3a_81efb1af","updated":"2016-02-25 22:30:13.000000000","message":"Done","commit_id":"a8a793f49bfe04170b2a43428a2d4406cdbb5d22"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"bc34ceee90e9fce01515a258400cc774218f5cf0","unresolved":false,"context_lines":[{"line_number":1820,"context_line":"        share_name \u003d self.library._get_valid_share_name(fake.SHARE[\u0027id\u0027])"},{"line_number":1821,"context_line":"        mock_share_exists.assert_called_once_with(share_name, vserver_client)"},{"line_number":1822,"context_line":"        self.assertFalse(protocol_helper.set_client.called)"},{"line_number":1823,"context_line":"        self.assertFalse(protocol_helper.update_access.called)"},{"line_number":1824,"context_line":""},{"line_number":1825,"context_line":"    def test_setup_server(self):"},{"line_number":1826,"context_line":"        self.assertRaises(NotImplementedError,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aed3d3a_218345ce","line":1823,"updated":"2016-02-25 19:57:22.000000000","message":"same comment about _get_vserver","commit_id":"a8a793f49bfe04170b2a43428a2d4406cdbb5d22"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"99ac76bc87d404fe02ea1b4ceba9d4bfb4d4b3a7","unresolved":false,"context_lines":[{"line_number":1820,"context_line":"        share_name \u003d self.library._get_valid_share_name(fake.SHARE[\u0027id\u0027])"},{"line_number":1821,"context_line":"        mock_share_exists.assert_called_once_with(share_name, vserver_client)"},{"line_number":1822,"context_line":"        self.assertFalse(protocol_helper.set_client.called)"},{"line_number":1823,"context_line":"        self.assertFalse(protocol_helper.update_access.called)"},{"line_number":1824,"context_line":""},{"line_number":1825,"context_line":"    def test_setup_server(self):"},{"line_number":1826,"context_line":"        self.assertRaises(NotImplementedError,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aed3d3a_97f9aacb","line":1823,"in_reply_to":"9aed3d3a_218345ce","updated":"2016-02-25 22:30:13.000000000","message":"In this case, the assert on line 1821 proves it worked, because the vserver_client came from the mocked _get_vserver call.  But it\u0027s simple enough to add the check.  Done.","commit_id":"a8a793f49bfe04170b2a43428a2d4406cdbb5d22"}]}
