)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"52103ad365c97535feeb02a9b3ca554beb8c9e7d","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     nidhimittalhada \u003cnidhimittal19@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-10-26 18:19:24 +0530"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Attr \"is_public\" can not be set for share using API \"manage\""},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This fix allows manila-manage command to explicitly"},{"line_number":10,"context_line":"set visibility (key \u0027--public\u0027) similar to using API"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3a29b11f_8467c724","line":7,"updated":"2015-10-26 13:40:20.000000000","message":"Please rewrite this line to be under 50 characters. \n\nhttps://wiki.openstack.org/wiki/GitCommitMessages","commit_id":"876a3dc4b7598265f60c5b7538bf114e04a331bf"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0fe000a2c17b5705aa1fc967853d66862246dd68","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     nidhimittalhada \u003cnidhimittal19@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-10-29 13:53:35 +0530"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\"is_public\" can\u0027t be set for share by API \"manage\""},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This fix allows manila-manage command to explicitly"},{"line_number":10,"context_line":"set visibility (key \u0027--public\u0027) similar to using API"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1a26ad4f_b0821cff","line":7,"updated":"2015-10-29 15:03:23.000000000","message":"This is confusing, I suggest changing this to \n\n\nAPI \u0027manage\u0027 can set share attr \u0027is_public\u0027","commit_id":"340c3b9e05bb9a9143bec66c6af7999bf83d607f"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"897dbd6f7a22ec2ff9957efcd80c7947cb7069e7","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     nidhimittalhada \u003cnidhimittal19@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-11-09 17:21:35 +0530"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"API \u0027manage\u0027 can set share attr \u0027is_public\u0027"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This fix allows manila-manage command to explicitly"},{"line_number":10,"context_line":"set visibility (key \u0027--public\u0027) similar to using API"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"da85f559_de36df02","line":7,"updated":"2015-11-09 13:20:51.000000000","message":"\"\"\"\n\nAllow to set share visibility explicitly using \"manage\" API.\n\n\"\"\"\n\nAs you already have written in https://review.openstack.org/#/c/238850/8/manila/api/openstack/rest_api_version_history.rst","commit_id":"2e5c1a680a1cbebe904d3e2a03b809260d8519c1"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"f1529b65067a5d5c036bbd79d8029ed2127e1bec","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     nidhimittalhada \u003cnidhimittal19@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-11-09 17:21:35 +0530"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"API \u0027manage\u0027 can set share attr \u0027is_public\u0027"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This fix allows manila-manage command to explicitly"},{"line_number":10,"context_line":"set visibility (key \u0027--public\u0027) similar to using API"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"da85f559_849ec154","line":7,"in_reply_to":"da85f559_de36df02","updated":"2015-11-09 15:10:22.000000000","message":"That\u0027s longer than 50 chars :)","commit_id":"2e5c1a680a1cbebe904d3e2a03b809260d8519c1"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"f378163df1dc34ca9c61c7f2ef8837151899b228","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Allow to set share visibility using \"manage\" API"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This fix allows manila-manage command to explicitly"},{"line_number":10,"context_line":"set visibility (key \u0027--public\u0027) similar to using API"},{"line_number":11,"context_line":"\"create\"."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"da85f559_f6251a0a","line":9,"updated":"2015-11-13 12:10:33.000000000","message":"This description looks confusing because \"manila-manage\" is another completely different command... please describe it as \"manila manage\".","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"}],"manila/api/contrib/share_manage.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"25f9f17a6f4b14b1ebe249062c500742821be229","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        return self._view_builder.detail(req, share_ref)"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    @wsgi.Controller.api_version(\"2.7\")  # noqa"},{"line_number":74,"context_line":"    def create(self, req, body):"},{"line_number":75,"context_line":"        context \u003d req.environ[\u0027manila.context\u0027]"},{"line_number":76,"context_line":"        authorize(context)"},{"line_number":77,"context_line":"        share_data \u003d self._validate_manage_parameters(context, body)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a29b11f_bd59eafe","line":74,"updated":"2015-10-23 11:58:02.000000000","message":"This copy-paste should be removed and one private method should be reused by two other that have decorator for microversions..","commit_id":"6ae6c4b507ac7eb6b186f2c3501a7355078a5ffd"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"52103ad365c97535feeb02a9b3ca554beb8c9e7d","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        detail \u003d self._create(req, body, True)"},{"line_number":47,"context_line":"        return detail"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def _create(self, req, body, *args):"},{"line_number":50,"context_line":"        context \u003d req.environ[\u0027manila.context\u0027]"},{"line_number":51,"context_line":"        authorize(context)"},{"line_number":52,"context_line":"        share_data \u003d self._validate_manage_parameters(context, body)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_0422d7b9","line":49,"updated":"2015-10-26 13:40:20.000000000","message":"Please use a kwarg. \u0027is_public\u003dFalse\u0027","commit_id":"876a3dc4b7598265f60c5b7538bf114e04a331bf"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0fe000a2c17b5705aa1fc967853d66862246dd68","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        detail \u003d self._create(req, body, is_public\u003dTrue)"},{"line_number":47,"context_line":"        return detail"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def _create(self, req, body, **kwargs):"},{"line_number":50,"context_line":"        context \u003d req.environ[\u0027manila.context\u0027]"},{"line_number":51,"context_line":"        authorize(context)"},{"line_number":52,"context_line":"        share_data \u003d self._validate_manage_parameters(context, body)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a26ad4f_21e80010","line":49,"updated":"2015-10-29 15:03:23.000000000","message":"I apologize for my comment in Patchset 3.. why do you need extra argument/kwargs here?\n\nYou are expecting \u0027is_public\u0027 to be there in body[\u0027share\u0027] ... \n\n1) Going by your shares client change in manila_tempest_tests\n\nhttps://review.openstack.org/#/c/238850/4/manila_tempest_tests/services/share/json/shares_client.py\n\nand, \n\n2) Your change in python-manilaclient\n\nhttps://review.openstack.org/#/c/230963/1/manilaclient/v1/shares.py","commit_id":"340c3b9e05bb9a9143bec66c6af7999bf83d607f"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0fe000a2c17b5705aa1fc967853d66862246dd68","unresolved":false,"context_lines":[{"line_number":68,"context_line":"            \u0027display_description\u0027: description,"},{"line_number":69,"context_line":"        }"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"        for key in kwargs:"},{"line_number":72,"context_line":"            if key \u003d\u003d \u0027is_public\u0027 and kwargs[key] is True:"},{"line_number":73,"context_line":"                share[\u0027is_public\u0027] \u003d share_data[\u0027is_public\u0027]"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1a26ad4f_30f36ca0","line":71,"updated":"2015-10-29 15:03:23.000000000","message":"You don\u0027t need kwargs here as mentioned above, you need:\n\n      is_public \u003d share_data.get(\u0027is_public\u0027, False)\n\nAnd for sanity checking, you can do: (you would have to import strutils from oslo_utils) - This is being done in the share api...\n\n      try:\n            share[\u0027is_public\u0027] \u003d strutils.bool_from_string(is_public, strict\u003dTrue)\n      except ValueError as e:\n            raise exception.InvalidParameterValue(six.text_type(e))","commit_id":"340c3b9e05bb9a9143bec66c6af7999bf83d607f"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9f5eb42f6d533348067847e5ad372c84d7dd73d7","unresolved":false,"context_lines":[{"line_number":37,"context_line":"        self.share_api \u003d share.API()"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    @wsgi.Controller.api_version(\"1.0\", \"2.6\")"},{"line_number":40,"context_line":"    def create(self, req, body):"},{"line_number":41,"context_line":"        detail \u003d self._create(req, body)"},{"line_number":42,"context_line":"        return detail"},{"line_number":43,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"fa80f949_bc30bc57","line":40,"updated":"2015-11-04 14:25:07.000000000","message":"I suggest taking a look at how we solved the issue of extra keys in manila/api/v1/shares.py. I think that approach is readable.. \n\nIn this method (for versions 1.0-2.6), you should remove the is_public attribute if provided:\n\n\n\n     @wsgi.Controller.api_version(\"1.0\", \"2.6\")\n     def create(self, req, body):\n         body.get(\u0027share\u0027, {}).pop(\u0027is_public\u0027, None)\n         detail \u003d self._create(req, body)\n         return detail","commit_id":"15c9a99dd9d12f22a57f5fdd1a79a5d90c03bb53"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9f5eb42f6d533348067847e5ad372c84d7dd73d7","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    @wsgi.Controller.api_version(\"2.7\")  # noqa"},{"line_number":45,"context_line":"    def create(self, req, body):"},{"line_number":46,"context_line":"        detail \u003d self._create(req, body, is_public\u003dTrue)"},{"line_number":47,"context_line":"        return detail"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def _create(self, req, body, **kwargs):"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa80f949_3c6b6c20","line":46,"updated":"2015-11-04 14:25:07.000000000","message":"In line with earlier change, change this to:\n\n    detail \u003d self._create(req, body)","commit_id":"15c9a99dd9d12f22a57f5fdd1a79a5d90c03bb53"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9f5eb42f6d533348067847e5ad372c84d7dd73d7","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        detail \u003d self._create(req, body, is_public\u003dTrue)"},{"line_number":47,"context_line":"        return detail"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def _create(self, req, body, **kwargs):"},{"line_number":50,"context_line":"        context \u003d req.environ[\u0027manila.context\u0027]"},{"line_number":51,"context_line":"        authorize(context)"},{"line_number":52,"context_line":"        share_data \u003d self._validate_manage_parameters(context, body)"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa80f949_5c5af084","line":49,"updated":"2015-11-04 14:25:07.000000000","message":"remove kwargs here..","commit_id":"15c9a99dd9d12f22a57f5fdd1a79a5d90c03bb53"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9f5eb42f6d533348067847e5ad372c84d7dd73d7","unresolved":false,"context_lines":[{"line_number":68,"context_line":"            \u0027display_description\u0027: description,"},{"line_number":69,"context_line":"        }"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"        for key in kwargs:"},{"line_number":72,"context_line":"            if key \u003d\u003d \u0027is_public\u0027 and kwargs[key] is True:"},{"line_number":73,"context_line":"                share[\u0027is_public\u0027] \u003d share_data[\u0027is_public\u0027]"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"fa80f949_fce2c49e","line":71,"updated":"2015-11-04 14:25:07.000000000","message":"You don\u0027t need kwargs here as mentioned above, you need:\n\n\n      is_public \u003d share_data.get(\u0027is_public\u0027, False)\n\n\nAnd for sanity checking, you can do: (you would have to import strutils from oslo_utils) - This is being done in the share api...\n\n\n      try:\n            share[\u0027is_public\u0027] \u003d strutils.bool_from_string(is_public, strict\u003dTrue)\n      except ValueError as e:\n            raise exception.InvalidParameterValue(six.text_type(e))","commit_id":"15c9a99dd9d12f22a57f5fdd1a79a5d90c03bb53"}],"manila/api/openstack/api_version_request.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"15fdee5323fd017b2c3454f906668f96eb51d64c","unresolved":false,"context_lines":[{"line_number":60,"context_line":"# The default api version request is defined to be the"},{"line_number":61,"context_line":"# the minimum version of the API supported."},{"line_number":62,"context_line":"_MIN_API_VERSION \u003d \"2.0\""},{"line_number":63,"context_line":"_MAX_API_VERSION \u003d \"2.7\""},{"line_number":64,"context_line":"DEFAULT_API_VERSION \u003d _MIN_API_VERSION"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"9a8ffd7b_a5d85a1f","line":63,"updated":"2015-12-02 12:21:50.000000000","message":"This has to be incremented to 2.8","commit_id":"e2d7984761415361c3e3168ec7b51a2993afcde0"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"248cbd8faf666a2861f0219a33507fb72070878e","unresolved":false,"context_lines":[{"line_number":60,"context_line":"# The default api version request is defined to be the"},{"line_number":61,"context_line":"# the minimum version of the API supported."},{"line_number":62,"context_line":"_MIN_API_VERSION \u003d \"2.0\""},{"line_number":63,"context_line":"_MAX_API_VERSION \u003d \"2.7\""},{"line_number":64,"context_line":"DEFAULT_API_VERSION \u003d _MIN_API_VERSION"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"9a8ffd7b_8ef4535b","line":63,"in_reply_to":"9a8ffd7b_a5d85a1f","updated":"2015-12-02 13:11:37.000000000","message":"+1","commit_id":"e2d7984761415361c3e3168ec7b51a2993afcde0"}],"manila/api/openstack/rest_api_version_history.rst":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"25f9f17a6f4b14b1ebe249062c500742821be229","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"2.7"},{"line_number":66,"context_line":"---"},{"line_number":67,"context_line":"  Set visibility of share explicitly by using key \u0027--public\u0027 in API manage"},{"line_number":68,"context_line":"  similar to API \"create\"."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a29b11f_fd520212","line":67,"updated":"2015-10-23 11:58:02.000000000","message":"Allow to set share visibility explicitly using \"manage\" API.","commit_id":"6ae6c4b507ac7eb6b186f2c3501a7355078a5ffd"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"15fdee5323fd017b2c3454f906668f96eb51d64c","unresolved":false,"context_lines":[{"line_number":68,"context_line":""},{"line_number":69,"context_line":"2.8"},{"line_number":70,"context_line":"---"},{"line_number":71,"context_line":"Allow to set share visibility explicitly using \"manage\" API."}],"source_content_type":"text/x-rst","patch_set":22,"id":"9a8ffd7b_25322a5f","line":71,"updated":"2015-12-02 12:21:50.000000000","message":"Please use a one level indent like the descriptions above.","commit_id":"e2d7984761415361c3e3168ec7b51a2993afcde0"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"248cbd8faf666a2861f0219a33507fb72070878e","unresolved":false,"context_lines":[{"line_number":68,"context_line":""},{"line_number":69,"context_line":"2.8"},{"line_number":70,"context_line":"---"},{"line_number":71,"context_line":"Allow to set share visibility explicitly using \"manage\" API."}],"source_content_type":"text/x-rst","patch_set":22,"id":"9a8ffd7b_ee039f40","line":71,"in_reply_to":"9a8ffd7b_25322a5f","updated":"2015-12-02 13:11:37.000000000","message":"+1","commit_id":"e2d7984761415361c3e3168ec7b51a2993afcde0"}],"manila/api/v1/share_manage.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"897dbd6f7a22ec2ff9957efcd80c7947cb7069e7","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    @wsgi.Controller.api_version(\"1.0\", \"2.6\")"},{"line_number":39,"context_line":"    def create(self, req, body):"},{"line_number":40,"context_line":"        # TODO(vponomaryov): move it to shares controller."},{"line_number":41,"context_line":"        if body.get(\u0027share\u0027) is not None:"},{"line_number":42,"context_line":"            body.get(\u0027share\u0027, {}).pop(\u0027is_public\u0027, None)"},{"line_number":43,"context_line":"        detail \u003d self._create(req, body)"},{"line_number":44,"context_line":"        return detail"}],"source_content_type":"text/x-python","patch_set":8,"id":"da85f559_a15c1c26","line":41,"updated":"2015-11-09 13:20:51.000000000","message":"Condition on line 41 is redundant. Line 42 will work ok without this condition.","commit_id":"2e5c1a680a1cbebe904d3e2a03b809260d8519c1"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"f1529b65067a5d5c036bbd79d8029ed2127e1bec","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    @wsgi.Controller.api_version(\"1.0\", \"2.6\")"},{"line_number":39,"context_line":"    def create(self, req, body):"},{"line_number":40,"context_line":"        # TODO(vponomaryov): move it to shares controller."},{"line_number":41,"context_line":"        if body.get(\u0027share\u0027) is not None:"},{"line_number":42,"context_line":"            body.get(\u0027share\u0027, {}).pop(\u0027is_public\u0027, None)"},{"line_number":43,"context_line":"        detail \u003d self._create(req, body)"},{"line_number":44,"context_line":"        return detail"}],"source_content_type":"text/x-python","patch_set":8,"id":"da85f559_e4c46d41","line":41,"in_reply_to":"da85f559_a15c1c26","updated":"2015-11-09 15:10:22.000000000","message":"+1. True..","commit_id":"2e5c1a680a1cbebe904d3e2a03b809260d8519c1"},{"author":{"_account_id":16305,"name":"NidhiMittalHada","email":"nidhimittal19@gmail.com","username":"nidhimittalhada"},"change_message_id":"85c81766b365fa0e8812eadb6d25b69ed0a9cd3e","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    @wsgi.Controller.api_version(\"1.0\", \"2.6\")"},{"line_number":39,"context_line":"    def create(self, req, body):"},{"line_number":40,"context_line":"        # TODO(vponomaryov): move it to shares controller."},{"line_number":41,"context_line":"        if body.get(\u0027share\u0027) is not None:"},{"line_number":42,"context_line":"            body.get(\u0027share\u0027, {}).pop(\u0027is_public\u0027, None)"},{"line_number":43,"context_line":"        detail \u003d self._create(req, body)"},{"line_number":44,"context_line":"        return detail"}],"source_content_type":"text/x-python","patch_set":8,"id":"da85f559_5437fee2","line":41,"in_reply_to":"da85f559_e4c46d41","updated":"2015-11-12 09:32:10.000000000","message":"No, pop operation is not allowed on Nonetype object.. such kind of error comes when a test failed .. if line 41 is not used.. \n.\n.\n.\n.\n\nTraceback (most recent call last):\n  File \"/opt/stack/manila/.tox/py27/local/lib/python2.7/site-packages/ddt.py\", line 146, in wrapper\n    return func(self, *args, **kwargs)\n  File \"manila/tests/api/v1/test_share_manage.py\", line 59, in test_share_manage_invalid_body\n    body)\n  File \"/opt/stack/manila/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py\", line 422, in assertRaises\n    self.assertThat(our_callable, matcher)\n  File \"/opt/stack/manila/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py\", line 433, in assertThat\n    mismatch_error \u003d self._matchHelper(matchee, matcher, message, verbose)\n  File \"/opt/stack/manila/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py\", line 483, in _matchHelper\n    mismatch \u003d matcher.match(matchee)\n  File \"/opt/stack/manila/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py\", line 108, in match\n    mismatch \u003d self.exception_matcher.match(exc_info)\n  File \"/opt/stack/manila/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py\", line 62, in match\n    mismatch \u003d matcher.match(matchee)\n  File \"/opt/stack/manila/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py\", line 414, in match\n    reraise(*matchee)\n  File \"/opt/stack/manila/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py\", line 101, in match\n    result \u003d matchee()\n  File \"/opt/stack/manila/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py\", line 969, in __call__\n    return self._callable_object(*self._args, **self._kwargs)\n  File \"manila/api/openstack/wsgi.py\", line 1048, in version_select\n    return func.func(self, *args, **kwargs)\n  File \"manila/api/v1/share_manage.py\", line 42, in create\n    body.get(\u0027share\u0027, {}).pop(\u0027is_public\u0027, None)\nAttributeError: \u0027NoneType\u0027 object has no attribute \u0027pop\u0027","commit_id":"2e5c1a680a1cbebe904d3e2a03b809260d8519c1"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4a10c6c250ec89410ef27636f7fd799f5b25bd88","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    @wsgi.Controller.api_version(\"1.0\", \"2.6\")"},{"line_number":39,"context_line":"    def create(self, req, body):"},{"line_number":40,"context_line":"        # TODO(vponomaryov): move it to shares controller."},{"line_number":41,"context_line":"        if body.get(\u0027share\u0027) is not None:"},{"line_number":42,"context_line":"            body.get(\u0027share\u0027, {}).pop(\u0027is_public\u0027, None)"},{"line_number":43,"context_line":"        detail \u003d self._create(req, body)"}],"source_content_type":"text/x-python","patch_set":9,"id":"da85f559_86e97ce8","line":40,"updated":"2015-11-11 12:17:45.000000000","message":"This \"TODO\" related to \"_create\" method after your update.","commit_id":"33be4712513117dfa0b3b2f199dfa5591053b654"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4a10c6c250ec89410ef27636f7fd799f5b25bd88","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    @wsgi.Controller.api_version(\"1.0\", \"2.6\")"},{"line_number":39,"context_line":"    def create(self, req, body):"},{"line_number":40,"context_line":"        # TODO(vponomaryov): move it to shares controller."},{"line_number":41,"context_line":"        if body.get(\u0027share\u0027) is not None:"},{"line_number":42,"context_line":"            body.get(\u0027share\u0027, {}).pop(\u0027is_public\u0027, None)"},{"line_number":43,"context_line":"        detail \u003d self._create(req, body)"},{"line_number":44,"context_line":"        return detail"}],"source_content_type":"text/x-python","patch_set":9,"id":"da85f559_866adcb1","line":41,"updated":"2015-11-11 12:17:45.000000000","message":"Comment from patch-set 8 still not addressed.","commit_id":"33be4712513117dfa0b3b2f199dfa5591053b654"},{"author":{"_account_id":16305,"name":"NidhiMittalHada","email":"nidhimittal19@gmail.com","username":"nidhimittalhada"},"change_message_id":"da231bfc13a064a46cef3c15a321b26b1256bb2c","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    @wsgi.Controller.api_version(\"1.0\", \"2.6\")"},{"line_number":39,"context_line":"    def create(self, req, body):"},{"line_number":40,"context_line":"        # TODO(vponomaryov): move it to shares controller."},{"line_number":41,"context_line":"        if body.get(\u0027share\u0027) is not None:"},{"line_number":42,"context_line":"            body.get(\u0027share\u0027, {}).pop(\u0027is_public\u0027, None)"},{"line_number":43,"context_line":"        detail \u003d self._create(req, body)"},{"line_number":44,"context_line":"        return detail"}],"source_content_type":"text/x-python","patch_set":9,"id":"da85f559_dbcded66","line":41,"in_reply_to":"da85f559_866adcb1","updated":"2015-11-12 09:30:35.000000000","message":"Replied in patchset 8 too.. if this check for NoneType is removed.. then a test fails which says pop operation is not allowed on Nonetype.","commit_id":"33be4712513117dfa0b3b2f199dfa5591053b654"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"918242903bacc0eb65e65f809661f9f745060151","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    @wsgi.Controller.api_version(\"1.0\", \"2.6\")"},{"line_number":39,"context_line":"    def create(self, req, body):"},{"line_number":40,"context_line":"        if body.get(\u0027share\u0027) is not None:"},{"line_number":41,"context_line":"            body.get(\u0027share\u0027, {}).pop(\u0027is_public\u0027, None)"},{"line_number":42,"context_line":"        detail \u003d self._create(req, body)"},{"line_number":43,"context_line":"        return detail"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_92e5e809","line":40,"updated":"2015-11-12 16:06:55.000000000","message":"One of the unit tests was wrong.. So that\u0027s why the failure. Please remove line 40 here and check my comment in test_share_manage.py","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":16305,"name":"NidhiMittalHada","email":"nidhimittal19@gmail.com","username":"nidhimittalhada"},"change_message_id":"1d248f3ac3c4f5b0a92fd2c6210344efa92ee7d3","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    @wsgi.Controller.api_version(\"1.0\", \"2.6\")"},{"line_number":39,"context_line":"    def create(self, req, body):"},{"line_number":40,"context_line":"        if body.get(\u0027share\u0027) is not None:"},{"line_number":41,"context_line":"            body.get(\u0027share\u0027, {}).pop(\u0027is_public\u0027, None)"},{"line_number":42,"context_line":"        detail \u003d self._create(req, body)"},{"line_number":43,"context_line":"        return detail"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_93c94e5d","line":40,"in_reply_to":"da85f559_92e5e809","updated":"2015-11-13 06:18:06.000000000","message":"Done","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"471350967e48626939494c9fd86ffb5ea7477746","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    @wsgi.Controller.api_version(\"2.7\")  # noqa"},{"line_number":46,"context_line":"    @wsgi.Controller.authorize(\u0027manage\u0027)"},{"line_number":47,"context_line":"    def create(self, req, body):"},{"line_number":48,"context_line":"        detail \u003d self._create(req, body)"},{"line_number":49,"context_line":"        return detail"},{"line_number":50,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"ba8a016a_4447521d","line":47,"updated":"2015-11-23 16:30:30.000000000","message":"Line 47 should have comment \"# pylint: disable\u003dE0102\"\n\nExample: https://github.com/openstack/manila/blob/dddc0688/manila/api/versions.py#L89\n\npylint job fails because of it.","commit_id":"86bb9a6493f9e92a45cd7349eb8ef90b0a4b59ea"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"15fdee5323fd017b2c3454f906668f96eb51d64c","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"class ShareManageMixin(object):"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    def _manage(self, req, body):"},{"line_number":31,"context_line":"        context \u003d req.environ[\u0027manila.context\u0027]"},{"line_number":32,"context_line":"        share_data \u003d self._validate_manage_parameters(context, body)"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"9a8ffd7b_65191288","line":30,"updated":"2015-12-02 12:21:50.000000000","message":"Why was the authorize decorator moved to decorate the create methods in the Controller?\n\nNot that it makes a huge difference.. but is there a reason?","commit_id":"e2d7984761415361c3e3168ec7b51a2993afcde0"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"248cbd8faf666a2861f0219a33507fb72070878e","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        super(self.__class__, self).__init__(*args, **kwargs)"},{"line_number":121,"context_line":"        self.share_api \u003d share.API()"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"    @wsgi.Controller.api_version(\u00271.0\u0027, \u00272.7\u0027)"},{"line_number":124,"context_line":"    @wsgi.Controller.authorize(\u0027manage\u0027)"},{"line_number":125,"context_line":"    def create(self, req, body):"},{"line_number":126,"context_line":"        body.get(\u0027share\u0027, {}).pop(\u0027is_public\u0027, None)"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a8ffd7b_0e24e3c2","line":123,"updated":"2015-12-02 13:11:37.000000000","message":"It is incorrect place to do changes for manage operation.\n\nChanges should be done in v2 shares API module here - https://github.com/openstack/manila/blob/2467ccf2/manila/api/v2/shares.py#L140","commit_id":"e2d7984761415361c3e3168ec7b51a2993afcde0"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"314779b903394af4174da0f472a6312e44830019","unresolved":false,"context_lines":[{"line_number":125,"context_line":"    def create(self, req, body):"},{"line_number":126,"context_line":"        \"\"\"Legacy method for \u0027manage share\u0027 operation."},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"        Should be removed when minimum API version becomes equal to or"},{"line_number":129,"context_line":"        greater than v2.7"},{"line_number":130,"context_line":"        \"\"\""},{"line_number":131,"context_line":"        return self._manage(req, body)"}],"source_content_type":"text/x-python","patch_set":23,"id":"9a8ffd7b_cf33f012","line":128,"updated":"2015-12-03 13:06:23.000000000","message":"This one should remove \"is_public\" key in the same way as it is done in https://review.openstack.org/#/c/238850/23/manila/api/v2/shares.py on line 141.\n\nFor the moment, behaviour is changed for manage operation using APIs 1.0-2.6","commit_id":"c7c0783ac257a01c7457a2e9f312dc9367584cc0"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"cd64a9c29f48ca443f97da0cc56176bfe1e3febc","unresolved":false,"context_lines":[{"line_number":125,"context_line":"    def create(self, req, body):"},{"line_number":126,"context_line":"        \"\"\"Legacy method for \u0027manage share\u0027 operation."},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"        Should be removed when minimum API version becomes equal to or"},{"line_number":129,"context_line":"        greater than v2.7"},{"line_number":130,"context_line":"        \"\"\""},{"line_number":131,"context_line":"        return self._manage(req, body)"}],"source_content_type":"text/x-python","patch_set":23,"id":"9a8ffd7b_29e5d7da","line":128,"in_reply_to":"9a8ffd7b_cf33f012","updated":"2015-12-03 13:42:24.000000000","message":"Ah, true\n\nbody.get(\u0027share\u0027, {}).pop(\u0027is_public\u0027, None)","commit_id":"c7c0783ac257a01c7457a2e9f312dc9367584cc0"}],"manila/api/v2/shares.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"cd64a9c29f48ca443f97da0cc56176bfe1e3febc","unresolved":false,"context_lines":[{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    @wsgi.Controller.api_version(\u00272.7\u0027)"},{"line_number":140,"context_line":"    def manage(self, req, body):"},{"line_number":141,"context_line":"        body.get(\u0027share\u0027, {}).pop(\u0027is_public\u0027, None)"},{"line_number":142,"context_line":"        detail \u003d self._manage(req, body)"},{"line_number":143,"context_line":"        return detail"},{"line_number":144,"context_line":""}],"source_content_type":"text/x-python","patch_set":23,"id":"9a8ffd7b_e9410faa","line":141,"updated":"2015-12-03 13:42:24.000000000","message":"It\u0027s being done here for 2.7, should be done in the v1 file for 1.0 to 2.6 as well.","commit_id":"c7c0783ac257a01c7457a2e9f312dc9367584cc0"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"d4bc01672adf6fef617ddaa6a97a007bd60f0b9d","unresolved":false,"context_lines":[{"line_number":136,"context_line":"        \"\"\"Shrink size of a share.\"\"\""},{"line_number":137,"context_line":"        return self._shrink(req, id, body)"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    @wsgi.Controller.api_version(\u00272.7\u0027)"},{"line_number":140,"context_line":"    def manage(self, req, body):"},{"line_number":141,"context_line":"        body.get(\u0027share\u0027, {}).pop(\u0027is_public\u0027, None)"},{"line_number":142,"context_line":"        detail \u003d self._manage(req, body)"}],"source_content_type":"text/x-python","patch_set":24,"id":"7a740942_61c055e1","line":139,"updated":"2015-12-04 19:13:12.000000000","message":"Because you added a 2.8 version, shouldn\u0027t this line be:\n\n   @wsgi.Controller.api_version(\u00272.7\u0027, \u00272.7\u0027)","commit_id":"04878c7182f3d19d7dd7ff3fbc5742d2a459e3fc"}],"manila/tests/api/contrib/test_share_manage.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"25f9f17a6f4b14b1ebe249062c500742821be229","unresolved":false,"context_lines":[{"line_number":166,"context_line":"    @ddt.data("},{"line_number":167,"context_line":"        get_fake_manage_body(name\u003d\u0027foo\u0027, description\u003d\u0027bar\u0027, is_public\u003dTrue)"},{"line_number":168,"context_line":"    )"},{"line_number":169,"context_line":"    def test_share_manage_with_is_public(self, data):"},{"line_number":170,"context_line":"        self._setup_manage_mocks()"},{"line_number":171,"context_line":"        return_share \u003d {\u0027share_type_id\u0027: \u0027\u0027, \u0027id\u0027: \u0027fake\u0027}"},{"line_number":172,"context_line":"        self.mock_object("}],"source_content_type":"text/x-python","patch_set":2,"id":"3a29b11f_9d3f4e86","line":169,"updated":"2015-10-23 11:58:02.000000000","message":"This test duplicates lion part of above one. They should be combined into one test module that uses data provided via args.","commit_id":"6ae6c4b507ac7eb6b186f2c3501a7355078a5ffd"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"25f9f17a6f4b14b1ebe249062c500742821be229","unresolved":false,"context_lines":[{"line_number":182,"context_line":"        }"},{"line_number":183,"context_line":"        driver_options \u003d data[\u0027share\u0027].get(\u0027driver_options\u0027, {})"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/shares/manage\u0027, version\u003d\u00272.7\u0027)"},{"line_number":186,"context_line":"        actual_result \u003d self.controller.create(req, data)"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        share_api.API.manage.assert_called_once_with("}],"source_content_type":"text/x-python","patch_set":2,"id":"3a29b11f_3d4f1a35","line":185,"updated":"2015-10-23 11:58:02.000000000","message":"This req is \"member\" request, not admin.","commit_id":"6ae6c4b507ac7eb6b186f2c3501a7355078a5ffd"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"52103ad365c97535feeb02a9b3ca554beb8c9e7d","unresolved":false,"context_lines":[{"line_number":150,"context_line":"    def test_share_manage_with_is_public(self, data):"},{"line_number":151,"context_line":"        self._test_share_manage(data, True)"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"    def _test_share_manage(self, data, *args):"},{"line_number":154,"context_line":"        self._setup_manage_mocks()"},{"line_number":155,"context_line":"        return_share \u003d {\u0027share_type_id\u0027: \u0027\u0027, \u0027id\u0027: \u0027fake\u0027}"},{"line_number":156,"context_line":"        self.mock_object("}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_a4052315","line":153,"updated":"2015-10-26 13:40:20.000000000","message":"use kwarg here too. \n\nis_public\u003dFalse","commit_id":"876a3dc4b7598265f60c5b7538bf114e04a331bf"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0fe000a2c17b5705aa1fc967853d66862246dd68","unresolved":false,"context_lines":[{"line_number":151,"context_line":"    def test_share_manage_with_is_public(self, data):"},{"line_number":152,"context_line":"        self._test_share_manage(data, is_public\u003dTrue)"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    def _test_share_manage(self, data, **kwargs):"},{"line_number":155,"context_line":"        self._setup_manage_mocks()"},{"line_number":156,"context_line":"        return_share \u003d {\u0027share_type_id\u0027: \u0027\u0027, \u0027id\u0027: \u0027fake\u0027}"},{"line_number":157,"context_line":"        self.mock_object("}],"source_content_type":"text/x-python","patch_set":4,"id":"1a26ad4f_216d6098","line":154,"updated":"2015-10-29 15:03:23.000000000","message":"You don\u0027t need kwargs here.. is_public key is there in data...","commit_id":"340c3b9e05bb9a9143bec66c6af7999bf83d607f"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0fe000a2c17b5705aa1fc967853d66862246dd68","unresolved":false,"context_lines":[{"line_number":169,"context_line":"        driver_options \u003d data[\u0027share\u0027].get(\u0027driver_options\u0027, {})"},{"line_number":170,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/shares/manage\u0027, version\u003d\u00272.6\u0027,"},{"line_number":171,"context_line":"                                      use_admin_context\u003dTrue)"},{"line_number":172,"context_line":"        for key in kwargs:"},{"line_number":173,"context_line":"            if key \u003d\u003d \u0027is_public\u0027 and kwargs[key] is True:"},{"line_number":174,"context_line":"                share[\u0027is_public\u0027] \u003d data[\u0027share\u0027][\u0027is_public\u0027]"},{"line_number":175,"context_line":"                req \u003d fakes.HTTPRequest.blank(\u0027/shares/manage\u0027, version\u003d\u00272.7\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a26ad4f_36bfe4fc","line":172,"updated":"2015-10-29 15:03:23.000000000","message":"Without kwargs, this should be \n   share[\u0027is_public\u0027] \u003d data[\u0027share\u0027][\u0027is_public\u0027]","commit_id":"340c3b9e05bb9a9143bec66c6af7999bf83d607f"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9f5eb42f6d533348067847e5ad372c84d7dd73d7","unresolved":false,"context_lines":[{"line_number":151,"context_line":"    def test_share_manage_with_is_public(self, data):"},{"line_number":152,"context_line":"        self._test_share_manage(data, is_public\u003dTrue)"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    def _test_share_manage(self, data, **kwargs):"},{"line_number":155,"context_line":"        self._setup_manage_mocks()"},{"line_number":156,"context_line":"        return_share \u003d {\u0027share_type_id\u0027: \u0027\u0027, \u0027id\u0027: \u0027fake\u0027}"},{"line_number":157,"context_line":"        self.mock_object("}],"source_content_type":"text/x-python","patch_set":6,"id":"fa80f949_5c443073","line":154,"updated":"2015-11-04 14:25:07.000000000","message":"My comment from patchset 3 holds:\n\nYou don\u0027t need kwargs here.. is_public key is there in data...","commit_id":"15c9a99dd9d12f22a57f5fdd1a79a5d90c03bb53"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9f5eb42f6d533348067847e5ad372c84d7dd73d7","unresolved":false,"context_lines":[{"line_number":169,"context_line":"        driver_options \u003d data[\u0027share\u0027].get(\u0027driver_options\u0027, {})"},{"line_number":170,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/shares/manage\u0027, version\u003d\u00272.6\u0027,"},{"line_number":171,"context_line":"                                      use_admin_context\u003dTrue)"},{"line_number":172,"context_line":"        for key in kwargs:"},{"line_number":173,"context_line":"            if key \u003d\u003d \u0027is_public\u0027 and kwargs[key] is True:"},{"line_number":174,"context_line":"                share[\u0027is_public\u0027] \u003d data[\u0027share\u0027][\u0027is_public\u0027]"},{"line_number":175,"context_line":"                req \u003d fakes.HTTPRequest.blank(\u0027/shares/manage\u0027, version\u003d\u00272.7\u0027,"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa80f949_3c5ccc4a","line":172,"updated":"2015-11-04 14:25:07.000000000","message":"Without kwargs, this should be \n\n\n   share[\u0027is_public\u0027] \u003d data[\u0027share\u0027][\u0027is_public\u0027]","commit_id":"15c9a99dd9d12f22a57f5fdd1a79a5d90c03bb53"}],"manila/tests/api/v1/test_share_manage.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"f1529b65067a5d5c036bbd79d8029ed2127e1bec","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/shares/manage\u0027, version\u003d\u00272.6\u0027,"},{"line_number":171,"context_line":"                                      use_admin_context\u003dTrue)"},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"        if version \u003e\u003d 2.7:"},{"line_number":174,"context_line":"            share[\u0027is_public\u0027] \u003d data[\u0027share\u0027][\u0027is_public\u0027]"},{"line_number":175,"context_line":"            req \u003d fakes.HTTPRequest.blank(\u0027/shares/manage\u0027, version\u003d\u00272.7\u0027,"},{"line_number":176,"context_line":"                                          use_admin_context\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":8,"id":"da85f559_a49505e5","line":173,"updated":"2015-11-09 15:10:22.000000000","message":"Instead of this floating point comparison, use the safe comparison implemented for these purposes exclusively:\n\n    from manila.api.openstack import api_version_request as api_version\n\n\n    if (api_version.APIVersionRequest(version) \u003e\u003d\n                api_version.APIVersionRequest(\u00272.7\u0027))","commit_id":"2e5c1a680a1cbebe904d3e2a03b809260d8519c1"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4a10c6c250ec89410ef27636f7fd799f5b25bd88","unresolved":false,"context_lines":[{"line_number":168,"context_line":"        }"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"        driver_options \u003d data[\u0027share\u0027].get(\u0027driver_options\u0027, {})"},{"line_number":171,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/shares/manage\u0027, version\u003d\u00272.6\u0027,"},{"line_number":172,"context_line":"                                      use_admin_context\u003dTrue)"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        if (api_version.APIVersionRequest(version) \u003e\u003d"}],"source_content_type":"text/x-python","patch_set":9,"id":"da85f559_46ab9475","line":171,"updated":"2015-11-11 12:17:45.000000000","message":"req \u003d fakes.HTTPRequest.blank(\u0027/shares/manage\u0027, version\u003dversion\n\n\nand then remove lines 177-178","commit_id":"33be4712513117dfa0b3b2f199dfa5591053b654"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"918242903bacc0eb65e65f809661f9f745060151","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        self.request \u003d fakes.HTTPRequest.blank(\u0027/share/manage\u0027,"},{"line_number":50,"context_line":"                                               use_admin_context\u003dTrue)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    @ddt.data({},"},{"line_number":53,"context_line":"              {\u0027share\u0027: None},"},{"line_number":54,"context_line":"              {\u0027shares\u0027: {}},"},{"line_number":55,"context_line":"              {\u0027share\u0027: get_fake_manage_body(\u0027\u0027, None, None)})"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_120b38d7","line":52,"updated":"2015-11-12 16:06:55.000000000","message":"Please remove this entry -\u003e It makes no sense.\n\nHow can None exist in JSON?\n\nbody is always JSON at the API layer.","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"328f665b684f5eee17bfe2306427f357da123999","unresolved":false,"context_lines":[{"line_number":186,"context_line":"        }"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        driver_options \u003d data[\u0027share\u0027].get(\u0027driver_options\u0027, {})"},{"line_number":189,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/shares/manage\u0027, version\u003dversion,"},{"line_number":190,"context_line":"                                      use_admin_context\u003dTrue)"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"        if (api_version.APIVersionRequest(version) \u003e\u003d"}],"source_content_type":"text/x-python","patch_set":20,"id":"9a8ffd7b_ae5524fa","line":189,"updated":"2015-11-30 11:06:47.000000000","message":"API url \"/shares/manage\" is absent in current Manila repo. It is only proposed in another commit with API rename.","commit_id":"7c64136834304afa4d12fbd1c78002b1f7add849"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"7dc8756c1bc9a8129668218c42116c6186b32c8e","unresolved":false,"context_lines":[{"line_number":186,"context_line":"        }"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        driver_options \u003d data[\u0027share\u0027].get(\u0027driver_options\u0027, {})"},{"line_number":189,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/shares/manage\u0027, version\u003dversion,"},{"line_number":190,"context_line":"                                      use_admin_context\u003dTrue)"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"        if (api_version.APIVersionRequest(version) \u003e\u003d"}],"source_content_type":"text/x-python","patch_set":20,"id":"9a8ffd7b_7f5d7beb","line":189,"in_reply_to":"9a8ffd7b_34439a6e","updated":"2015-12-01 01:48:58.000000000","message":"On line#51, #52 of this patch, the URL that was used before this change seems to be \"share/manage\".\n\nIn router.py as of [1], \"share\", \"shares\" are mapped to the same resource. So shares/manage did not exist, but somehow this file was always using the wrong URL as a fake url. [2]\n\n[1] https://github.com/openstack/manila/blob/e68f586/manila/api/v1/router.py\n[2] https://github.com/openstack/manila/blob/e68f586/manila/api/v1/share_manage.py","commit_id":"7c64136834304afa4d12fbd1c78002b1f7add849"},{"author":{"_account_id":16305,"name":"NidhiMittalHada","email":"nidhimittal19@gmail.com","username":"nidhimittalhada"},"change_message_id":"72854e8605824b9e8964c57ebe83e36616721d14","unresolved":false,"context_lines":[{"line_number":186,"context_line":"        }"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        driver_options \u003d data[\u0027share\u0027].get(\u0027driver_options\u0027, {})"},{"line_number":189,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/shares/manage\u0027, version\u003dversion,"},{"line_number":190,"context_line":"                                      use_admin_context\u003dTrue)"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"        if (api_version.APIVersionRequest(version) \u003e\u003d"}],"source_content_type":"text/x-python","patch_set":20,"id":"9a8ffd7b_c0a03ea8","line":189,"in_reply_to":"9a8ffd7b_5e875012","updated":"2015-12-01 08:45:32.000000000","message":"Router.py has 3 entries share_manage, share, shares \n\nself.resources[\"share_manage\"] \u003d share_manage.create_resource()\nself.resources[\u0027shares\u0027] \u003d shares.create_resource()\n\nand \n    file share_manage.py  has a code line  resource_name \u003d \"share\"\nwhich made me think that \"share\" is the correct name of api. not right ..  \n\nApi name /share_manage is to be used to used create_resource() of share_manage.py right ..\n\nshould i correct it at 3 places or at 1 place as part of this fix ?","commit_id":"7c64136834304afa4d12fbd1c78002b1f7add849"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"1f01a996a41646045b23899c8cd96164cc7154f0","unresolved":false,"context_lines":[{"line_number":186,"context_line":"        }"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        driver_options \u003d data[\u0027share\u0027].get(\u0027driver_options\u0027, {})"},{"line_number":189,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/shares/manage\u0027, version\u003dversion,"},{"line_number":190,"context_line":"                                      use_admin_context\u003dTrue)"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"        if (api_version.APIVersionRequest(version) \u003e\u003d"}],"source_content_type":"text/x-python","patch_set":20,"id":"9a8ffd7b_5e875012","line":189,"in_reply_to":"9a8ffd7b_7f5d7beb","updated":"2015-12-01 07:38:58.000000000","message":"Right, it was using fake url, this commit used fake url, and in latest patch-set 21 still uses fake url, but another one. Nice. So, patch-set 21 just implemented consistent fakes \u003e\u003c. It is really \"good\" reason to reupload a patch-set that was ready for merge.","commit_id":"7c64136834304afa4d12fbd1c78002b1f7add849"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"407149263165af392732fe9db7ff408955efcfa2","unresolved":false,"context_lines":[{"line_number":186,"context_line":"        }"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        driver_options \u003d data[\u0027share\u0027].get(\u0027driver_options\u0027, {})"},{"line_number":189,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/shares/manage\u0027, version\u003dversion,"},{"line_number":190,"context_line":"                                      use_admin_context\u003dTrue)"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"        if (api_version.APIVersionRequest(version) \u003e\u003d"}],"source_content_type":"text/x-python","patch_set":20,"id":"9a8ffd7b_34439a6e","line":189,"in_reply_to":"9a8ffd7b_ae5524fa","updated":"2015-12-01 01:36:26.000000000","message":"So this change should be merged after the API rename patch then.","commit_id":"7c64136834304afa4d12fbd1c78002b1f7add849"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"248cbd8faf666a2861f0219a33507fb72070878e","unresolved":false,"context_lines":[{"line_number":161,"context_line":"                             driver_options\u003ddict(volume_id\u003d\u0027quuz\u0027)),"},{"line_number":162,"context_line":"    )"},{"line_number":163,"context_line":"    def test_share_manage(self, data):"},{"line_number":164,"context_line":"        self._test_share_manage(data, \"2.7\")"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    @ddt.data("},{"line_number":167,"context_line":"        get_fake_manage_body(name\u003d\u0027foo\u0027, description\u003d\u0027bar\u0027, is_public\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a8ffd7b_ce001b05","line":164,"updated":"2015-12-02 13:11:37.000000000","message":"Same here. Tests should be added to different module - https://github.com/openstack/manila/blob/2467ccf2/manila/tests/api/v2/test_shares.py#L1297","commit_id":"e2d7984761415361c3e3168ec7b51a2993afcde0"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"6d5f42eb28354e511c09721df9d488ae8480a649","unresolved":false,"context_lines":[{"line_number":171,"context_line":"            \u0027share_type_id\u0027: \u0027fake\u0027,"},{"line_number":172,"context_line":"            \u0027display_name\u0027: \u0027foo\u0027,"},{"line_number":173,"context_line":"            \u0027display_description\u0027: \u0027bar\u0027,"},{"line_number":174,"context_line":"        }"},{"line_number":175,"context_line":"        driver_options \u003d data[\u0027share\u0027].get(\u0027driver_options\u0027, {})"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"        actual_result \u003d self.controller.create(self.request, data)"}],"source_content_type":"text/x-python","patch_set":23,"id":"9a8ffd7b_a5a6cd0c","line":174,"updated":"2015-12-03 13:17:40.000000000","message":"This test will fail if add \"is_public\" to data[\u0027share\u0027]\n\nAnd failure will indicate bug mentioned in https://review.openstack.org/#/c/238850/23/manila/api/v1/share_manage.py","commit_id":"c7c0783ac257a01c7457a2e9f312dc9367584cc0"}],"manila_tempest_tests/services/share/json/shares_client.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0fe000a2c17b5705aa1fc967853d66862246dd68","unresolved":false,"context_lines":[{"line_number":96,"context_line":"                \"share_type\": share_type_id,"},{"line_number":97,"context_line":"                \"name\": name,"},{"line_number":98,"context_line":"                \"description\": description,"},{"line_number":99,"context_line":"                \u0027is_public\u0027: is_public,"},{"line_number":100,"context_line":"            }"},{"line_number":101,"context_line":"        }"},{"line_number":102,"context_line":"        body \u003d json.dumps(post_body)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a26ad4f_21ba4024","line":99,"updated":"2015-10-29 15:03:23.000000000","message":"Use double quotes for consistency.. :)","commit_id":"340c3b9e05bb9a9143bec66c6af7999bf83d607f"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"84d45c818df6818b672e0fdebbb646e28a849504","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def manage_share(self, service_host, protocol, export_path,"},{"line_number":89,"context_line":"                     share_type_id, name\u003dNone, description\u003dNone,"},{"line_number":90,"context_line":"                     is_public\u003dFalse):"},{"line_number":91,"context_line":"        post_body \u003d {"},{"line_number":92,"context_line":"            \"share\": {"},{"line_number":93,"context_line":"                \"export_path\": export_path,"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_64ad399a","line":90,"updated":"2015-11-12 10:02:22.000000000","message":"This is v1 client.\n\nv2 client should be updated.\n\nSee example for \"create\" method: https://github.com/openstack/manila/blob/3085534f/manila_tempest_tests/services/share/v2/json/shares_client.py#L177","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":16305,"name":"NidhiMittalHada","email":"nidhimittal19@gmail.com","username":"nidhimittalhada"},"change_message_id":"b4f60689a9b0a9cdb871f3cf5b60e2889918cfcb","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def manage_share(self, service_host, protocol, export_path,"},{"line_number":89,"context_line":"                     share_type_id, name\u003dNone, description\u003dNone,"},{"line_number":90,"context_line":"                     is_public\u003dFalse):"},{"line_number":91,"context_line":"        post_body \u003d {"},{"line_number":92,"context_line":"            \"share\": {"},{"line_number":93,"context_line":"                \"export_path\": export_path,"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_e93d792b","line":90,"in_reply_to":"da85f559_64ad399a","updated":"2015-11-12 12:24:25.000000000","message":"v2 client doesnt contain manage_share method at all .. so this method has to be included ?","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":16305,"name":"NidhiMittalHada","email":"nidhimittal19@gmail.com","username":"nidhimittalhada"},"change_message_id":"1d248f3ac3c4f5b0a92fd2c6210344efa92ee7d3","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def manage_share(self, service_host, protocol, export_path,"},{"line_number":89,"context_line":"                     share_type_id, name\u003dNone, description\u003dNone,"},{"line_number":90,"context_line":"                     is_public\u003dFalse):"},{"line_number":91,"context_line":"        post_body \u003d {"},{"line_number":92,"context_line":"            \"share\": {"},{"line_number":93,"context_line":"                \"export_path\": export_path,"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_331c2277","line":90,"in_reply_to":"da85f559_e921eb9e","updated":"2015-11-13 06:18:06.000000000","message":"Done","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"6a9097b294fb25e2ce6f5f7606f5164db6bf256e","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def manage_share(self, service_host, protocol, export_path,"},{"line_number":89,"context_line":"                     share_type_id, name\u003dNone, description\u003dNone,"},{"line_number":90,"context_line":"                     is_public\u003dFalse):"},{"line_number":91,"context_line":"        post_body \u003d {"},{"line_number":92,"context_line":"            \"share\": {"},{"line_number":93,"context_line":"                \"export_path\": export_path,"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_e921eb9e","line":90,"in_reply_to":"da85f559_e93d792b","updated":"2015-11-12 15:54:49.000000000","message":"Yes.If you copy this changed method to:\n \t\n    manila_tempest_tests/services/share/v2/json/shares_client.py\n\nit would effectively override this method here. You can leave this file unchanged.. (i.e, the manage_share here should remain as before your patch)","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"}],"manila_tempest_tests/services/share/v2/json/shares_client.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"427962acd8e2eec3b060284ad555e380eef17e82","unresolved":false,"context_lines":[{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    def manage_share(self, service_host, protocol, export_path,"},{"line_number":237,"context_line":"                     share_type_id, name\u003dNone, description\u003dNone,"},{"line_number":238,"context_line":"                     is_public\u003dFalse):"},{"line_number":239,"context_line":"        post_body \u003d {"},{"line_number":240,"context_line":"            \"share\": {"},{"line_number":241,"context_line":"                \"export_path\": export_path,"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba8a016a_c16ce50a","line":238,"updated":"2015-11-16 14:12:53.000000000","message":"Look at other method here. It should have \"version\" param.","commit_id":"ccc933187e774086ac56511bf365b33fe5211307"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"427962acd8e2eec3b060284ad555e380eef17e82","unresolved":false,"context_lines":[{"line_number":248,"context_line":"            }"},{"line_number":249,"context_line":"        }"},{"line_number":250,"context_line":"        body \u003d json.dumps(post_body)"},{"line_number":251,"context_line":"        resp, body \u003d self.post(\"os-share-manage\", body)"},{"line_number":252,"context_line":"        self.expected_success(200, resp.status)"},{"line_number":253,"context_line":"        return self._parse_resp(body)"},{"line_number":254,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba8a016a_7ca35e9f","line":251,"updated":"2015-11-16 14:12:53.000000000","message":"and provided here.","commit_id":"ccc933187e774086ac56511bf365b33fe5211307"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"15fdee5323fd017b2c3454f906668f96eb51d64c","unresolved":false,"context_lines":[{"line_number":320,"context_line":"        return body"},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"###############"},{"line_number":323,"context_line":"    def manage_share(self, service_host, protocol, export_path,"},{"line_number":324,"context_line":"                     share_type_id, name\u003dNone, description\u003dNone,"},{"line_number":325,"context_line":"                     is_public\u003dFalse, version\u003dLATEST_MICROVERSION,"},{"line_number":326,"context_line":"                     url\u003dNone):"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a8ffd7b_4870a3a4","line":323,"updated":"2015-12-02 12:21:50.000000000","message":"In your next patch, please restore the deleted line above this method. Whitespace changes should generally be avoided unless the patch is specifically to make whitespace changes.","commit_id":"e2d7984761415361c3e3168ec7b51a2993afcde0"}],"manila_tempest_tests/tests/api/admin/test_share_manage.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"52103ad365c97535feeb02a9b3ca554beb8c9e7d","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        cls.shares_client.wait_for_resource_deletion(share_id\u003dcls.share2[\u0027id\u0027])"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":92,"context_line":"    def test_manage(self):"},{"line_number":93,"context_line":"        name \u003d \"Name for \u0027managed\u0027 share that had ID %s\" % self.share1[\"id\"]"},{"line_number":94,"context_line":"        description \u003d \"Description for \u0027managed\u0027 share\""},{"line_number":95,"context_line":"        is_public \u003d True"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_aaa96de1","line":92,"updated":"2015-10-26 13:40:20.000000000","message":"I suggest adding a kwarg here:\n\ndef test_manage(self, version\u003dCONF.share.max_api_microversion) \n\nthis way, you can override it with whatever version you pass.","commit_id":"876a3dc4b7598265f60c5b7538bf114e04a331bf"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"52103ad365c97535feeb02a9b3ca554beb8c9e7d","unresolved":false,"context_lines":[{"line_number":121,"context_line":"        self.assertEqual(self.share1[\u0027share_proto\u0027], get[\u0027share_proto\u0027])"},{"line_number":122,"context_line":"        self.assertEqual(self.st[\u0027share_type\u0027][\u0027name\u0027], get[\u0027share_type\u0027])"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"        get \u003d self.shares_v2_client.get_share(share[\u0027id\u0027], version\u003d\"2.6\")"},{"line_number":125,"context_line":"        self.assertEqual(self.st[\u0027share_type\u0027][\u0027id\u0027], get[\u0027share_type\u0027])"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"        if(CONF.share.max_api_microversion \u003e\u003d 2.7):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_ea2a057e","line":124,"updated":"2015-10-26 13:40:20.000000000","message":":s/get/share\n\nYou are getting a share, why not call it that :)","commit_id":"876a3dc4b7598265f60c5b7538bf114e04a331bf"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"52103ad365c97535feeb02a9b3ca554beb8c9e7d","unresolved":false,"context_lines":[{"line_number":124,"context_line":"        get \u003d self.shares_v2_client.get_share(share[\u0027id\u0027], version\u003d\"2.6\")"},{"line_number":125,"context_line":"        self.assertEqual(self.st[\u0027share_type\u0027][\u0027id\u0027], get[\u0027share_type\u0027])"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"        if(CONF.share.max_api_microversion \u003e\u003d 2.7):"},{"line_number":128,"context_line":"            self.assertEqual(is_public, get[\u0027is_public\u0027])"},{"line_number":129,"context_line":"        else:"},{"line_number":130,"context_line":"            self.assertEqual(False, get[\u0027is_public\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_2ab6bd3d","line":127,"updated":"2015-10-26 13:40:20.000000000","message":"If you add a kwarg above, this will be:\n\nif version \u003e\u003d2.7:\n\nAlso, redundant parenthesis.","commit_id":"876a3dc4b7598265f60c5b7538bf114e04a331bf"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0fe000a2c17b5705aa1fc967853d66862246dd68","unresolved":false,"context_lines":[{"line_number":92,"context_line":"    def test_manage(self, version\u003dCONF.share.max_api_microversion):"},{"line_number":93,"context_line":"        name \u003d \"Name for \u0027managed\u0027 share that had ID %s\" % self.share1[\"id\"]"},{"line_number":94,"context_line":"        description \u003d \"Description for \u0027managed\u0027 share\""},{"line_number":95,"context_line":"        is_public \u003d True"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        # Manage share"},{"line_number":98,"context_line":"        share \u003d self.shares_client.manage_share("}],"source_content_type":"text/x-python","patch_set":4,"id":"1a26ad4f_817314e7","line":95,"updated":"2015-10-29 15:03:23.000000000","message":"I think this should be two separate tests.. .setting the is_public field to True, and another test where you set it to False. \n\nYou can probably reuse this generic method test_manage and test with both your possibilities.","commit_id":"340c3b9e05bb9a9143bec66c6af7999bf83d607f"},{"author":{"_account_id":14863,"name":"Diego Zamboni Latance","email":"dzambonil@gmail.com","username":"DiegoZamboni"},"change_message_id":"1af13bf31144541176fa41207ab79fc06a135167","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":138,"context_line":"    def test_manage_with_is_public(self):"},{"line_number":139,"context_line":"        self._test_manage(self, True)"},{"line_number":140,"context_line":"        self._test_manage(self, False)"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa80f949_3ae817b4","line":139,"updated":"2015-11-05 16:29:48.000000000","message":"+1","commit_id":"15c9a99dd9d12f22a57f5fdd1a79a5d90c03bb53"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"5375b53c181bcc75693501aba7621d75a147ac14","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":138,"context_line":"    def test_manage_with_is_public(self):"},{"line_number":139,"context_line":"        self._test_manage(self, True)"},{"line_number":140,"context_line":"        self._test_manage(self, False)"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa80f949_f435ed45","line":139,"updated":"2015-11-04 19:30:04.000000000","message":"Why are you passing self?","commit_id":"15c9a99dd9d12f22a57f5fdd1a79a5d90c03bb53"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"897dbd6f7a22ec2ff9957efcd80c7947cb7069e7","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        cls.shares_client.unmanage_share(cls.share2[\u0027id\u0027])"},{"line_number":89,"context_line":"        cls.shares_client.wait_for_resource_deletion(share_id\u003dcls.share2[\u0027id\u0027])"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    def _test_manage(self, is_public, version\u003dCONF.share.max_api_microversion):"},{"line_number":92,"context_line":"        name \u003d \"Name for \u0027managed\u0027 share that had ID %s\" % self.share1[\"id\"]"},{"line_number":93,"context_line":"        description \u003d \"Description for \u0027managed\u0027 share\""},{"line_number":94,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"da85f559_1e4787bc","line":91,"updated":"2015-11-09 13:20:51.000000000","message":"This one should have check for microversion in tempest config. So, it tempest config has too low version then test should be skipped.","commit_id":"2e5c1a680a1cbebe904d3e2a03b809260d8519c1"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"897dbd6f7a22ec2ff9957efcd80c7947cb7069e7","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        share \u003d self.shares_v2_client.get_share(share[\u0027id\u0027], version\u003d\"2.6\")"},{"line_number":123,"context_line":"        self.assertEqual(self.st[\u0027share_type\u0027][\u0027id\u0027], share[\u0027share_type\u0027])"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        if version \u003e\u003d 2.7:"},{"line_number":126,"context_line":"            self.assertEqual(is_public, share[\u0027is_public\u0027])"},{"line_number":127,"context_line":"        else:"},{"line_number":128,"context_line":"            self.assertEqual(False, share[\u0027is_public\u0027])"}],"source_content_type":"text/x-python","patch_set":8,"id":"da85f559_7e41f30a","line":125,"updated":"2015-11-09 13:20:51.000000000","message":"\"version\" here is string. You need conversion to to float.\n\n\"\"\"\n\nif float(version) \u003e 2.6:\n\n\"\"\"","commit_id":"2e5c1a680a1cbebe904d3e2a03b809260d8519c1"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"897dbd6f7a22ec2ff9957efcd80c7947cb7069e7","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":138,"context_line":"    def test_manage_with_is_public(self):"},{"line_number":139,"context_line":"        self._test_manage(True)"},{"line_number":140,"context_line":"        self._test_manage(False)"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"}],"source_content_type":"text/x-python","patch_set":8,"id":"da85f559_1ef0e78f","line":139,"updated":"2015-11-09 13:20:51.000000000","message":"It should provide two different microversions. Right now you expect different answers for same microversion requests.","commit_id":"2e5c1a680a1cbebe904d3e2a03b809260d8519c1"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"87ac3e2f4a9635dd1cd884ab490d9e977164f869","unresolved":false,"context_lines":[{"line_number":137,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":138,"context_line":"    def test_manage_with_is_public(self):"},{"line_number":139,"context_line":"        self._test_manage(True)"},{"line_number":140,"context_line":"        self._test_manage(False)"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":143,"context_line":"    def test_manage_retry(self):"}],"source_content_type":"text/x-python","patch_set":8,"id":"da85f559_b4750a99","line":140,"updated":"2015-11-10 10:11:11.000000000","message":"Also, it should be two different test cases.","commit_id":"2e5c1a680a1cbebe904d3e2a03b809260d8519c1"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4a10c6c250ec89410ef27636f7fd799f5b25bd88","unresolved":false,"context_lines":[{"line_number":20,"context_line":"from tempest_lib import exceptions as lib_exc  # noqa"},{"line_number":21,"context_line":"import testtools  # noqa"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"from manila.api.openstack import api_version_request as api_version"},{"line_number":24,"context_line":"from manila_tempest_tests.tests.api import base"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"CONF \u003d config.CONF"}],"source_content_type":"text/x-python","patch_set":9,"id":"da85f559_a64a8024","line":23,"updated":"2015-11-11 12:17:45.000000000","message":"This is Tempest tests and they should not import any Manila modules.","commit_id":"33be4712513117dfa0b3b2f199dfa5591053b654"},{"author":{"_account_id":16305,"name":"NidhiMittalHada","email":"nidhimittal19@gmail.com","username":"nidhimittalhada"},"change_message_id":"da231bfc13a064a46cef3c15a321b26b1256bb2c","unresolved":false,"context_lines":[{"line_number":20,"context_line":"from tempest_lib import exceptions as lib_exc  # noqa"},{"line_number":21,"context_line":"import testtools  # noqa"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"from manila.api.openstack import api_version_request as api_version"},{"line_number":24,"context_line":"from manila_tempest_tests.tests.api import base"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"CONF \u003d config.CONF"}],"source_content_type":"text/x-python","patch_set":9,"id":"da85f559_16dcac44","line":23,"in_reply_to":"da85f559_a64a8024","updated":"2015-11-12 09:30:35.000000000","message":"Done","commit_id":"33be4712513117dfa0b3b2f199dfa5591053b654"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4a10c6c250ec89410ef27636f7fd799f5b25bd88","unresolved":false,"context_lines":[{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        if (api_version.APIVersionRequest(version) \u003e\u003d"},{"line_number":144,"context_line":"                api_version.APIVersionRequest(\u00272.5\u0027)):"},{"line_number":145,"context_line":"            self._test_manage(True, version)"},{"line_number":146,"context_line":"            self._test_manage(False, version)"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"}],"source_content_type":"text/x-python","patch_set":9,"id":"da85f559_715d3414","line":145,"updated":"2015-11-11 12:17:45.000000000","message":"If microversion is less than 2.5 then Tempest will do nothing and say that this test passed. It is wrong. We should \"skip\" tests that can not run.\n\nAlso, you try to \"manage\" twice same share. So, in case of successfully passed assertions second test (line 146) will fail with absence of a share, because first one (line 145) will have deleted it completely.\n\nSo, this test will fail always as it is written now.","commit_id":"33be4712513117dfa0b3b2f199dfa5591053b654"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"6a9097b294fb25e2ce6f5f7606f5164db6bf256e","unresolved":false,"context_lines":[{"line_number":87,"context_line":"        cls.shares_client.wait_for_resource_deletion(share_id\u003dcls.share1[\u0027id\u0027])"},{"line_number":88,"context_line":"        cls.shares_client.unmanage_share(cls.share2[\u0027id\u0027])"},{"line_number":89,"context_line":"        cls.shares_client.wait_for_resource_deletion(share_id\u003dcls.share2[\u0027id\u0027])"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    def _test_manage(self, is_public, version):"},{"line_number":92,"context_line":"        name \u003d \"Name for \u0027managed\u0027 share that had ID %s\" % self.share1[\"id\"]"},{"line_number":93,"context_line":"        description \u003d \"Description for \u0027managed\u0027 share\""}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_571452e7","line":90,"updated":"2015-11-12 15:54:49.000000000","message":"If you want to reuse this method for all versions, please change these to kwargs.\n\n    def _test_manage(self, is_public\u003dFalse, version\u003dCONF.share.max_api_microversion)\n\nThis way, you are setting is_public to False. This will not affect anything detrimentally, you have handled this in your API code.","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"84d45c818df6818b672e0fdebbb646e28a849504","unresolved":false,"context_lines":[{"line_number":135,"context_line":"                          share[\u0027id\u0027])"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    @testtools.skipIf("},{"line_number":138,"context_line":"        float(CONF.share.max_api_microversion) \u003c 2.5,"},{"line_number":139,"context_line":"        \"Only for API Microversion \u003e\u003d 2.5.\")"},{"line_number":140,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":141,"context_line":"    def test_manage_with_is_public_True(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_a46481b8","line":138,"updated":"2015-11-12 10:02:22.000000000","message":"\"public True\" requires \"2.7\" microversion, not \"2.5\".","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"6a9097b294fb25e2ce6f5f7606f5164db6bf256e","unresolved":false,"context_lines":[{"line_number":135,"context_line":"                          share[\u0027id\u0027])"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    @testtools.skipIf("},{"line_number":138,"context_line":"        float(CONF.share.max_api_microversion) \u003c 2.5,"},{"line_number":139,"context_line":"        \"Only for API Microversion \u003e\u003d 2.5.\")"},{"line_number":140,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":141,"context_line":"    def test_manage_with_is_public_True(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_4c80458b","line":138,"in_reply_to":"da85f559_09a47d05","updated":"2015-11-12 15:54:49.000000000","message":"@testtools.skipIf(\n        float(CONF.share.max_api_microversion) \u003c 2.7)\n\nThis should fix it.\n\n\nIf you make changes as suggested by me on Line 91, Add another test here:\n\n    def test_manage():\n          self._test_manage()\n\nThis method will work for all versions.... That way we will be covered for \u003c\u003d2.6 and 2.7 and beyond...","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":16305,"name":"NidhiMittalHada","email":"nidhimittal19@gmail.com","username":"nidhimittalhada"},"change_message_id":"b4f60689a9b0a9cdb871f3cf5b60e2889918cfcb","unresolved":false,"context_lines":[{"line_number":135,"context_line":"                          share[\u0027id\u0027])"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    @testtools.skipIf("},{"line_number":138,"context_line":"        float(CONF.share.max_api_microversion) \u003c 2.5,"},{"line_number":139,"context_line":"        \"Only for API Microversion \u003e\u003d 2.5.\")"},{"line_number":140,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":141,"context_line":"    def test_manage_with_is_public_True(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_09a47d05","line":138,"in_reply_to":"da85f559_a46481b8","updated":"2015-11-12 12:24:25.000000000","message":"But _test_manage has asserts to be executed for version 2.5 .. it has asserts for 2.6 too hence let test execute for all 3 versions. ....... if this is not acceptable .. and if this has to execute only for 2.7 ..then function has to be separated for 2.5, 2.6 and 2.7 .. is that okay ?","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"84d45c818df6818b672e0fdebbb646e28a849504","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        self._test_manage(True, CONF.share.max_api_microversion)"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    @testtools.skipIf("},{"line_number":145,"context_line":"        float(CONF.share.max_api_microversion) \u003c 2.5,"},{"line_number":146,"context_line":"        \"Only for API Microversion \u003e\u003d 2.5.\")"},{"line_number":147,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":148,"context_line":"    def test_manage_with_is_public_False(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_440ef5e5","line":145,"updated":"2015-11-12 10:02:22.000000000","message":"Same here just with one diff - this one will try to set default value.","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"84d45c818df6818b672e0fdebbb646e28a849504","unresolved":false,"context_lines":[{"line_number":146,"context_line":"        \"Only for API Microversion \u003e\u003d 2.5.\")"},{"line_number":147,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":148,"context_line":"    def test_manage_with_is_public_False(self):"},{"line_number":149,"context_line":"        self._test_manage(False, CONF.share.max_api_microversion)"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":152,"context_line":"    def test_manage_retry(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_04c8eda4","line":149,"updated":"2015-11-12 10:02:22.000000000","message":"Said here - https://review.openstack.org/#/c/238850/9/manila_tempest_tests/tests/api/admin/test_share_manage.py\n\nAnd again - \"_test_manage\" will delete share after first successful run. Second attempt will fail always.","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":16305,"name":"NidhiMittalHada","email":"nidhimittal19@gmail.com","username":"nidhimittalhada"},"change_message_id":"b4f60689a9b0a9cdb871f3cf5b60e2889918cfcb","unresolved":false,"context_lines":[{"line_number":146,"context_line":"        \"Only for API Microversion \u003e\u003d 2.5.\")"},{"line_number":147,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":148,"context_line":"    def test_manage_with_is_public_False(self):"},{"line_number":149,"context_line":"        self._test_manage(False, CONF.share.max_api_microversion)"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":152,"context_line":"    def test_manage_retry(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_c9fc35ba","line":149,"in_reply_to":"da85f559_04c8eda4","updated":"2015-11-12 12:24:25.000000000","message":"Kindly suggest .. two options.. remove the false check .. as for versions 2.5 and 2.6 its not cared.. OR the other option is to create share unmanage and manage .. whats suggestion ..","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":16305,"name":"NidhiMittalHada","email":"nidhimittal19@gmail.com","username":"nidhimittalhada"},"change_message_id":"1d248f3ac3c4f5b0a92fd2c6210344efa92ee7d3","unresolved":false,"context_lines":[{"line_number":146,"context_line":"        \"Only for API Microversion \u003e\u003d 2.5.\")"},{"line_number":147,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":148,"context_line":"    def test_manage_with_is_public_False(self):"},{"line_number":149,"context_line":"        self._test_manage(False, CONF.share.max_api_microversion)"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":152,"context_line":"    def test_manage_retry(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_cee649b0","line":149,"in_reply_to":"da85f559_4cf12594","updated":"2015-11-13 06:18:06.000000000","message":"def _test_manage(self, is_public\u003dFalse, version\u003dCONF.share.max_api_microversion):\n        name \u003d \"Name for \u0027managed\u0027 share that had ID %s\" % self.share1[\"id\"]\n        description \u003d \"Description for \u0027managed\u0027 share\"\n\n        # Manage share\n        share \u003d self.shares_client.manage_share(\n            service_host\u003dself.share1[\u0027host\u0027],\n            export_path\u003dself.share1[\u0027export_locations\u0027][0],\n            protocol\u003dself.share1[\u0027share_proto\u0027],\n            share_type_id\u003dself.st[\u0027share_type\u0027][\u0027id\u0027],\n            name\u003dname,\n            description\u003ddescription,\n            is_public\u003dis_public,\n        )\n\n        # Add managed share to cleanup queue\n        self.method_resources.insert(\n            0, {\u0027type\u0027: \u0027share\u0027, \u0027id\u0027: share[\u0027id\u0027],\n                \u0027client\u0027: self.shares_client})\n\n        # Wait for success\n        self.shares_client.wait_for_share_status(share[\u0027id\u0027], \u0027available\u0027)\n\n        # Verify data of managed share\n        get \u003d self.shares_v2_client.get_share(share[\u0027id\u0027], version\u003d\"2.5\")\n        self.assertEqual(name, get[\u0027name\u0027])\n        self.assertEqual(description, get[\u0027description\u0027])\n        self.assertEqual(self.share1[\u0027host\u0027], get[\u0027host\u0027])\n        self.assertEqual(self.share1[\u0027share_proto\u0027], get[\u0027share_proto\u0027])\n        self.assertEqual(self.st[\u0027share_type\u0027][\u0027name\u0027], get[\u0027share_type\u0027])\n       \n        share \u003d self.shares_v2_client.get_share(share[\u0027id\u0027], version\u003d\"2.6\")\n        self.assertEqual(self.st[\u0027share_type\u0027][\u0027id\u0027], share[\u0027share_type\u0027])\n\n        if float(version) \u003e\u003d 2.7:\n            self.assertEqual(is_public, share[\u0027is_public\u0027])\n        else:\n            self.assertEqual(False, share[\u0027is_public\u0027])\n\n        # Delete share\n        self.shares_client.delete_share(share[\u0027id\u0027])\n        self.shares_client.wait_for_resource_deletion(share_id\u003dshare[\u0027id\u0027])\n        self.assertRaises(lib_exc.NotFound,\n                          self.shares_client.get_share,\n                          share[\u0027id\u0027])\n\n    @testtools.skipIf(\n        float(CONF.share.max_api_microversion) \u003c 2.7,\n        \"Only for API Microversion \u003e\u003d 2.7\")\n    @test.attr(type\u003d[\"gate\", \"smoke\"])\n    def test_manage_with_is_public_True(self):\n        self._test_manage(True)\n\n    @test.attr(type\u003d[\"gate\", \"smoke\"])\n    def test_manage(self):\n        self._test_manage()\n\n\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\nIf Implement this way , But this still has the lingering problem .. that once a call to _test_manage(True) is made, the share is delete in the process.. next call to _test_manage() will fail as share doesnt exist .. \n\nThe solution seems to be that _test_manage in one call only has to manage all .. \nthen \n\n @testtools.skipIf(\n        float(CONF.share.max_api_microversion) \u003c 2.5,\n        \"Only for API Microversion \u003e\u003d2.5\")\n    @test.attr(type\u003d[\"gate\", \"smoke\"])\n    def test_manage_with_is_public_True(self):\n        self._test_manage(True)\n\n\nSeems to be the only correct option.. and no other call to _test_manage.. and this test covers 2.5, 2.6 and 2.7 (True case)...\n\nIs it okay ??","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"6a9097b294fb25e2ce6f5f7606f5164db6bf256e","unresolved":false,"context_lines":[{"line_number":146,"context_line":"        \"Only for API Microversion \u003e\u003d 2.5.\")"},{"line_number":147,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":148,"context_line":"    def test_manage_with_is_public_False(self):"},{"line_number":149,"context_line":"        self._test_manage(False, CONF.share.max_api_microversion)"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":152,"context_line":"    def test_manage_retry(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_4cf12594","line":149,"in_reply_to":"da85f559_c9fc35ba","updated":"2015-11-12 15:54:49.000000000","message":"You should remove the False check. It will always pass for now since the default value is False. \n\nThere\u0027s no way you can check with black box testing if you are setting a value to the same value as the default value. \n\nUnit tests should suffice.","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"2e6dd783c022c13e06e491c360fb5b2ecc4d4c6f","unresolved":false,"context_lines":[{"line_number":146,"context_line":"        \"Only for API Microversion \u003e\u003d 2.5.\")"},{"line_number":147,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":148,"context_line":"    def test_manage_with_is_public_False(self):"},{"line_number":149,"context_line":"        self._test_manage(False, CONF.share.max_api_microversion)"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":152,"context_line":"    def test_manage_retry(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da85f559_b9ee9eb2","line":149,"in_reply_to":"da85f559_cee649b0","updated":"2015-11-13 14:04:15.000000000","message":"Alright... I see the problem now.. You want two manage test functions and common logic to do the whole manage test. That\u0027s a good approach so far.. \n\nThis file had two tests already before you started - test_manage and test_manage_retry\n\nSo, there were two shares created on Line 79. \n\nNow you need three methods\n\n    test_manage()\n\n    test_manage_2_7()\n\n    test_manage_retry()\n\nCan you go ahead and create three shares instead of just two, unmanage all three shares in the resource_setup method (Line 85 and beyond)\n\nAnd pass the share to the common method for test_manage and test_manage_2_7?\n\nI hope this helps","commit_id":"550a74a0a7852e19acdc5ea15e855a7b7fef87c2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"1049215fdc96acf869b56e701732db8424c5e22c","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @testtools.skipIf("},{"line_number":143,"context_line":"        float(CONF.share.max_api_microversion) \u003c 2.7,"},{"line_number":144,"context_line":"        \"Only for API Microversion \u003e\u003d 2.7\")"},{"line_number":145,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":146,"context_line":"    def test_manage_with_is_public_True(self):"},{"line_number":147,"context_line":"        self._test_manage(share\u003dself.share1, is_public\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da85f559_ab41403b","line":144,"updated":"2015-11-14 14:42:32.000000000","message":"If this test is skipped, self.share2 never gets cleaned up?\n\nIf you want to use skipIf,\n\nPlease create the share and unmanage the share within this method itself before you call self._test_manage","commit_id":"6869efa8d77e1c99e9a776782fc2c66072440452"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"76830a2ea542858af686c7c4270cb992ec60b67d","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @testtools.skipIf("},{"line_number":143,"context_line":"        float(CONF.share.max_api_microversion) \u003c 2.7,"},{"line_number":144,"context_line":"        \"Only for API Microversion \u003e\u003d 2.7\")"},{"line_number":145,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":146,"context_line":"    def test_manage_with_is_public_True(self):"},{"line_number":147,"context_line":"        self._test_manage(share\u003dself.share1, is_public\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da85f559_cbccc463","line":144,"in_reply_to":"da85f559_8ba8fc78","updated":"2015-11-14 15:16:29.000000000","message":"You could do that.. \n\nbut it is cleaner to be done inside this method.. because you don\u0027t want to be doing these version checks all over the file. (you are already doing it twice)\n\nOthers may think differently.","commit_id":"6869efa8d77e1c99e9a776782fc2c66072440452"},{"author":{"_account_id":16305,"name":"NidhiMittalHada","email":"nidhimittal19@gmail.com","username":"nidhimittalhada"},"change_message_id":"da4ed3ab6a848ce0cb3a385cf9055f2b15153258","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @testtools.skipIf("},{"line_number":143,"context_line":"        float(CONF.share.max_api_microversion) \u003c 2.7,"},{"line_number":144,"context_line":"        \"Only for API Microversion \u003e\u003d 2.7\")"},{"line_number":145,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":146,"context_line":"    def test_manage_with_is_public_True(self):"},{"line_number":147,"context_line":"        self._test_manage(share\u003dself.share1, is_public\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da85f559_8ba8fc78","line":144,"in_reply_to":"da85f559_ab41403b","updated":"2015-11-14 15:14:29.000000000","message":"How about keeping it this way in resource setup ?\n\n\nif CONF.share.max_api_microversion \u003e\u003d 2.7:\n            cls.share3 \u003d cls.shares_client.get_share(cls.shares[2][\u0027id\u0027])\n            cls.shares_client.unmanage_share(cls.share3[\u0027id\u0027])\n            cls.shares_client.wait_for_resource_deletion(share_id\u003dcls.share3[\u0027id\u0027])","commit_id":"6869efa8d77e1c99e9a776782fc2c66072440452"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b4ae7e7effe54002d4468f6b328c93195e2d5987","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @testtools.skipIf("},{"line_number":143,"context_line":"        float(CONF.share.max_api_microversion) \u003c 2.7,"},{"line_number":144,"context_line":"        \"Only for API Microversion \u003e\u003d 2.7\")"},{"line_number":145,"context_line":"    @test.attr(type\u003d[\"gate\", \"smoke\"])"},{"line_number":146,"context_line":"    def test_manage_with_is_public_True(self):"},{"line_number":147,"context_line":"        self._test_manage(share\u003dself.share1, is_public\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da85f559_0bcdecb6","line":144,"in_reply_to":"da85f559_ab41403b","updated":"2015-11-14 14:50:59.000000000","message":"I\u0027m sorry, I meant self.share1","commit_id":"6869efa8d77e1c99e9a776782fc2c66072440452"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"f3663cfad43e34fc207dd7edec3e7ab188c2b072","unresolved":false,"context_lines":[{"line_number":83,"context_line":"        cls.share1 \u003d cls.shares_client.get_share(cls.shares[0][\u0027id\u0027])"},{"line_number":84,"context_line":"        cls.share2 \u003d cls.shares_client.get_share(cls.shares[1][\u0027id\u0027])"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        if CONF.share.max_api_microversion \u003e\u003d 2.7:"},{"line_number":87,"context_line":"            cls.share3 \u003d cls.shares_client.get_share(cls.shares[2][\u0027id\u0027])"},{"line_number":88,"context_line":"            # Unmanage shares from manila"},{"line_number":89,"context_line":"            cls.shares_client.unmanage_share(cls.share3[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":12,"id":"da85f559_175bcff7","line":86,"updated":"2015-11-14 22:26:40.000000000","message":"Nope, still not cleaned up.. \n\nYou are creating the share outside of this block, so you would need to clean up in case this test doesn\u0027t run. \nHow about creating the share within this block itself?\n\nset:\n\n    cls.share3  \u003d None outside of this block\n\nand create share3 inside this block.\n\n\nAlso, CONF.share.max_api_microversion is a string. You are comparing str to float without conversion","commit_id":"d987c40eae832452701bd5e05588213652127e30"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"427962acd8e2eec3b060284ad555e380eef17e82","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        if float(CONF.share.max_api_microversion) \u003e\u003d 2.7:"},{"line_number":86,"context_line":"            # Create a share"},{"line_number":87,"context_line":"            share3 \u003d cls.create_share(creation_data)"},{"line_number":88,"context_line":"            cls.share3 \u003d cls.shares_client.get_share(share3[\u0027id\u0027])"},{"line_number":89,"context_line":"            # Unmanage shares from manila"},{"line_number":90,"context_line":"            cls.shares_client.unmanage_share(cls.share3[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba8a016a_3c6cf69b","line":87,"updated":"2015-11-16 14:12:53.000000000","message":"\"creation_data\" can be used for \"create_shares\" base method, not \"create_share\".\n\nProviding incorrect data here you get following errors: http://logs.openstack.org/50/238850/13/check/gate-manila-tempest-dsvm-neutron-no-share-servers-multibackend/0ab6e27/logs/testr_results.html.gz\n\nSo, this logic should be defined before current line 79 and results used there. Then need to replace lines 95-98 with a loop and cover your new share there.","commit_id":"ccc933187e774086ac56511bf365b33fe5211307"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"427962acd8e2eec3b060284ad555e380eef17e82","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        description \u003d \"Description for \u0027managed\u0027 share\""},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"        # Manage share"},{"line_number":106,"context_line":"        share \u003d self.shares_client.manage_share("},{"line_number":107,"context_line":"            service_host\u003dshare[\u0027host\u0027],"},{"line_number":108,"context_line":"            export_path\u003dshare[\u0027export_locations\u0027][0],"},{"line_number":109,"context_line":"            protocol\u003dshare[\u0027share_proto\u0027],"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba8a016a_9c796232","line":106,"updated":"2015-11-16 14:12:53.000000000","message":"You use v1 client here. So, test \"test_manage_with_is_public_True\" will fail for sure. You should use defined by you new method in client. But, first, this new method should be fixed as described there.","commit_id":"ccc933187e774086ac56511bf365b33fe5211307"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"38971da8881712c9349c32eaa5ea7c7a7f15bd6a","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        cls.share1 \u003d cls.shares_client.get_share(cls.shares[0][\u0027id\u0027])"},{"line_number":83,"context_line":"        cls.share2 \u003d cls.shares_client.get_share(cls.shares[1][\u0027id\u0027])"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        if float(CONF.share.max_api_microversion) \u003e\u003d 2.7:"},{"line_number":86,"context_line":"            # Create a share"},{"line_number":87,"context_line":"            share3 \u003d cls.create_share(**creation_data[\u0027kwargs\u0027])"},{"line_number":88,"context_line":"            cls.share3 \u003d cls.shares_v2_client.get_share(share3[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba8a016a_845a1a29","line":85,"updated":"2015-11-23 16:27:38.000000000","message":"Part of comment from patch-set 13 not addressed. - https://review.openstack.org/#/c/238850/13/manila_tempest_tests/tests/api/admin/test_share_manage.py\n\n\"So, this logic should be defined before current line 79 and results used there. Then need to replace lines 95-98 with a loop and cover your new share there.\"","commit_id":"86bb9a6493f9e92a45cd7349eb8ef90b0a4b59ea"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"9f6a5710c0ffcc5f4d826b118a7e2b3f0ad86b18","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        cls.share1 \u003d cls.shares_client.get_share(cls.shares[0][\u0027id\u0027])"},{"line_number":83,"context_line":"        cls.share2 \u003d cls.shares_client.get_share(cls.shares[1][\u0027id\u0027])"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        if float(CONF.share.max_api_microversion) \u003e\u003d 2.7:"},{"line_number":86,"context_line":"            # Create a share"},{"line_number":87,"context_line":"            share3 \u003d cls.create_share(**creation_data[\u0027kwargs\u0027])"},{"line_number":88,"context_line":"            cls.share3 \u003d cls.shares_v2_client.get_share(share3[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a8ffd7b_846fd491","line":85,"in_reply_to":"9a8ffd7b_097e9de4","updated":"2015-11-24 13:00:31.000000000","message":"Which process is single-threaded? \"Serially\" requests are sent, but creation of each share is performed by \"manila-share\" service[s]. How do you think manila-share service handles concurrent requests? How many different share services can be used for share creation?\n\nMain point is in \"sending all creation requests one by one, and only then wait for status.","commit_id":"86bb9a6493f9e92a45cd7349eb8ef90b0a4b59ea"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"2d5cc455bac0367665bfc2836e479bb6aa6736dd","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        cls.share1 \u003d cls.shares_client.get_share(cls.shares[0][\u0027id\u0027])"},{"line_number":83,"context_line":"        cls.share2 \u003d cls.shares_client.get_share(cls.shares[1][\u0027id\u0027])"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        if float(CONF.share.max_api_microversion) \u003e\u003d 2.7:"},{"line_number":86,"context_line":"            # Create a share"},{"line_number":87,"context_line":"            share3 \u003d cls.create_share(**creation_data[\u0027kwargs\u0027])"},{"line_number":88,"context_line":"            cls.share3 \u003d cls.shares_v2_client.get_share(share3[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a8ffd7b_1b1d7e73","line":85,"in_reply_to":"9a8ffd7b_846fd491","updated":"2015-11-24 13:40:49.000000000","message":"I see and understand your point. Thanks for the clarification.\n\nSo you would like something like this:\n\n    # Create two shares in parallel\n    data \u003d [creation_data, creation_data]\n\n    if float(CONF.share.max_api_microversion) \u003e\u003d 2.7:\n          data.append(creation_data)\n\n    shares_created \u003d cls.create_shares(data)\n    cls.shares \u003d []\n\n    for share in shares_created:\n        # Get the share from Manila, including host details.\n        cls.shares.append(cls.shares_client.get_share(share[\u0027id\u0027]))\n        # Unmanage the share from manila\n        cls.shares_client.unmanage_share(share[\u0027id\u0027])\n        cls.shares_client.wait_for_resource_deletion(share_id\u003dshare[\u0027id\u0027])\n\n\nAnd replace the occurrences of share1 in this code with self.share[0] and share2 with self.share[1] and so on. \n\nI\u0027m good with this approach.","commit_id":"86bb9a6493f9e92a45cd7349eb8ef90b0a4b59ea"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"7c2584a6ac76775a07418bd3eef875077f33df30","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        cls.share1 \u003d cls.shares_client.get_share(cls.shares[0][\u0027id\u0027])"},{"line_number":83,"context_line":"        cls.share2 \u003d cls.shares_client.get_share(cls.shares[1][\u0027id\u0027])"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        if float(CONF.share.max_api_microversion) \u003e\u003d 2.7:"},{"line_number":86,"context_line":"            # Create a share"},{"line_number":87,"context_line":"            share3 \u003d cls.create_share(**creation_data[\u0027kwargs\u0027])"},{"line_number":88,"context_line":"            cls.share3 \u003d cls.shares_v2_client.get_share(share3[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a8ffd7b_097e9de4","line":85,"in_reply_to":"9a8ffd7b_beec6590","updated":"2015-11-24 12:44:30.000000000","message":"Hmmm, base.py\u0027s create_shares method creates shares serially and waits for \u0027available\u0027 status serially too; how would we achieve parallel share creation in a single threaded process? If anything, the refactor may only clean up the code and reduce some redundancy. I may be missing something here. Feel free to correct me. \n\nAlso, if we let this merge, your patch: https://review.openstack.org/#/c/240220 \n\nseems to be making the refactor anyway. We would be duplicating effort IMO..","commit_id":"86bb9a6493f9e92a45cd7349eb8ef90b0a4b59ea"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"e5d6140a7371c5d0d1707c41388bbd0f6de5b29a","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        cls.share1 \u003d cls.shares_client.get_share(cls.shares[0][\u0027id\u0027])"},{"line_number":83,"context_line":"        cls.share2 \u003d cls.shares_client.get_share(cls.shares[1][\u0027id\u0027])"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        if float(CONF.share.max_api_microversion) \u003e\u003d 2.7:"},{"line_number":86,"context_line":"            # Create a share"},{"line_number":87,"context_line":"            share3 \u003d cls.create_share(**creation_data[\u0027kwargs\u0027])"},{"line_number":88,"context_line":"            cls.share3 \u003d cls.shares_v2_client.get_share(share3[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba8a016a_966c739d","line":85,"in_reply_to":"ba8a016a_53637d1a","updated":"2015-11-24 05:02:21.000000000","message":"What valeriy probably means is this:\n\nRefactor the existing shares code and group all these actions:\n\n1) Creating the share\n2) Getting the share\n3) Unmanning the share\n4) Waiting for share cleanup after the unmanage. \n\nWhile I don\u0027t agree with the way this file was written in the first place, i feel it is not the point of this patch to refactor the way the existing code is. \n\nWhy don\u0027t we open a bug for the cleanup? I think this patch is ready as is.","commit_id":"86bb9a6493f9e92a45cd7349eb8ef90b0a4b59ea"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"e797cb5af0046fd4dff971af1579b6f2fa3e6c37","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        cls.share1 \u003d cls.shares_client.get_share(cls.shares[0][\u0027id\u0027])"},{"line_number":83,"context_line":"        cls.share2 \u003d cls.shares_client.get_share(cls.shares[1][\u0027id\u0027])"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        if float(CONF.share.max_api_microversion) \u003e\u003d 2.7:"},{"line_number":86,"context_line":"            # Create a share"},{"line_number":87,"context_line":"            share3 \u003d cls.create_share(**creation_data[\u0027kwargs\u0027])"},{"line_number":88,"context_line":"            cls.share3 \u003d cls.shares_v2_client.get_share(share3[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba8a016a_767c6feb","line":85,"in_reply_to":"ba8a016a_56ddab12","updated":"2015-11-24 05:20:38.000000000","message":"Please be aware that a patch from Valeriy\u0027s already refactoring some of this code. \n\nhttps://review.openstack.org/#/c/240220/20/manila_tempest_tests/tests/api/admin/test_share_manage.py\n\nIf that gets merged before this, you will get some of the changes for free. \n\nIf this gets merged earlier, he might be kind enough to make the change for you :) So, its all good. \n\nThanks for your work!","commit_id":"86bb9a6493f9e92a45cd7349eb8ef90b0a4b59ea"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"5cc37c8a0dd0de55357bdd8d50d8311362f05898","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        cls.share1 \u003d cls.shares_client.get_share(cls.shares[0][\u0027id\u0027])"},{"line_number":83,"context_line":"        cls.share2 \u003d cls.shares_client.get_share(cls.shares[1][\u0027id\u0027])"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        if float(CONF.share.max_api_microversion) \u003e\u003d 2.7:"},{"line_number":86,"context_line":"            # Create a share"},{"line_number":87,"context_line":"            share3 \u003d cls.create_share(**creation_data[\u0027kwargs\u0027])"},{"line_number":88,"context_line":"            cls.share3 \u003d cls.shares_v2_client.get_share(share3[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a8ffd7b_beec6590","line":85,"in_reply_to":"ba8a016a_767c6feb","updated":"2015-11-24 12:32:08.000000000","message":"Proposed change not about \"pretty/ugly\", proposed change will make all three shares be created in parallel. With current change, last share will be scheduled for creation only when first two shares reach \"available\" status.\n\nSo, it is redundant slowdown of tempest jobs.","commit_id":"86bb9a6493f9e92a45cd7349eb8ef90b0a4b59ea"},{"author":{"_account_id":16305,"name":"NidhiMittalHada","email":"nidhimittal19@gmail.com","username":"nidhimittalhada"},"change_message_id":"31e0318caf5e45a3c7c3bc29255c94fea8e126c2","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        cls.share1 \u003d cls.shares_client.get_share(cls.shares[0][\u0027id\u0027])"},{"line_number":83,"context_line":"        cls.share2 \u003d cls.shares_client.get_share(cls.shares[1][\u0027id\u0027])"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        if float(CONF.share.max_api_microversion) \u003e\u003d 2.7:"},{"line_number":86,"context_line":"            # Create a share"},{"line_number":87,"context_line":"            share3 \u003d cls.create_share(**creation_data[\u0027kwargs\u0027])"},{"line_number":88,"context_line":"            cls.share3 \u003d cls.shares_v2_client.get_share(share3[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba8a016a_53637d1a","line":85,"in_reply_to":"ba8a016a_845a1a29","updated":"2015-11-24 04:38:16.000000000","message":"HI Val,\nIf you are saying to create this share with given creation data before line 79... right ? but its a conditional share creation ,...if version \u003e\u003d2.7 only then it needs to be created .. .. i did not understand the purpose of moving it before line 79 .. \n\nMay be i am not understanding the purpose, can you please clarify .. m online \n\nwill the message be recorded if i send you a message thru IRC on ur handle, when you are offline ? \n\nAs its conditional creation of share , i can not loop it too.. plz reply ..","commit_id":"86bb9a6493f9e92a45cd7349eb8ef90b0a4b59ea"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"ea737dff8bc136fd651ad4e13ed9ec2ce9dd3c9f","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        cls.share1 \u003d cls.shares_client.get_share(cls.shares[0][\u0027id\u0027])"},{"line_number":83,"context_line":"        cls.share2 \u003d cls.shares_client.get_share(cls.shares[1][\u0027id\u0027])"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        if float(CONF.share.max_api_microversion) \u003e\u003d 2.7:"},{"line_number":86,"context_line":"            # Create a share"},{"line_number":87,"context_line":"            share3 \u003d cls.create_share(**creation_data[\u0027kwargs\u0027])"},{"line_number":88,"context_line":"            cls.share3 \u003d cls.shares_v2_client.get_share(share3[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba8a016a_f6e29f00","line":85,"in_reply_to":"ba8a016a_966c739d","updated":"2015-11-24 05:08:08.000000000","message":":s/unmanning/unmanaging","commit_id":"86bb9a6493f9e92a45cd7349eb8ef90b0a4b59ea"},{"author":{"_account_id":16305,"name":"NidhiMittalHada","email":"nidhimittal19@gmail.com","username":"nidhimittalhada"},"change_message_id":"957a65b9114de73eebc0b05be0f81cb06fb2ca31","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        cls.share1 \u003d cls.shares_client.get_share(cls.shares[0][\u0027id\u0027])"},{"line_number":83,"context_line":"        cls.share2 \u003d cls.shares_client.get_share(cls.shares[1][\u0027id\u0027])"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        if float(CONF.share.max_api_microversion) \u003e\u003d 2.7:"},{"line_number":86,"context_line":"            # Create a share"},{"line_number":87,"context_line":"            share3 \u003d cls.create_share(**creation_data[\u0027kwargs\u0027])"},{"line_number":88,"context_line":"            cls.share3 \u003d cls.shares_v2_client.get_share(share3[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba8a016a_56ddab12","line":85,"in_reply_to":"ba8a016a_f6e29f00","updated":"2015-11-24 05:16:42.000000000","message":"I agree...  The current code itself needs some code clean up .. Can we let this patch go ahead ...Can we  open a bug to refactor the current code as is. ..I would do that immediately after this code gets agreed.","commit_id":"86bb9a6493f9e92a45cd7349eb8ef90b0a4b59ea"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"a8526b2fcfc603dbddcc787cb4eae9b4671e4c65","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        cls.shares \u003d cls.create_shares([creation_data, creation_data])"},{"line_number":80,"context_line":"        if float(CONF.share.max_api_microversion) \u003e\u003d 2.7:"},{"line_number":81,"context_line":"            # Create a share"},{"line_number":82,"context_line":"            cls.shares.append(cls.create_share(**creation_data[\u0027kwargs\u0027]))"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        cls.shares_created \u003d []"},{"line_number":85,"context_line":"        # Load all share data (host, etc.)"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a8ffd7b_a685805a","line":82,"updated":"2015-11-27 14:48:09.000000000","message":"Hmmm, not quite. \n\nSomething like this should work:\n\n    # Create shares in parallel\n    data \u003d [creation_data, creation_data]\n    if float(CONF.share.max_api_microversion) \u003e\u003d 2.7:\n          data.append(creation_data)\n    shares_created \u003d cls.create_shares(data)   #\u003c--- Check out what this method is doing, you\u0027ll understand why Valeriy wants you to use it. \n    cls.shares \u003d []\n    for share in shares_created:\n        # Get the share from Manila, including host details.\n        cls.shares.append(cls.shares_client.get_share(share[\u0027id\u0027]))\n        # Unmanage the share from manila\n        cls.shares_client.unmanage_share(share[\u0027id\u0027])\n        cls.shares_client.wait_for_resource_deletion(share_id\u003dshare[\u0027id\u0027])\n\n\nThen you would refer to share1, share2, share3 as self.shares[0], self.shares[1], self.shares[2]","commit_id":"e1419cf4cec2c3b2df774a10902aee53546766db"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"3a1453fd17f20951fa804e2aefecb9909d7199f9","unresolved":false,"context_lines":[{"line_number":82,"context_line":"            data.append(creation_data)"},{"line_number":83,"context_line":"        shares_created \u003d cls.create_shares(data)"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        cls.shares \u003d []"},{"line_number":86,"context_line":"        # Load all share data (host, etc.)"},{"line_number":87,"context_line":"        for share in shares_created:"},{"line_number":88,"context_line":"            # Unmanage shares from manila"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a8ffd7b_cb02f6b3","line":85,"updated":"2015-11-28 11:09:57.000000000","message":"\"cls.shares\" completely duplicates \"shares_created\" and there is no reason to use both.\n\nSo, need to do:\n\n1) delete lines 85 and 89\n\n2) rename \"shares_created\" to \"cls.shares\"\n\n3) use renamed list of shares \"cls.shares\" in line 87.","commit_id":"366791af02193750c917e6f7195cf06291704be1"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"7bc90e5a0cf92d1bcebbf0474ca5e3ecec36c361","unresolved":false,"context_lines":[{"line_number":82,"context_line":"            data.append(creation_data)"},{"line_number":83,"context_line":"        shares_created \u003d cls.create_shares(data)"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        cls.shares \u003d []"},{"line_number":86,"context_line":"        # Load all share data (host, etc.)"},{"line_number":87,"context_line":"        for share in shares_created:"},{"line_number":88,"context_line":"            # Unmanage shares from manila"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a8ffd7b_ab8e922b","line":85,"in_reply_to":"9a8ffd7b_cb02f6b3","updated":"2015-11-28 11:28:31.000000000","message":"\"Its not the goal of this commit\" to make this change imho. Previous logic in this file was using the exact same steps as this code is doing:\n\n1) Create a bunch of shares with create_shares\n\n2) Get the share info using get_share\n\n3) Unmanage share\n\n4) Wait for resource deletion\n\n\nWhy do you recommend this change?","commit_id":"366791af02193750c917e6f7195cf06291704be1"},{"author":{"_account_id":16305,"name":"NidhiMittalHada","email":"nidhimittal19@gmail.com","username":"nidhimittalhada"},"change_message_id":"18ad3d331fb8cdd757e3ec085c06986c39b53218","unresolved":false,"context_lines":[{"line_number":82,"context_line":"            data.append(creation_data)"},{"line_number":83,"context_line":"        shares_created \u003d cls.create_shares(data)"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        cls.shares \u003d []"},{"line_number":86,"context_line":"        # Load all share data (host, etc.)"},{"line_number":87,"context_line":"        for share in shares_created:"},{"line_number":88,"context_line":"            # Unmanage shares from manila"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a8ffd7b_0bdf9ed9","line":85,"in_reply_to":"9a8ffd7b_cb02f6b3","updated":"2015-11-28 12:13:27.000000000","message":"Will work on it.. Valeriy, would be really helpful .. if you could please review it and point out things in one go ..if there is anything else also thats bothering kindly mention ..","commit_id":"366791af02193750c917e6f7195cf06291704be1"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"b8aed3931ebc2460229ddca658e59a952844dcfa","unresolved":false,"context_lines":[{"line_number":130,"context_line":"        if float(version) \u003e\u003d 2.8:"},{"line_number":131,"context_line":"            self.assertEqual(is_public, share[\u0027is_public\u0027])"},{"line_number":132,"context_line":"        else:"},{"line_number":133,"context_line":"            self.assertEqual(False, share[\u0027is_public\u0027])"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        # Delete share"},{"line_number":136,"context_line":"        self.shares_v2_client.delete_share(share[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":24,"id":"7a740942_c1034941","line":133,"updated":"2015-12-04 19:10:44.000000000","message":"assertFalse","commit_id":"04878c7182f3d19d7dd7ff3fbc5742d2a459e3fc"}]}
