)]}'
{"manila/opts.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"1ff0c5e07d791c665dadffd97ee8008093ea9547","unresolved":false,"context_lines":[{"line_number":124,"context_line":"    manila.share.drivers.service_instance.common_opts,"},{"line_number":125,"context_line":"    manila.share.drivers.service_instance.no_share_servers_handling_mode_opts,"},{"line_number":126,"context_line":"    manila.share.drivers.service_instance.share_servers_handling_mode_opts,"},{"line_number":127,"context_line":"    manila.share.drivers.windows.winrm_helper.winrm_opts,"},{"line_number":128,"context_line":"    manila.share.drivers.zfssa.zfssashare.ZFSSA_OPTS,"},{"line_number":129,"context_line":"    manila.share.manager.share_manager_opts,"},{"line_number":130,"context_line":"    manila.volume._volume_opts,"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a4dcd0f_5c4f346a","line":127,"updated":"2015-08-14 21:50:46.000000000","message":"I wonder why \"genconfig\" job passes when it was not imported and here should be \"ImportError\". Please, import it above.","commit_id":"faf3c441f59abf90d001c22d0efa1c1ee9f48491"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"9aeca5da8791f1485c17a2deac24e410acc337be","unresolved":false,"context_lines":[{"line_number":124,"context_line":"    manila.share.drivers.service_instance.common_opts,"},{"line_number":125,"context_line":"    manila.share.drivers.service_instance.no_share_servers_handling_mode_opts,"},{"line_number":126,"context_line":"    manila.share.drivers.service_instance.share_servers_handling_mode_opts,"},{"line_number":127,"context_line":"    manila.share.drivers.windows.winrm_helper.winrm_opts,"},{"line_number":128,"context_line":"    manila.share.drivers.zfssa.zfssashare.ZFSSA_OPTS,"},{"line_number":129,"context_line":"    manila.share.manager.share_manager_opts,"},{"line_number":130,"context_line":"    manila.volume._volume_opts,"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa1b9901_4b99a51e","line":127,"in_reply_to":"1a4dcd0f_5c4f346a","updated":"2015-08-18 14:20:00.000000000","message":"Done","commit_id":"faf3c441f59abf90d001c22d0efa1c1ee9f48491"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"5cf3292bed2ba7366f722a220e0e81b5061f21f1","unresolved":false,"context_lines":[{"line_number":124,"context_line":"    manila.share.drivers.service_instance.common_opts,"},{"line_number":125,"context_line":"    manila.share.drivers.service_instance.no_share_servers_handling_mode_opts,"},{"line_number":126,"context_line":"    manila.share.drivers.service_instance.share_servers_handling_mode_opts,"},{"line_number":127,"context_line":"    manila.share.drivers.windows.winrm_helper.winrm_opts,"},{"line_number":128,"context_line":"    manila.share.drivers.zfssa.zfssashare.ZFSSA_OPTS,"},{"line_number":129,"context_line":"    manila.share.manager.share_manager_opts,"},{"line_number":130,"context_line":"    manila.volume._volume_opts,"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa1b9901_16a994df","line":127,"in_reply_to":"fa1b9901_4b99a51e","updated":"2015-08-18 14:24:27.000000000","message":"Where? In patch-set 9 - the last one for the moment, it is not done.","commit_id":"faf3c441f59abf90d001c22d0efa1c1ee9f48491"}],"manila/share/drivers/windows/winrm_helper.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"fb9b65a99c0e29c02e6248a1c9eb63bf72af3126","unresolved":false,"context_lines":[{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import base64"},{"line_number":17,"context_line":"import importlib"},{"line_number":18,"context_line":"import time"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from oslo_concurrency import processutils"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a4dcd0f_7b528468","line":17,"updated":"2015-08-07 15:54:13.000000000","message":"Should be used oslo_importutils:\n\nhttps://github.com/openstack/oslo.utils/blob/master/oslo_utils/importutils.py","commit_id":"5ec705965885b73983ffda434b945dd91783599c"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"95f8d58f4669bc3a83a79c677167b2311722fd79","unresolved":false,"context_lines":[{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import base64"},{"line_number":17,"context_line":"import importlib"},{"line_number":18,"context_line":"import time"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from oslo_concurrency import processutils"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a4dcd0f_36f6535d","line":17,"in_reply_to":"1a4dcd0f_7b528468","updated":"2015-08-07 16:28:50.000000000","message":"Done","commit_id":"5ec705965885b73983ffda434b945dd91783599c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"fb9b65a99c0e29c02e6248a1c9eb63bf72af3126","unresolved":false,"context_lines":[{"line_number":56,"context_line":"TRANSPORT_PLAINTEXT \u003d \u0027plaintext\u0027"},{"line_number":57,"context_line":"TRANSPORT_SSL \u003d \u0027ssl\u0027"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"winrm \u003d None"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"def setup_winrm():"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a4dcd0f_5b70e80a","line":59,"updated":"2015-08-07 15:54:13.000000000","message":"why this \"global\" is not uppercase as above \"globals\"?","commit_id":"5ec705965885b73983ffda434b945dd91783599c"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"95f8d58f4669bc3a83a79c677167b2311722fd79","unresolved":false,"context_lines":[{"line_number":56,"context_line":"TRANSPORT_PLAINTEXT \u003d \u0027plaintext\u0027"},{"line_number":57,"context_line":"TRANSPORT_SSL \u003d \u0027ssl\u0027"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"winrm \u003d None"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"def setup_winrm():"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a4dcd0f_b636e34e","line":59,"in_reply_to":"1a4dcd0f_5b70e80a","updated":"2015-08-07 16:28:50.000000000","message":"That will actually be used to reference the winrm module. Usually, uppercase is used for constants.\n\nI had to do this kind of ugly trick so that unit tests may run without this module.","commit_id":"5ec705965885b73983ffda434b945dd91783599c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"1ff0c5e07d791c665dadffd97ee8008093ea9547","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                _(\"PyWinrm is not installed\"))"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"class WinRMHelper(object):"},{"line_number":73,"context_line":"    def __init__(self, configuration\u003dNone):"},{"line_number":74,"context_line":"        if configuration:"},{"line_number":75,"context_line":"            configuration.append_config_values(winrm_opts)"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a4dcd0f_fcc880aa","line":72,"updated":"2015-08-14 21:50:46.000000000","message":"\"coverage\" job says that 7 statements (not lines) are not covered with unit tests. Can you please address it?","commit_id":"faf3c441f59abf90d001c22d0efa1c1ee9f48491"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"9aeca5da8791f1485c17a2deac24e410acc337be","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                _(\"PyWinrm is not installed\"))"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"class WinRMHelper(object):"},{"line_number":73,"context_line":"    def __init__(self, configuration\u003dNone):"},{"line_number":74,"context_line":"        if configuration:"},{"line_number":75,"context_line":"            configuration.append_config_values(winrm_opts)"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa1b9901_cbfe1538","line":72,"in_reply_to":"1a4dcd0f_fcc880aa","updated":"2015-08-18 14:20:00.000000000","message":"Done","commit_id":"faf3c441f59abf90d001c22d0efa1c1ee9f48491"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"1ff0c5e07d791c665dadffd97ee8008093ea9547","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        if retry and self._config.winrm_retry_count:"},{"line_number":97,"context_line":"            attempts +\u003d self._config.winrm_retry_count"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        while attempts:"},{"line_number":100,"context_line":"            try:"},{"line_number":101,"context_line":"                return self._execute(conn, command, check_exit_code)"},{"line_number":102,"context_line":"            except Exception as ex:"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a4dcd0f_fcf16002","line":99,"updated":"2015-08-14 21:50:46.000000000","message":"Are you aware about existing \"retry\" util located in [1]?\n\n[1] https://github.com/openstack/manila/blob/88c4d72f/manila/utils.py#L479","commit_id":"faf3c441f59abf90d001c22d0efa1c1ee9f48491"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"9aeca5da8791f1485c17a2deac24e410acc337be","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        if retry and self._config.winrm_retry_count:"},{"line_number":97,"context_line":"            attempts +\u003d self._config.winrm_retry_count"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        while attempts:"},{"line_number":100,"context_line":"            try:"},{"line_number":101,"context_line":"                return self._execute(conn, command, check_exit_code)"},{"line_number":102,"context_line":"            except Exception as ex:"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa1b9901_896aa519","line":99,"in_reply_to":"1a4dcd0f_fcf16002","updated":"2015-08-18 14:20:00.000000000","message":"I was not aware of that, thanks for letting me know about it! I\u0027ll use that.","commit_id":"faf3c441f59abf90d001c22d0efa1c1ee9f48491"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"05e24bce116c3d37ebcdcd35d4626ae819fbcf40","unresolved":false,"context_lines":[{"line_number":66,"context_line":"            winrm \u003d importutils.import_module(\u0027winrm\u0027)"},{"line_number":67,"context_line":"        except ImportError:"},{"line_number":68,"context_line":"            raise exception.ShareBackendException("},{"line_number":69,"context_line":"                _(\"PyWinrm is not installed\"))"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"class WinRMHelper(object):"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa1b9901_207f31e1","line":69,"updated":"2015-08-26 14:42:01.000000000","message":"Any notes about its expected version?","commit_id":"39cb200cbf3ca66faca7915fac997adc889a4aa3"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"062cfd28b14be5b58ab4e89eff37c7180d491750","unresolved":false,"context_lines":[{"line_number":66,"context_line":"            winrm \u003d importutils.import_module(\u0027winrm\u0027)"},{"line_number":67,"context_line":"        except ImportError:"},{"line_number":68,"context_line":"            raise exception.ShareBackendException("},{"line_number":69,"context_line":"                _(\"PyWinrm is not installed\"))"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"class WinRMHelper(object):"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa1b9901_15282e99","line":69,"in_reply_to":"fa1b9901_207f31e1","updated":"2015-08-26 15:06:59.000000000","message":"At the moment, there is only one version released on PyPi, for which reason I did not specify any version requirements.","commit_id":"39cb200cbf3ca66faca7915fac997adc889a4aa3"}],"manila/tests/share/drivers/windows/test_winrm_helper.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"fa1c58712e6812d8e84339e5fbd2706363c923a3","unresolved":false,"context_lines":[{"line_number":18,"context_line":"from oslo_utils import strutils"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from manila import exception"},{"line_number":21,"context_line":"from manila.share.drivers.windows import winrm_helper"},{"line_number":22,"context_line":"from manila import test"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_8fa9f7df","line":21,"updated":"2015-07-31 13:02:29.000000000","message":"Failure here running unit tests if \"PyWinrm\" is not installed. That is True for current list of deps.","commit_id":"bc8c2989165b3a10cf462a48720bc9602cd143e6"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"9661b96f1a3b0a79ce7438574c65ce8f6dba972e","unresolved":false,"context_lines":[{"line_number":18,"context_line":"from oslo_utils import strutils"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from manila import exception"},{"line_number":21,"context_line":"from manila.share.drivers.windows import winrm_helper"},{"line_number":22,"context_line":"from manila import test"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_6f4a6b29","line":21,"in_reply_to":"3a50d1a3_8fa9f7df","updated":"2015-07-31 13:05:35.000000000","message":"I\u0027ll simply mock this library and perform the import afterwards. I\u0027d avoid adding it as a requirement as it\u0027s required only by the Windows driver.","commit_id":"bc8c2989165b3a10cf462a48720bc9602cd143e6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"fb9b65a99c0e29c02e6248a1c9eb63bf72af3126","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    @mock.patch(\u0027time.sleep\u0027)"},{"line_number":50,"context_line":"    @mock.patch.object(winrm_helper.WinRMHelper, \u0027_get_conn\u0027)"},{"line_number":51,"context_line":"    @mock.patch.object(winrm_helper.WinRMHelper, \u0027_execute\u0027)"},{"line_number":52,"context_line":"    def _test_execute(self, mock_execute, mock_get_conn, mock_sleep,"},{"line_number":53,"context_line":"                      expected_try_count\u003d1, retry\u003dTrue, retry_count\u003d1,"},{"line_number":54,"context_line":"                      side_effect\u003dNone, expected_exception\u003dNone):"},{"line_number":55,"context_line":"        self.flags(winrm_retry_count\u003dretry_count)"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a4dcd0f_5bb30898","line":52,"updated":"2015-08-07 15:54:13.000000000","message":"We have \"ddt\" module for case when we want to do \"data-driven-testing\".\n\nExample: https://github.com/openstack/manila/blob/a72f8894/manila/tests/share/test_driver.py#L133","commit_id":"5ec705965885b73983ffda434b945dd91783599c"},{"author":{"_account_id":8543,"name":"Lucian Petrut","email":"lpetrut@cloudbasesolutions.com","username":"plucian"},"change_message_id":"95f8d58f4669bc3a83a79c677167b2311722fd79","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    @mock.patch(\u0027time.sleep\u0027)"},{"line_number":50,"context_line":"    @mock.patch.object(winrm_helper.WinRMHelper, \u0027_get_conn\u0027)"},{"line_number":51,"context_line":"    @mock.patch.object(winrm_helper.WinRMHelper, \u0027_execute\u0027)"},{"line_number":52,"context_line":"    def _test_execute(self, mock_execute, mock_get_conn, mock_sleep,"},{"line_number":53,"context_line":"                      expected_try_count\u003d1, retry\u003dTrue, retry_count\u003d1,"},{"line_number":54,"context_line":"                      side_effect\u003dNone, expected_exception\u003dNone):"},{"line_number":55,"context_line":"        self.flags(winrm_retry_count\u003dretry_count)"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a4dcd0f_91e651ae","line":52,"in_reply_to":"1a4dcd0f_5bb30898","updated":"2015-08-07 16:28:50.000000000","message":"As stated on a separate patch, it seems to me that this approach makes it easier to understand what went wrong when an UT fails. I can switch to ddt though.","commit_id":"5ec705965885b73983ffda434b945dd91783599c"}]}
