)]}'
{"manila_tempest_tests/tests/api/admin/test_share_instances.py":[{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"a33fb138bb71e6ff81cb19bf93613c3f023da096","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    def resource_setup(cls):"},{"line_number":28,"context_line":"        super(ShareInstancesTest, cls).resource_setup()"},{"line_number":29,"context_line":"        # create share type"},{"line_number":30,"context_line":"        share_type \u003d cls.create_share_type(\"default_share_type\", "},{"line_number":31,"context_line":"                                           extra_specs\u003d"},{"line_number":32,"context_line":"                                           utils.get_configured_extra_specs())"},{"line_number":33,"context_line":"        cls.share_type_id \u003d share_type[\u0027share_type\u0027][\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_08846bd3","line":30,"range":{"start_line":30,"start_character":64,"end_line":30,"end_character":65},"updated":"2018-01-29 01:58:10.000000000","message":"remove","commit_id":"ad57e955f510344cb7b44493f9c173f120641535"}],"manila_tempest_tests/tests/api/test_shares_actions.py":[{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"e0847e18bd34527417a9466fca8e96057ade0b3d","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                                           client\u003dcls.admin_client,"},{"line_number":45,"context_line":"                                           extra_specs\u003d"},{"line_number":46,"context_line":"                                           utils.get_configured_extra_specs())"},{"line_number":47,"context_line":"        cls.share_type_id \u003d share_type[\u0027share_type\u0027][\u0027id\u0027]"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        # create share"},{"line_number":50,"context_line":"        cls.share_name \u003d data_utils.rand_name(\"tempest-share-name\")"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_0cffb134","line":47,"range":{"start_line":47,"start_character":9,"end_line":47,"end_character":58},"updated":"2018-01-27 06:55:31.000000000","message":"Do we need to check if the \"default_share_type\" is exist in current environment before we create a share type named \"default_share_type\"?","commit_id":"ad57e955f510344cb7b44493f9c173f120641535"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"e0847e18bd34527417a9466fca8e96057ade0b3d","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        cls.shares \u003d []"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        # create share type"},{"line_number":42,"context_line":"        cls.admin_client \u003d cls.admin_shares_v2_client"},{"line_number":43,"context_line":"        share_type \u003d cls.create_share_type(\"default_share_type\","},{"line_number":44,"context_line":"                                           client\u003dcls.admin_client,"},{"line_number":45,"context_line":"                                           extra_specs\u003d"},{"line_number":46,"context_line":"                                           utils.get_configured_extra_specs())"},{"line_number":47,"context_line":"        cls.share_type_id \u003d share_type[\u0027share_type\u0027][\u0027id\u0027]"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        # create share"},{"line_number":50,"context_line":"        cls.share_name \u003d data_utils.rand_name(\"tempest-share-name\")"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_4cedb989","line":47,"range":{"start_line":42,"start_character":8,"end_line":47,"end_character":58},"updated":"2018-01-27 06:55:31.000000000","message":"Why don\u0027t we just add it in common place [1]. If we keep creating a share type with the same name, we will get the error about \"Share Type default_share_type already exists\"?\n\n[1] https://github.com/openstack/manila-tempest-plugin/blob/master/manila_tempest_tests/services/share/v2/json/shares_client.py#L231","commit_id":"ad57e955f510344cb7b44493f9c173f120641535"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"48ef5512a0665fcc516d1f5a4eb99da624f3a9c1","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                                           client\u003dcls.admin_client,"},{"line_number":45,"context_line":"                                           extra_specs\u003d"},{"line_number":46,"context_line":"                                           utils.get_configured_extra_specs())"},{"line_number":47,"context_line":"        cls.share_type_id \u003d share_type[\u0027share_type\u0027][\u0027id\u0027]"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        # create share"},{"line_number":50,"context_line":"        cls.share_name \u003d data_utils.rand_name(\"tempest-share-name\")"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_bb57b502","line":47,"range":{"start_line":47,"start_character":9,"end_line":47,"end_character":58},"in_reply_to":"5f93b717_0cffb134","updated":"2018-01-29 17:25:53.000000000","message":"Yes, we need to add that check in case the share type is pre-created.","commit_id":"ad57e955f510344cb7b44493f9c173f120641535"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"48ef5512a0665fcc516d1f5a4eb99da624f3a9c1","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        cls.shares \u003d []"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        # create share type"},{"line_number":42,"context_line":"        cls.admin_client \u003d cls.admin_shares_v2_client"},{"line_number":43,"context_line":"        share_type \u003d cls.create_share_type(\"default_share_type\","},{"line_number":44,"context_line":"                                           client\u003dcls.admin_client,"},{"line_number":45,"context_line":"                                           extra_specs\u003d"},{"line_number":46,"context_line":"                                           utils.get_configured_extra_specs())"},{"line_number":47,"context_line":"        cls.share_type_id \u003d share_type[\u0027share_type\u0027][\u0027id\u0027]"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        # create share"},{"line_number":50,"context_line":"        cls.share_name \u003d data_utils.rand_name(\"tempest-share-name\")"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_9b3c39c0","line":47,"range":{"start_line":42,"start_character":8,"end_line":47,"end_character":58},"in_reply_to":"5f93b717_4cedb989","updated":"2018-01-29 17:25:53.000000000","message":"I was relying on the resources_cleanup for this. Adding this in [1] is a good idea. I didn\u0027t want to modify the client, but it seems to be the cleaner way to do it.","commit_id":"ad57e955f510344cb7b44493f9c173f120641535"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"93bdd3c035683c4f960a8a230407f506f5f7c71a","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        cls.shares \u003d []"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        # create share type"},{"line_number":42,"context_line":"        cls.admin_client \u003d cls.admin_shares_v2_client"},{"line_number":43,"context_line":"        share_type \u003d cls.create_share_type(\"default_share_type\","},{"line_number":44,"context_line":"                                           client\u003dcls.admin_client,"},{"line_number":45,"context_line":"                                           extra_specs\u003d"},{"line_number":46,"context_line":"                                           utils.get_configured_extra_specs())"},{"line_number":47,"context_line":"        cls.share_type_id \u003d share_type[\u0027share_type\u0027][\u0027id\u0027]"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        # create share"},{"line_number":50,"context_line":"        cls.share_name \u003d data_utils.rand_name(\"tempest-share-name\")"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_0a1671a9","line":47,"range":{"start_line":42,"start_character":8,"end_line":47,"end_character":58},"in_reply_to":"5f93b717_9b3c39c0","updated":"2018-01-30 17:15:16.000000000","message":"Getting back to this. Analyzing a bit how we can address this, I changed my mind and I think that adding this in [1] is not a good idea. We are adding a different behavior to the client. Create share and, if there is no share type, create a share type, is not the normal behavior. Hence, I don\u0027t think we should add this here.\nOn the other hand, I\u0027ve been checking SharesBaseTest class in [2]. We can add the default share_type creation there, during the resource_setup stage. The problem with that approach is that we don\u0027t have admin credentials in that class. Then, we should rely on SharesBaseMixedTest class. Do you think it is a better approach?\n\n[2] https://github.com/openstack/manila-tempest-plugin/blob/master/manila_tempest_tests/tests/api/base.py","commit_id":"ad57e955f510344cb7b44493f9c173f120641535"}],"manila_tempest_tests/tests/api/test_shares_negative.py":[{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"e0847e18bd34527417a9466fca8e96057ade0b3d","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    @classmethod"},{"line_number":30,"context_line":"    def resource_setup(cls):"},{"line_number":31,"context_line":"        super(SharesNegativeTest, cls).resource_setup()"},{"line_number":32,"context_line":"        cls.admin_client \u003d cls.admin_shares_v2_client"},{"line_number":33,"context_line":"        # create share type"},{"line_number":34,"context_line":"        share_type \u003d cls.create_share_type(\"default_share_type\","},{"line_number":35,"context_line":"                                           client\u003dcls.admin_client,"},{"line_number":36,"context_line":"                                           extra_specs\u003d"},{"line_number":37,"context_line":"                                           utils.get_configured_extra_specs())"},{"line_number":38,"context_line":"        cls.share_type_id \u003d share_type[\u0027share_type\u0027][\u0027id\u0027]"},{"line_number":39,"context_line":"        # create share"},{"line_number":40,"context_line":"        cls.share \u003d cls.create_share("},{"line_number":41,"context_line":"            name\u003d\u0027public_share\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_2ceaad74","line":38,"range":{"start_line":32,"start_character":8,"end_line":38,"end_character":58},"updated":"2018-01-27 06:55:31.000000000","message":"Why don\u0027t we just add it in common place [1]. If we keep creating a share type with the same name, we will get the error about \"Share Type default_share_type already exists\"?\n\n[1] https://github.com/openstack/manila-tempest-plugin/blob/master/manila_tempest_tests/services/share/v2/json/shares_client.py#L231","commit_id":"ad57e955f510344cb7b44493f9c173f120641535"}]}
