)]}'
{"manila/share/drivers/emc/driver.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"210cc76cb365537e1318e35855614b190dc92261","unresolved":false,"context_lines":[{"line_number":47,"context_line":"    cfg.StrOpt(\u0027emc_nas_server_container\u0027,"},{"line_number":48,"context_line":"               default\u003d\u0027server_2\u0027,"},{"line_number":49,"context_line":"               help\u003d\u0027Container of share servers.\u0027),"},{"line_number":50,"context_line":"    cfg.StrOpt(\u0027emc_nas_pool_names\u0027,"},{"line_number":51,"context_line":"               default\u003dNone,"},{"line_number":52,"context_line":"               help\u003d\u0027EMC pool names.\u0027),"},{"line_number":53,"context_line":"    cfg.StrOpt(\u0027emc_nas_root_dir\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a710552_25b8e7e4","line":50,"updated":"2015-12-16 15:43:33.000000000","message":"Does this option maintain backwards compatibility?\n\nThe earlier option needs to be properly deprecated... \n\nTake a look at oslo_config\u0027s deprecated_name and DeprecatedOpt","commit_id":"fce8e993a2dcf8f5b589a25e291ac4f307484687"},{"author":{"_account_id":11637,"name":"jay.xu","email":"jay.xu@emc.com","username":"jay.xu"},"change_message_id":"e9ade560a018196a3a83f188dcd7ab83bb1d5507","unresolved":false,"context_lines":[{"line_number":47,"context_line":"    cfg.StrOpt(\u0027emc_nas_server_container\u0027,"},{"line_number":48,"context_line":"               default\u003d\u0027server_2\u0027,"},{"line_number":49,"context_line":"               help\u003d\u0027Container of share servers.\u0027),"},{"line_number":50,"context_line":"    cfg.StrOpt(\u0027emc_nas_pool_names\u0027,"},{"line_number":51,"context_line":"               default\u003dNone,"},{"line_number":52,"context_line":"               help\u003d\u0027EMC pool names.\u0027),"},{"line_number":53,"context_line":"    cfg.StrOpt(\u0027emc_nas_root_dir\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a7e1126_ede45e0e","line":50,"in_reply_to":"5a710552_25b8e7e4","updated":"2015-12-17 09:52:15.000000000","message":"Done","commit_id":"fce8e993a2dcf8f5b589a25e291ac4f307484687"}],"manila/share/drivers/emc/plugins/vnx/connection.py":[{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"1c29b1e824314e4fb5612a62e690c098a1faf8f1","unresolved":false,"context_lines":[{"line_number":432,"context_line":""},{"line_number":433,"context_line":"    def check_for_setup_error(self):"},{"line_number":434,"context_line":"        \"\"\"Check for setup error.\"\"\""},{"line_number":435,"context_line":"        # To verify the input from manila configuration"},{"line_number":436,"context_line":"        status, out \u003d self._get_context(\u0027Mover\u0027).get_ref(self.mover_name,"},{"line_number":437,"context_line":"                                                         True)"},{"line_number":438,"context_line":"        if constants.STATUS_ERROR \u003d\u003d status:"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_21c89b21","line":435,"updated":"2015-12-13 15:33:29.000000000","message":"s/manila/Manila","commit_id":"390a2c59d6a2ac0ae70094582fcbe15c4c1fb87d"},{"author":{"_account_id":11637,"name":"jay.xu","email":"jay.xu@emc.com","username":"jay.xu"},"change_message_id":"b9ab358fa3e8ba38772c3beeff33ddf743ae2a82","unresolved":false,"context_lines":[{"line_number":432,"context_line":""},{"line_number":433,"context_line":"    def check_for_setup_error(self):"},{"line_number":434,"context_line":"        \"\"\"Check for setup error.\"\"\""},{"line_number":435,"context_line":"        # To verify the input from manila configuration"},{"line_number":436,"context_line":"        status, out \u003d self._get_context(\u0027Mover\u0027).get_ref(self.mover_name,"},{"line_number":437,"context_line":"                                                         True)"},{"line_number":438,"context_line":"        if constants.STATUS_ERROR \u003d\u003d status:"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_4ac85b55","line":435,"in_reply_to":"7a740942_21c89b21","updated":"2015-12-14 02:07:37.000000000","message":"Done","commit_id":"390a2c59d6a2ac0ae70094582fcbe15c4c1fb87d"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"1c29b1e824314e4fb5612a62e690c098a1faf8f1","unresolved":false,"context_lines":[{"line_number":503,"context_line":"        status, pools \u003d self._get_context(\u0027StoragePool\u0027).get_all()"},{"line_number":504,"context_line":"        for name, pool in pools.items():"},{"line_number":505,"context_line":"            if not self.pools or pool[\u0027name\u0027] in self.pools:"},{"line_number":506,"context_line":"                total_size \u003d int(pool[\u0027total_size\u0027])"},{"line_number":507,"context_line":"                used_size \u003d int(pool[\u0027used_size\u0027])"},{"line_number":508,"context_line":""},{"line_number":509,"context_line":"                pool_stat \u003d dict("}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_811aafc4","line":506,"updated":"2015-12-13 15:33:29.000000000","message":"The unit should be a float.\nhttps://github.com/openstack/manila/blob/master/manila/scheduler/filters/capacity.py#L61\nhttps://github.com/openstack/manila/blob/master/manila/share/drivers/hpe/hpe_3par_mediator.py#L212","commit_id":"390a2c59d6a2ac0ae70094582fcbe15c4c1fb87d"},{"author":{"_account_id":11637,"name":"jay.xu","email":"jay.xu@emc.com","username":"jay.xu"},"change_message_id":"b9ab358fa3e8ba38772c3beeff33ddf743ae2a82","unresolved":false,"context_lines":[{"line_number":503,"context_line":"        status, pools \u003d self._get_context(\u0027StoragePool\u0027).get_all()"},{"line_number":504,"context_line":"        for name, pool in pools.items():"},{"line_number":505,"context_line":"            if not self.pools or pool[\u0027name\u0027] in self.pools:"},{"line_number":506,"context_line":"                total_size \u003d int(pool[\u0027total_size\u0027])"},{"line_number":507,"context_line":"                used_size \u003d int(pool[\u0027used_size\u0027])"},{"line_number":508,"context_line":""},{"line_number":509,"context_line":"                pool_stat \u003d dict("}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_eac26733","line":506,"in_reply_to":"7a740942_811aafc4","updated":"2015-12-14 02:07:37.000000000","message":"Done","commit_id":"390a2c59d6a2ac0ae70094582fcbe15c4c1fb87d"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"1c29b1e824314e4fb5612a62e690c098a1faf8f1","unresolved":false,"context_lines":[{"line_number":504,"context_line":"        for name, pool in pools.items():"},{"line_number":505,"context_line":"            if not self.pools or pool[\u0027name\u0027] in self.pools:"},{"line_number":506,"context_line":"                total_size \u003d int(pool[\u0027total_size\u0027])"},{"line_number":507,"context_line":"                used_size \u003d int(pool[\u0027used_size\u0027])"},{"line_number":508,"context_line":""},{"line_number":509,"context_line":"                pool_stat \u003d dict("},{"line_number":510,"context_line":"                    pool_name\u003dpool[\u0027name\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_217adbf1","line":507,"updated":"2015-12-13 15:33:29.000000000","message":"The unit should be a float.\nhttps://github.com/openstack/manila/blob/master/manila/scheduler/filters/capacity.py#L61","commit_id":"390a2c59d6a2ac0ae70094582fcbe15c4c1fb87d"},{"author":{"_account_id":11637,"name":"jay.xu","email":"jay.xu@emc.com","username":"jay.xu"},"change_message_id":"b9ab358fa3e8ba38772c3beeff33ddf743ae2a82","unresolved":false,"context_lines":[{"line_number":504,"context_line":"        for name, pool in pools.items():"},{"line_number":505,"context_line":"            if not self.pools or pool[\u0027name\u0027] in self.pools:"},{"line_number":506,"context_line":"                total_size \u003d int(pool[\u0027total_size\u0027])"},{"line_number":507,"context_line":"                used_size \u003d int(pool[\u0027used_size\u0027])"},{"line_number":508,"context_line":""},{"line_number":509,"context_line":"                pool_stat \u003d dict("},{"line_number":510,"context_line":"                    pool_name\u003dpool[\u0027name\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_6ae517da","line":507,"in_reply_to":"7a740942_217adbf1","updated":"2015-12-14 02:07:37.000000000","message":"Done","commit_id":"390a2c59d6a2ac0ae70094582fcbe15c4c1fb87d"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"c938221167f1547ffeefde75558e29e94b2ab4d4","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        # Get the pool name from share host field"},{"line_number":68,"context_line":"        pool_name \u003d share_utils.extract_host(share[\u0027host\u0027], level\u003d\u0027pool\u0027)"},{"line_number":69,"context_line":"        if not pool_name:"},{"line_number":70,"context_line":"            message \u003d (_(\"Not available pool in the share host %s.\") %"},{"line_number":71,"context_line":"                       share[\u0027host\u0027])"},{"line_number":72,"context_line":"            raise exception.InvalidHost(reason\u003dmessage)"},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_108da4d2","line":70,"updated":"2015-12-14 04:10:47.000000000","message":"This string is rather awkward English.  Here\u0027s the version from my driver, which you should be able to modify to suit:\n\n    \"Pool is not available in the share host field.\"","commit_id":"180331b8f259c0cdc1531ffccbc061e8997bad3f"},{"author":{"_account_id":11637,"name":"jay.xu","email":"jay.xu@emc.com","username":"jay.xu"},"change_message_id":"08c750e0b6425ed593c9e437b27e2bb0e4c66211","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        # Get the pool name from share host field"},{"line_number":68,"context_line":"        pool_name \u003d share_utils.extract_host(share[\u0027host\u0027], level\u003d\u0027pool\u0027)"},{"line_number":69,"context_line":"        if not pool_name:"},{"line_number":70,"context_line":"            message \u003d (_(\"Not available pool in the share host %s.\") %"},{"line_number":71,"context_line":"                       share[\u0027host\u0027])"},{"line_number":72,"context_line":"            raise exception.InvalidHost(reason\u003dmessage)"},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_80e61fae","line":70,"in_reply_to":"7a740942_108da4d2","updated":"2015-12-14 07:53:41.000000000","message":"Done","commit_id":"180331b8f259c0cdc1531ffccbc061e8997bad3f"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"c938221167f1547ffeefde75558e29e94b2ab4d4","unresolved":false,"context_lines":[{"line_number":190,"context_line":"        # Get the pool name from share host field"},{"line_number":191,"context_line":"        pool_name \u003d share_utils.extract_host(share[\u0027host\u0027], level\u003d\u0027pool\u0027)"},{"line_number":192,"context_line":"        if not pool_name:"},{"line_number":193,"context_line":"            message \u003d (_(\"Not available pool in the share host %s.\") %"},{"line_number":194,"context_line":"                       share[\u0027host\u0027])"},{"line_number":195,"context_line":"            raise exception.InvalidHost(reason\u003dmessage)"},{"line_number":196,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_50756cc8","line":193,"updated":"2015-12-14 04:10:47.000000000","message":"Same as above.","commit_id":"180331b8f259c0cdc1531ffccbc061e8997bad3f"},{"author":{"_account_id":11637,"name":"jay.xu","email":"jay.xu@emc.com","username":"jay.xu"},"change_message_id":"08c750e0b6425ed593c9e437b27e2bb0e4c66211","unresolved":false,"context_lines":[{"line_number":190,"context_line":"        # Get the pool name from share host field"},{"line_number":191,"context_line":"        pool_name \u003d share_utils.extract_host(share[\u0027host\u0027], level\u003d\u0027pool\u0027)"},{"line_number":192,"context_line":"        if not pool_name:"},{"line_number":193,"context_line":"            message \u003d (_(\"Not available pool in the share host %s.\") %"},{"line_number":194,"context_line":"                       share[\u0027host\u0027])"},{"line_number":195,"context_line":"            raise exception.InvalidHost(reason\u003dmessage)"},{"line_number":196,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_c09747ea","line":193,"in_reply_to":"7a740942_50756cc8","updated":"2015-12-14 07:53:41.000000000","message":"Done","commit_id":"180331b8f259c0cdc1531ffccbc061e8997bad3f"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"c938221167f1547ffeefde75558e29e94b2ab4d4","unresolved":false,"context_lines":[{"line_number":293,"context_line":"        # Get the pool name from share host field"},{"line_number":294,"context_line":"        pool_name \u003d share_utils.extract_host(share[\u0027host\u0027], level\u003d\u0027pool\u0027)"},{"line_number":295,"context_line":"        if not pool_name:"},{"line_number":296,"context_line":"            message \u003d (_(\"Not available pool in the share host %s.\") %"},{"line_number":297,"context_line":"                       share[\u0027host\u0027])"},{"line_number":298,"context_line":"            raise exception.InvalidHost(reason\u003dmessage)"},{"line_number":299,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_f056d828","line":296,"updated":"2015-12-14 04:10:47.000000000","message":"Same as above.","commit_id":"180331b8f259c0cdc1531ffccbc061e8997bad3f"},{"author":{"_account_id":11637,"name":"jay.xu","email":"jay.xu@emc.com","username":"jay.xu"},"change_message_id":"08c750e0b6425ed593c9e437b27e2bb0e4c66211","unresolved":false,"context_lines":[{"line_number":293,"context_line":"        # Get the pool name from share host field"},{"line_number":294,"context_line":"        pool_name \u003d share_utils.extract_host(share[\u0027host\u0027], level\u003d\u0027pool\u0027)"},{"line_number":295,"context_line":"        if not pool_name:"},{"line_number":296,"context_line":"            message \u003d (_(\"Not available pool in the share host %s.\") %"},{"line_number":297,"context_line":"                       share[\u0027host\u0027])"},{"line_number":298,"context_line":"            raise exception.InvalidHost(reason\u003dmessage)"},{"line_number":299,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_408cb7d9","line":296,"in_reply_to":"7a740942_f056d828","updated":"2015-12-14 07:53:41.000000000","message":"Done","commit_id":"180331b8f259c0cdc1531ffccbc061e8997bad3f"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"c938221167f1547ffeefde75558e29e94b2ab4d4","unresolved":false,"context_lines":[{"line_number":458,"context_line":""},{"line_number":459,"context_line":"            conf_pools \u003d set([item.strip() for item in pools.split(\",\")])"},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"            un_exist_pools \u003d conf_pools.difference(real_pools)"},{"line_number":462,"context_line":"            conf_pools.difference_update(un_exist_pools)"},{"line_number":463,"context_line":"            if not conf_pools:"},{"line_number":464,"context_line":"                msg \u003d _(\"All the specified storage pools to be managed \""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_1029249b","line":461,"updated":"2015-12-14 04:10:47.000000000","message":"\"unexist\" isn\u0027t a word.  Perhaps something like missing_pools or nonexistent_pools?","commit_id":"180331b8f259c0cdc1531ffccbc061e8997bad3f"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"c454b2231b0ac1afdd065d696958ff91fb43c080","unresolved":false,"context_lines":[{"line_number":458,"context_line":""},{"line_number":459,"context_line":"            conf_pools \u003d set([item.strip() for item in pools.split(\",\")])"},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"            un_exist_pools \u003d conf_pools.difference(real_pools)"},{"line_number":462,"context_line":"            conf_pools.difference_update(un_exist_pools)"},{"line_number":463,"context_line":"            if not conf_pools:"},{"line_number":464,"context_line":"                msg \u003d _(\"All the specified storage pools to be managed \""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_3dd19823","line":461,"in_reply_to":"7a740942_1029249b","updated":"2015-12-14 05:34:09.000000000","message":"+1","commit_id":"180331b8f259c0cdc1531ffccbc061e8997bad3f"},{"author":{"_account_id":11637,"name":"jay.xu","email":"jay.xu@emc.com","username":"jay.xu"},"change_message_id":"08c750e0b6425ed593c9e437b27e2bb0e4c66211","unresolved":false,"context_lines":[{"line_number":458,"context_line":""},{"line_number":459,"context_line":"            conf_pools \u003d set([item.strip() for item in pools.split(\",\")])"},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"            un_exist_pools \u003d conf_pools.difference(real_pools)"},{"line_number":462,"context_line":"            conf_pools.difference_update(un_exist_pools)"},{"line_number":463,"context_line":"            if not conf_pools:"},{"line_number":464,"context_line":"                msg \u003d _(\"All the specified storage pools to be managed \""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_400fd736","line":461,"in_reply_to":"7a740942_1029249b","updated":"2015-12-14 07:53:41.000000000","message":"Done","commit_id":"180331b8f259c0cdc1531ffccbc061e8997bad3f"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"c938221167f1547ffeefde75558e29e94b2ab4d4","unresolved":false,"context_lines":[{"line_number":476,"context_line":"                LOG.debug(\"Storage pools: %s will be managed.\","},{"line_number":477,"context_line":"                          \",\".join(conf_pools))"},{"line_number":478,"context_line":"        else:"},{"line_number":479,"context_line":"            LOG.debug(\"No storage pool is specified, so all pools \""},{"line_number":480,"context_line":"                      \"in storage system will be managed.\")"},{"line_number":481,"context_line":"        return conf_pools"},{"line_number":482,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_4b385dd3","line":479,"updated":"2015-12-14 04:10:47.000000000","message":"Interesting default behavior!  Fine by me, but you could have also defined emc_nas_pool_names to be a regex with a default value of \".*\"","commit_id":"180331b8f259c0cdc1531ffccbc061e8997bad3f"},{"author":{"_account_id":11637,"name":"jay.xu","email":"jay.xu@emc.com","username":"jay.xu"},"change_message_id":"08c750e0b6425ed593c9e437b27e2bb0e4c66211","unresolved":false,"context_lines":[{"line_number":476,"context_line":"                LOG.debug(\"Storage pools: %s will be managed.\","},{"line_number":477,"context_line":"                          \",\".join(conf_pools))"},{"line_number":478,"context_line":"        else:"},{"line_number":479,"context_line":"            LOG.debug(\"No storage pool is specified, so all pools \""},{"line_number":480,"context_line":"                      \"in storage system will be managed.\")"},{"line_number":481,"context_line":"        return conf_pools"},{"line_number":482,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_132e0b8c","line":479,"in_reply_to":"7a740942_4b385dd3","updated":"2015-12-14 07:53:41.000000000","message":"It was planned with another submit to cover wildword of emc_nas_pool_names. Now I will add this support in the patch#3.","commit_id":"180331b8f259c0cdc1531ffccbc061e8997bad3f"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"c454b2231b0ac1afdd065d696958ff91fb43c080","unresolved":false,"context_lines":[{"line_number":511,"context_line":"                    total_capacity_gb\u003dtotal_size,"},{"line_number":512,"context_line":"                    free_capacity_gb\u003dtotal_size - used_size,"},{"line_number":513,"context_line":"                    QoS_support\u003dFalse,"},{"line_number":514,"context_line":"                    reserved_percentage\u003d0,"},{"line_number":515,"context_line":"                )"},{"line_number":516,"context_line":"                stats_dict[\u0027pools\u0027].append(pool_stat)"},{"line_number":517,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_9db1ace2","line":514,"updated":"2015-12-14 05:34:09.000000000","message":"This should read the config option reserved_share_percentage from manila.conf.","commit_id":"180331b8f259c0cdc1531ffccbc061e8997bad3f"},{"author":{"_account_id":11637,"name":"jay.xu","email":"jay.xu@emc.com","username":"jay.xu"},"change_message_id":"08c750e0b6425ed593c9e437b27e2bb0e4c66211","unresolved":false,"context_lines":[{"line_number":511,"context_line":"                    total_capacity_gb\u003dtotal_size,"},{"line_number":512,"context_line":"                    free_capacity_gb\u003dtotal_size - used_size,"},{"line_number":513,"context_line":"                    QoS_support\u003dFalse,"},{"line_number":514,"context_line":"                    reserved_percentage\u003d0,"},{"line_number":515,"context_line":"                )"},{"line_number":516,"context_line":"                stats_dict[\u0027pools\u0027].append(pool_stat)"},{"line_number":517,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_31ec5fba","line":514,"in_reply_to":"7a740942_9db1ace2","updated":"2015-12-14 07:53:41.000000000","message":"Done","commit_id":"180331b8f259c0cdc1531ffccbc061e8997bad3f"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"210cc76cb365537e1318e35855614b190dc92261","unresolved":false,"context_lines":[{"line_number":496,"context_line":"            emc_share_driver.configuration.emc_nas_server_container)"},{"line_number":497,"context_line":""},{"line_number":498,"context_line":"        self.pool_conf \u003d emc_share_driver.configuration.safe_get("},{"line_number":499,"context_line":"            \u0027emc_nas_pool_names\u0027)"},{"line_number":500,"context_line":""},{"line_number":501,"context_line":"        self.reserved_percentage \u003d emc_share_driver.configuration.safe_get("},{"line_number":502,"context_line":"            \u0027reserved_share_percentage\u0027)"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a710552_4513b3b8","line":499,"updated":"2015-12-16 15:43:33.000000000","message":"If you use DeprecatedOpt as deprecated_name as suggested earlier,  the older option will work as well","commit_id":"fce8e993a2dcf8f5b589a25e291ac4f307484687"},{"author":{"_account_id":11637,"name":"jay.xu","email":"jay.xu@emc.com","username":"jay.xu"},"change_message_id":"e9ade560a018196a3a83f188dcd7ab83bb1d5507","unresolved":false,"context_lines":[{"line_number":496,"context_line":"            emc_share_driver.configuration.emc_nas_server_container)"},{"line_number":497,"context_line":""},{"line_number":498,"context_line":"        self.pool_conf \u003d emc_share_driver.configuration.safe_get("},{"line_number":499,"context_line":"            \u0027emc_nas_pool_names\u0027)"},{"line_number":500,"context_line":""},{"line_number":501,"context_line":"        self.reserved_percentage \u003d emc_share_driver.configuration.safe_get("},{"line_number":502,"context_line":"            \u0027reserved_share_percentage\u0027)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a7e1126_cd95e240","line":499,"in_reply_to":"5a710552_4513b3b8","updated":"2015-12-17 09:52:15.000000000","message":"Done","commit_id":"fce8e993a2dcf8f5b589a25e291ac4f307484687"}],"manila/tests/share/drivers/emc/plugins/vnx/test_connection.py":[{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"c68c032f4c4df6722ef62837199925997938df17","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        xml_req_mock \u003d utils.EMCMock(side_effect\u003dhook)"},{"line_number":85,"context_line":"        self.connection.manager.connectors[\u0027XML\u0027].request \u003d xml_req_mock"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        self.connection.pool_conf \u003d \u0027fake_*, invalid_pool_name\u0027"},{"line_number":88,"context_line":"        self.connection.check_for_setup_error()"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        self.connection.pool_conf \u003d \u0027fake_pool_name\u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a740942_fd32175d","line":87,"updated":"2015-12-14 14:44:38.000000000","message":"I\u0027d like to see you use DDT in test_get_managed_storage_pools to try various combinations of valid and invalid pool names.","commit_id":"7b42aaf9e18670ac15bd52ab82fcaa5bfd42e693"},{"author":{"_account_id":11637,"name":"jay.xu","email":"jay.xu@emc.com","username":"jay.xu"},"change_message_id":"faf7d867abe03fa545816221f1f7f69cc30f191f","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        xml_req_mock \u003d utils.EMCMock(side_effect\u003dhook)"},{"line_number":85,"context_line":"        self.connection.manager.connectors[\u0027XML\u0027].request \u003d xml_req_mock"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        self.connection.pool_conf \u003d \u0027fake_*, invalid_pool_name\u0027"},{"line_number":88,"context_line":"        self.connection.check_for_setup_error()"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        self.connection.pool_conf \u003d \u0027fake_pool_name\u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a710552_0e49ac8b","line":87,"in_reply_to":"7a740942_fd32175d","updated":"2015-12-15 06:34:05.000000000","message":"Done","commit_id":"7b42aaf9e18670ac15bd52ab82fcaa5bfd42e693"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"54d66db1393a42ad8a63ea5674260e1644ae7099","unresolved":false,"context_lines":[{"line_number":54,"context_line":"                               mock.Mock()):"},{"line_number":55,"context_line":"            self.connection.connect(self.emc_share_driver, None)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def test_check_for_setup_error_with_invalid_mover_name(self):"},{"line_number":58,"context_line":"        hook \u003d utils.RequestSideEffect()"},{"line_number":59,"context_line":"        hook.append(self.mover.resp_get_error())"},{"line_number":60,"context_line":"        xml_req_mock \u003d utils.EMCMock(side_effect\u003dhook)"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a710552_2a48b486","line":57,"updated":"2015-12-16 15:31:59.000000000","message":"Thanks for adding more unit tests here, but I\u0027m still struggling with these for multiple reasons.\n\nFirst, _get_managed_storage_pools is a much longer and more complicated method than check_for_setup_error.  So even though _get_managed_storage_pools is a private method, I think you want to unit test _get_managed_storage_pools by itself.  All you need in test_check_for_setup_error is to mock _get_managed_storage_pools and to ensure it is called.  Separating the tests for check_for_setup_error and _get_managed_storage_pools should greatly enhance their readability and let you improve their coverage more easily.\n\nNext, I can\u0027t tell how these tests are validating that the correct set of pools are being selected.  I think that by unit testing _get_managed_storage_pools by itself, you can use various combinations of pool_conf and a mock of self._get_context(\u0027StoragePool\u0027).get_all() to prove that the correct set of pools is being returned.","commit_id":"fce8e993a2dcf8f5b589a25e291ac4f307484687"},{"author":{"_account_id":11637,"name":"jay.xu","email":"jay.xu@emc.com","username":"jay.xu"},"change_message_id":"e9ade560a018196a3a83f188dcd7ab83bb1d5507","unresolved":false,"context_lines":[{"line_number":54,"context_line":"                               mock.Mock()):"},{"line_number":55,"context_line":"            self.connection.connect(self.emc_share_driver, None)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def test_check_for_setup_error_with_invalid_mover_name(self):"},{"line_number":58,"context_line":"        hook \u003d utils.RequestSideEffect()"},{"line_number":59,"context_line":"        hook.append(self.mover.resp_get_error())"},{"line_number":60,"context_line":"        xml_req_mock \u003d utils.EMCMock(side_effect\u003dhook)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a7e1126_4db6d2dd","line":57,"in_reply_to":"5a710552_2a48b486","updated":"2015-12-17 09:52:15.000000000","message":"Thanks for your comments. I will update the test cases in the coming patch.","commit_id":"fce8e993a2dcf8f5b589a25e291ac4f307484687"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"54d66db1393a42ad8a63ea5674260e1644ae7099","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        self.connection.check_for_setup_error()"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        self.connection.pool_conf \u003d \u0027fake_pool_name\u0027"},{"line_number":96,"context_line":"        self.connection.check_for_setup_error()"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        expected_calls \u003d ["},{"line_number":99,"context_line":"            mock.call(self.mover.req_get_ref()),"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a710552_2a167455","line":96,"updated":"2015-12-16 15:31:59.000000000","message":"You should not need to call the method being tested twice in the same testcase.  Separating the tests and using DDT with different inputs should let you fix this.","commit_id":"fce8e993a2dcf8f5b589a25e291ac4f307484687"},{"author":{"_account_id":11637,"name":"jay.xu","email":"jay.xu@emc.com","username":"jay.xu"},"change_message_id":"e9ade560a018196a3a83f188dcd7ab83bb1d5507","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        self.connection.check_for_setup_error()"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        self.connection.pool_conf \u003d \u0027fake_pool_name\u0027"},{"line_number":96,"context_line":"        self.connection.check_for_setup_error()"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        expected_calls \u003d ["},{"line_number":99,"context_line":"            mock.call(self.mover.req_get_ref()),"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a7e1126_0db0cadc","line":96,"in_reply_to":"5a710552_2a167455","updated":"2015-12-17 09:52:15.000000000","message":"Done","commit_id":"fce8e993a2dcf8f5b589a25e291ac4f307484687"}]}
