)]}'
{"manila_tempest_tests/common/constants.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":93,"context_line":"# Share servers"},{"line_number":94,"context_line":"SERVER_STATE_ACTIVE \u003d \u0027active\u0027"},{"line_number":95,"context_line":"SERVER_STATE_CREATING \u003d \u0027creating\u0027"},{"line_number":96,"context_line":"SERVER_STATE_DELETED \u003d \u0027deleted\u0027"},{"line_number":97,"context_line":"SERVER_STATE_DELETING \u003d \u0027deleting\u0027"},{"line_number":98,"context_line":"SERVER_STATE_ERROR \u003d \u0027error\u0027"},{"line_number":99,"context_line":"SERVER_STATE_INACTIVE \u003d \u0027inactive\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_17a0ea41","line":96,"range":{"start_line":96,"start_character":0,"end_line":96,"end_character":32},"updated":"2019-02-26 01:19:36.000000000","message":"you should never see this?","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":93,"context_line":"# Share servers"},{"line_number":94,"context_line":"SERVER_STATE_ACTIVE \u003d \u0027active\u0027"},{"line_number":95,"context_line":"SERVER_STATE_CREATING \u003d \u0027creating\u0027"},{"line_number":96,"context_line":"SERVER_STATE_DELETED \u003d \u0027deleted\u0027"},{"line_number":97,"context_line":"SERVER_STATE_DELETING \u003d \u0027deleting\u0027"},{"line_number":98,"context_line":"SERVER_STATE_ERROR \u003d \u0027error\u0027"},{"line_number":99,"context_line":"SERVER_STATE_INACTIVE \u003d \u0027inactive\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_1fdeb43d","line":96,"range":{"start_line":96,"start_character":0,"end_line":96,"end_character":32},"in_reply_to":"9fdfeff1_17a0ea41","updated":"2019-02-27 02:12:43.000000000","message":"Oops, that\u0027s true. Removed.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"1e28182aeb8edcd1b2e8dbe7eef4b37e578386ba","unresolved":false,"context_lines":[{"line_number":95,"context_line":"SERVER_STATE_CREATING \u003d \u0027creating\u0027"},{"line_number":96,"context_line":"SERVER_STATE_DELETING \u003d \u0027deleting\u0027"},{"line_number":97,"context_line":"SERVER_STATE_ERROR \u003d \u0027error\u0027"},{"line_number":98,"context_line":"SERVER_STATE_INACTIVE \u003d \u0027inactive\u0027"},{"line_number":99,"context_line":"SERVER_STATE_MANAGE_ERROR \u003d \u0027manage_error\u0027"},{"line_number":100,"context_line":"SERVER_STATE_MANAGE_STARTING \u003d \u0027manage_starting\u0027"},{"line_number":101,"context_line":"SERVER_STATE_UNMANAGE_ERROR \u003d \u0027unmanage_error\u0027"}],"source_content_type":"text/x-python","patch_set":25,"id":"5fc1f717_6047984d","line":98,"range":{"start_line":98,"start_character":0,"end_line":98,"end_character":21},"updated":"2019-03-06 23:10:11.000000000","message":"unused, remove..","commit_id":"2bacc0260eb88cb3eb70b4bd123621555fb400d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"7a737ecbd3ea4c2d769404953b2401abccab55f1","unresolved":false,"context_lines":[{"line_number":95,"context_line":"SERVER_STATE_CREATING \u003d \u0027creating\u0027"},{"line_number":96,"context_line":"SERVER_STATE_DELETING \u003d \u0027deleting\u0027"},{"line_number":97,"context_line":"SERVER_STATE_ERROR \u003d \u0027error\u0027"},{"line_number":98,"context_line":"SERVER_STATE_INACTIVE \u003d \u0027inactive\u0027"},{"line_number":99,"context_line":"SERVER_STATE_MANAGE_ERROR \u003d \u0027manage_error\u0027"},{"line_number":100,"context_line":"SERVER_STATE_MANAGE_STARTING \u003d \u0027manage_starting\u0027"},{"line_number":101,"context_line":"SERVER_STATE_UNMANAGE_ERROR \u003d \u0027unmanage_error\u0027"}],"source_content_type":"text/x-python","patch_set":25,"id":"5fc1f717_60f0f891","line":98,"range":{"start_line":98,"start_character":0,"end_line":98,"end_character":21},"in_reply_to":"5fc1f717_6047984d","updated":"2019-03-06 23:43:07.000000000","message":"will remove","commit_id":"2bacc0260eb88cb3eb70b4bd123621555fb400d3"}],"manila_tempest_tests/services/share/v2/json/shares_client.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":448,"context_line":"                \"is_public\": is_public,"},{"line_number":449,"context_line":"            }"},{"line_number":450,"context_line":"        }"},{"line_number":451,"context_line":"        if share_server_id is not None:"},{"line_number":452,"context_line":"            post_body[\u0027share\u0027][\u0027share_server_id\u0027] \u003d share_server_id"},{"line_number":453,"context_line":"        if url is None:"},{"line_number":454,"context_line":"            if utils.is_microversion_gt(version, \"2.6\"):"},{"line_number":455,"context_line":"                url \u003d \u0027shares/manage\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_f768c6f4","line":452,"range":{"start_line":451,"start_character":0,"end_line":452,"end_character":67},"updated":"2019-02-26 01:19:36.000000000","message":"can\u0027t this just go on line 449?","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":448,"context_line":"                \"is_public\": is_public,"},{"line_number":449,"context_line":"            }"},{"line_number":450,"context_line":"        }"},{"line_number":451,"context_line":"        if share_server_id is not None:"},{"line_number":452,"context_line":"            post_body[\u0027share\u0027][\u0027share_server_id\u0027] \u003d share_server_id"},{"line_number":453,"context_line":"        if url is None:"},{"line_number":454,"context_line":"            if utils.is_microversion_gt(version, \"2.6\"):"},{"line_number":455,"context_line":"                url \u003d \u0027shares/manage\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_3fc7f814","line":452,"range":{"start_line":451,"start_character":0,"end_line":452,"end_character":67},"in_reply_to":"9fdfeff1_f768c6f4","updated":"2019-02-27 02:12:43.000000000","message":"Can\u0027t, because `post_body[\u0027share\u0027][\u0027share_server_id\u0027] \u003d None` would be received by the API, which will treat it as \"please work on DHSS\u003dTrue mode, using `None` as the share server\".\n\nInstead, `share_server_id\u003dNone` here means \"please work on DHSS\u003dFalse mode\", so we add it to post_body only if it\u0027s not None.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":604,"context_line":"                             status\u003dconstants.STATUS_AVAILABLE,"},{"line_number":605,"context_line":"                             version\u003dLATEST_MICROVERSION):"},{"line_number":606,"context_line":"        self.reset_state(snapshot_id, status\u003dstatus, s_type\u003d\u0027snapshots\u0027,"},{"line_number":607,"context_line":"                         headers\u003dEXPERIMENTAL, version\u003dversion)"},{"line_number":608,"context_line":""},{"line_number":609,"context_line":"###############"},{"line_number":610,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_da0fe72b","line":607,"range":{"start_line":607,"start_character":33,"end_line":607,"end_character":45},"updated":"2019-02-26 01:19:36.000000000","message":"why?","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":604,"context_line":"                             status\u003dconstants.STATUS_AVAILABLE,"},{"line_number":605,"context_line":"                             version\u003dLATEST_MICROVERSION):"},{"line_number":606,"context_line":"        self.reset_state(snapshot_id, status\u003dstatus, s_type\u003d\u0027snapshots\u0027,"},{"line_number":607,"context_line":"                         headers\u003dEXPERIMENTAL, version\u003dversion)"},{"line_number":608,"context_line":""},{"line_number":609,"context_line":"###############"},{"line_number":610,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_ffcc1035","line":607,"range":{"start_line":607,"start_character":33,"end_line":607,"end_character":45},"in_reply_to":"9fdfeff1_da0fe72b","updated":"2019-02-27 02:12:43.000000000","message":"Because I left it there after copy \u0026 paste. Removed.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":1381,"context_line":"###############"},{"line_number":1382,"context_line":""},{"line_number":1383,"context_line":"    def manage_share_server(self, host, share_network_id, identifier,"},{"line_number":1384,"context_line":"                            driver_options\u003d{}, version\u003dLATEST_MICROVERSION):"},{"line_number":1385,"context_line":""},{"line_number":1386,"context_line":"        body \u003d {"},{"line_number":1387,"context_line":"            \u0027share_server\u0027: {"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_1a7faf66","line":1384,"range":{"start_line":1384,"start_character":43,"end_line":1384,"end_character":45},"updated":"2019-02-26 01:19:36.000000000","message":"don\u0027t use mutable defaults: https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":1381,"context_line":"###############"},{"line_number":1382,"context_line":""},{"line_number":1383,"context_line":"    def manage_share_server(self, host, share_network_id, identifier,"},{"line_number":1384,"context_line":"                            driver_options\u003d{}, version\u003dLATEST_MICROVERSION):"},{"line_number":1385,"context_line":""},{"line_number":1386,"context_line":"        body \u003d {"},{"line_number":1387,"context_line":"            \u0027share_server\u0027: {"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_bf03e841","line":1384,"range":{"start_line":1384,"start_character":43,"end_line":1384,"end_character":45},"in_reply_to":"9fdfeff1_1a7faf66","updated":"2019-02-27 02:12:43.000000000","message":"Oh that\u0027s terrible. Removed.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":1393,"context_line":"        }"},{"line_number":1394,"context_line":""},{"line_number":1395,"context_line":"        body \u003d json.dumps(body)"},{"line_number":1396,"context_line":"        result \u003d self.post(\u0027share-servers/manage\u0027, body, extra_headers\u003dTrue,"},{"line_number":1397,"context_line":"                           version\u003dversion)"},{"line_number":1398,"context_line":"        return json.loads(result[1])"},{"line_number":1399,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_3ad2b35d","line":1396,"range":{"start_line":1396,"start_character":8,"end_line":1396,"end_character":16},"updated":"2019-02-26 01:19:36.000000000","message":"This method returns a tuple: response code and body, so, do what the other calls here are doing:\n\n   resp, body \u003d self.post(...)\n   self.expected_success(202, resp.status)\n   return self._parse_resp(body)","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":1393,"context_line":"        }"},{"line_number":1394,"context_line":""},{"line_number":1395,"context_line":"        body \u003d json.dumps(body)"},{"line_number":1396,"context_line":"        result \u003d self.post(\u0027share-servers/manage\u0027, body, extra_headers\u003dTrue,"},{"line_number":1397,"context_line":"                           version\u003dversion)"},{"line_number":1398,"context_line":"        return json.loads(result[1])"},{"line_number":1399,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_ff9ad010","line":1396,"range":{"start_line":1396,"start_character":8,"end_line":1396,"end_character":16},"in_reply_to":"9fdfeff1_3ad2b35d","updated":"2019-02-27 02:12:43.000000000","message":"Done. (manage returns 200)","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":1402,"context_line":""},{"line_number":1403,"context_line":"        body \u003d json.dumps({\u0027unmanage\u0027: None})"},{"line_number":1404,"context_line":""},{"line_number":1405,"context_line":"        return self.post(\u0027share-servers/%s/action\u0027 % share_server_id, body,"},{"line_number":1406,"context_line":"                         extra_headers\u003dTrue, version\u003dversion)"},{"line_number":1407,"context_line":""},{"line_number":1408,"context_line":"    def wait_for_share_server_status(self, server_id, status,"},{"line_number":1409,"context_line":"                                     status_attr\u003d\u0027status\u0027):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_3a62b33f","line":1406,"range":{"start_line":1405,"start_character":8,"end_line":1406,"end_character":61},"updated":"2019-02-26 01:19:36.000000000","message":"please do the expected_success check as well, the code you\u0027re expecting is 202","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":1402,"context_line":""},{"line_number":1403,"context_line":"        body \u003d json.dumps({\u0027unmanage\u0027: None})"},{"line_number":1404,"context_line":""},{"line_number":1405,"context_line":"        return self.post(\u0027share-servers/%s/action\u0027 % share_server_id, body,"},{"line_number":1406,"context_line":"                         extra_headers\u003dTrue, version\u003dversion)"},{"line_number":1407,"context_line":""},{"line_number":1408,"context_line":"    def wait_for_share_server_status(self, server_id, status,"},{"line_number":1409,"context_line":"                                     status_attr\u003d\u0027status\u0027):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_df858cae","line":1406,"range":{"start_line":1405,"start_character":8,"end_line":1406,"end_character":61},"in_reply_to":"9fdfeff1_3a62b33f","updated":"2019-02-27 02:12:43.000000000","message":"Done","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":1436,"context_line":"        self.reset_state(share_server_id, status\u003dstatus,"},{"line_number":1437,"context_line":"                         s_type\u003d\u0027share-servers\u0027, version\u003dversion)"},{"line_number":1438,"context_line":""},{"line_number":1439,"context_line":"    def get_share_server(self, share_server_id, version\u003dLATEST_MICROVERSION):"},{"line_number":1440,"context_line":"        resp, body \u003d self.get(\"share-servers/%s\" % share_server_id,"},{"line_number":1441,"context_line":"                              version\u003dversion)"},{"line_number":1442,"context_line":"        self.expected_success(200, resp.status)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_7a1d9bbc","line":1439,"range":{"start_line":1439,"start_character":8,"end_line":1439,"end_character":24},"updated":"2019-02-26 01:19:36.000000000","message":"You could rename the \"show_share_server\" and \"show_share_server_details\" in the v1 controller to \"get_share_server\" and \"get_share_server_details\", so that you can rightly override that method in this v2 controller...","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":1436,"context_line":"        self.reset_state(share_server_id, status\u003dstatus,"},{"line_number":1437,"context_line":"                         s_type\u003d\u0027share-servers\u0027, version\u003dversion)"},{"line_number":1438,"context_line":""},{"line_number":1439,"context_line":"    def get_share_server(self, share_server_id, version\u003dLATEST_MICROVERSION):"},{"line_number":1440,"context_line":"        resp, body \u003d self.get(\"share-servers/%s\" % share_server_id,"},{"line_number":1441,"context_line":"                              version\u003dversion)"},{"line_number":1442,"context_line":"        self.expected_success(200, resp.status)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_7fa7c051","line":1439,"range":{"start_line":1439,"start_character":8,"end_line":1439,"end_character":24},"in_reply_to":"9fdfeff1_7a1d9bbc","updated":"2019-02-27 02:12:43.000000000","message":"Actually I could just remove this and replace all usages with show_share_server, since it does exactly the same thing as v1. Removed.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b48ff814fca4faf3941e8ea15f22aa75193d5ce7","unresolved":false,"context_lines":[{"line_number":1394,"context_line":"        body \u003d json.dumps(body)"},{"line_number":1395,"context_line":"        resp, body \u003d self.post(\u0027share-servers/manage\u0027, body,"},{"line_number":1396,"context_line":"                               extra_headers\u003dTrue, version\u003dversion)"},{"line_number":1397,"context_line":"        self.expected_success(200, resp.status)"},{"line_number":1398,"context_line":"        return self._parse_resp(body)"},{"line_number":1399,"context_line":""},{"line_number":1400,"context_line":"    def unmanage_share_server(self, share_server_id,"}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_b478c1c0","line":1397,"range":{"start_line":1397,"start_character":30,"end_line":1397,"end_character":33},"updated":"2019-02-28 17:31:46.000000000","message":"ouch?\nThis should be 202, the share server hasn\u0027t been managed yet when the API returns.","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"f397b1261fc0b8f797e8321ce85c531682a33c41","unresolved":false,"context_lines":[{"line_number":1394,"context_line":"        body \u003d json.dumps(body)"},{"line_number":1395,"context_line":"        resp, body \u003d self.post(\u0027share-servers/manage\u0027, body,"},{"line_number":1396,"context_line":"                               extra_headers\u003dTrue, version\u003dversion)"},{"line_number":1397,"context_line":"        self.expected_success(200, resp.status)"},{"line_number":1398,"context_line":"        return self._parse_resp(body)"},{"line_number":1399,"context_line":""},{"line_number":1400,"context_line":"    def unmanage_share_server(self, share_server_id,"}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_675b7653","line":1397,"range":{"start_line":1397,"start_character":30,"end_line":1397,"end_character":33},"in_reply_to":"9fdfeff1_b478c1c0","updated":"2019-02-28 20:24:40.000000000","message":"Oh, it was wrong in the core change. Fixed. It\u0027s being fixed in the core as well.","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"b3c24f36b15cb6150e225309539a48ba21701cc0","unresolved":false,"context_lines":[{"line_number":533,"context_line":"            time.sleep(self.build_interval)"},{"line_number":534,"context_line":"            body \u003d self.get_snapshot(snapshot_id, version\u003dversion)"},{"line_number":535,"context_line":"            snapshot_status \u003d body[\u0027status\u0027]"},{"line_number":536,"context_line":"            if snapshot_status \u003d\u003d status:"},{"line_number":537,"context_line":"                return"},{"line_number":538,"context_line":"            if \u0027error\u0027 in snapshot_status:"},{"line_number":539,"context_line":"                raise (share_exceptions."},{"line_number":540,"context_line":"                       SnapshotBuildErrorException(snapshot_id\u003dsnapshot_id))"}],"source_content_type":"text/x-python","patch_set":24,"id":"9fdfeff1_2902cebb","line":537,"range":{"start_line":536,"start_character":0,"end_line":537,"end_character":22},"updated":"2019-03-05 16:19:13.000000000","message":"Is this a bug fix?","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"7179e261fad6037a0bb9f853ad05b720e33a31b3","unresolved":false,"context_lines":[{"line_number":533,"context_line":"            time.sleep(self.build_interval)"},{"line_number":534,"context_line":"            body \u003d self.get_snapshot(snapshot_id, version\u003dversion)"},{"line_number":535,"context_line":"            snapshot_status \u003d body[\u0027status\u0027]"},{"line_number":536,"context_line":"            if snapshot_status \u003d\u003d status:"},{"line_number":537,"context_line":"                return"},{"line_number":538,"context_line":"            if \u0027error\u0027 in snapshot_status:"},{"line_number":539,"context_line":"                raise (share_exceptions."},{"line_number":540,"context_line":"                       SnapshotBuildErrorException(snapshot_id\u003dsnapshot_id))"}],"source_content_type":"text/x-python","patch_set":24,"id":"9fdfeff1_3fd51c1c","line":537,"range":{"start_line":536,"start_character":0,"end_line":537,"end_character":22},"in_reply_to":"9fdfeff1_2902cebb","updated":"2019-03-05 16:52:09.000000000","message":"kinda. The method\u0027s name is \"wait_for_snapshot_status\", but if the status you are waiting for is error, it will raise an exception :\\\n\nSo we change it to check if it is the status we are waiting for first, and if it is not, then raise exception in case of error.","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"b3c24f36b15cb6150e225309539a48ba21701cc0","unresolved":false,"context_lines":[{"line_number":535,"context_line":"            snapshot_status \u003d body[\u0027status\u0027]"},{"line_number":536,"context_line":"            if snapshot_status \u003d\u003d status:"},{"line_number":537,"context_line":"                return"},{"line_number":538,"context_line":"            if \u0027error\u0027 in snapshot_status:"},{"line_number":539,"context_line":"                raise (share_exceptions."},{"line_number":540,"context_line":"                       SnapshotBuildErrorException(snapshot_id\u003dsnapshot_id))"},{"line_number":541,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"9fdfeff1_8942daaa","line":538,"range":{"start_line":538,"start_character":12,"end_line":538,"end_character":42},"updated":"2019-03-05 16:19:13.000000000","message":"Below you use \u0027elif\u0027 in the same spot.  We should do a followup patch to make all these wait_for routines follow the same pattern.","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"7179e261fad6037a0bb9f853ad05b720e33a31b3","unresolved":false,"context_lines":[{"line_number":535,"context_line":"            snapshot_status \u003d body[\u0027status\u0027]"},{"line_number":536,"context_line":"            if snapshot_status \u003d\u003d status:"},{"line_number":537,"context_line":"                return"},{"line_number":538,"context_line":"            if \u0027error\u0027 in snapshot_status:"},{"line_number":539,"context_line":"                raise (share_exceptions."},{"line_number":540,"context_line":"                       SnapshotBuildErrorException(snapshot_id\u003dsnapshot_id))"},{"line_number":541,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"9fdfeff1_9fcc488b","line":538,"range":{"start_line":538,"start_character":12,"end_line":538,"end_character":42},"in_reply_to":"9fdfeff1_8942daaa","updated":"2019-03-05 16:52:09.000000000","message":"yea, in this case the behavior is not different at all than using an elif. Here we didn\u0027t change the existing code.","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"}],"manila_tempest_tests/share_exceptions.py":[{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"b3c24f36b15cb6150e225309539a48ba21701cc0","unresolved":false,"context_lines":[{"line_number":79,"context_line":""},{"line_number":80,"context_line":"class ShareServerBuildErrorException(exceptions.TempestException):"},{"line_number":81,"context_line":"    message \u003d (\"Share server %(server_id)s failed to build and is in ERROR \""},{"line_number":82,"context_line":"               \"status\")"}],"source_content_type":"text/x-python","patch_set":24,"id":"9fdfeff1_1c9866ca","line":82,"range":{"start_line":82,"start_character":21,"end_line":82,"end_character":23},"updated":"2019-03-05 16:19:13.000000000","message":"nit: add period.","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"7179e261fad6037a0bb9f853ad05b720e33a31b3","unresolved":false,"context_lines":[{"line_number":79,"context_line":""},{"line_number":80,"context_line":"class ShareServerBuildErrorException(exceptions.TempestException):"},{"line_number":81,"context_line":"    message \u003d (\"Share server %(server_id)s failed to build and is in ERROR \""},{"line_number":82,"context_line":"               \"status\")"}],"source_content_type":"text/x-python","patch_set":24,"id":"9fdfeff1_9fc8c856","line":82,"range":{"start_line":82,"start_character":21,"end_line":82,"end_character":23},"in_reply_to":"9fdfeff1_1c9866ca","updated":"2019-03-05 16:52:09.000000000","message":"will change if need to upload another patch.","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"}],"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":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        if (utils.is_microversion_lt(CONF.share.max_api_microversion, \"2.49\")"},{"line_number":49,"context_line":"                and CONF.share.multitenancy_enabled):"},{"line_number":50,"context_line":"            raise cls.skipException("},{"line_number":51,"context_line":"                \"Multitenancy tests are disabled for microversion \u003c 2.49\")"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        # Create share type"},{"line_number":54,"context_line":"        cls.st_name \u003d data_utils.rand_name(\"manage-st-name\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_5acc5734","line":51,"range":{"start_line":51,"start_character":17,"end_line":51,"end_character":29},"updated":"2019-02-26 01:19:36.000000000","message":"Share manage tests with multi tenancy","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        if (utils.is_microversion_lt(CONF.share.max_api_microversion, \"2.49\")"},{"line_number":49,"context_line":"                and CONF.share.multitenancy_enabled):"},{"line_number":50,"context_line":"            raise cls.skipException("},{"line_number":51,"context_line":"                \"Multitenancy tests are disabled for microversion \u003c 2.49\")"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        # Create share type"},{"line_number":54,"context_line":"        cls.st_name \u003d data_utils.rand_name(\"manage-st-name\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_ff417064","line":51,"range":{"start_line":51,"start_character":17,"end_line":51,"end_character":29},"in_reply_to":"9fdfeff1_5acc5734","updated":"2019-02-27 02:12:43.000000000","message":"Done","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                     version\u003dCONF.share.max_api_microversion,"},{"line_number":67,"context_line":"                     check_manage\u003dFalse):"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"        if (utils.is_microversion_lt(version, \"2.49\")"},{"line_number":70,"context_line":"                and CONF.share.multitenancy_enabled):"},{"line_number":71,"context_line":"            raise self.skipException("},{"line_number":72,"context_line":"                \"Multitenancy tests are disabled for microversion \u003c 2.49\")"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        share \u003d self._create_share_for_manage()"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_1ad24fd2","line":72,"range":{"start_line":69,"start_character":0,"end_line":72,"end_character":74},"updated":"2019-02-26 01:19:36.000000000","message":"the skip in resource_setup should take care of all tests in the class","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                     version\u003dCONF.share.max_api_microversion,"},{"line_number":67,"context_line":"                     check_manage\u003dFalse):"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"        if (utils.is_microversion_lt(version, \"2.49\")"},{"line_number":70,"context_line":"                and CONF.share.multitenancy_enabled):"},{"line_number":71,"context_line":"            raise self.skipException("},{"line_number":72,"context_line":"                \"Multitenancy tests are disabled for microversion \u003c 2.49\")"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        share \u003d self._create_share_for_manage()"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_7f2a6091","line":72,"range":{"start_line":69,"start_character":0,"end_line":72,"end_character":74},"in_reply_to":"9fdfeff1_1ad24fd2","updated":"2019-02-27 02:12:43.000000000","message":"I\u0027d like to do that, but there are other tests below that explicitly test older versions:\n\nself._test_manage(version\u003d\"2.5\")\nself._test_manage(is_public\u003dTrue, version\u003d\"2.8\")\nself._test_manage(version\u003d\"2.16\")\n\nSo I need to take care of them here.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        # Delete share"},{"line_number":138,"context_line":"        self._delete_share_and_wait(managed_share[\u0027id\u0027])"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def _create_share_for_manage(self):"},{"line_number":141,"context_line":"        creation_data \u003d {"},{"line_number":142,"context_line":"            \u0027share_type_id\u0027: self.st[\u0027share_type\u0027][\u0027id\u0027],"},{"line_number":143,"context_line":"            \u0027share_protocol\u0027: self.protocol,"},{"line_number":144,"context_line":"        }"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        share \u003d self.create_share(**creation_data)"},{"line_number":147,"context_line":"        share \u003d self.shares_v2_client.get_share(share[\u0027id\u0027])"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        if utils.is_microversion_ge(CONF.share.max_api_microversion, \"2.9\"):"},{"line_number":150,"context_line":"            el \u003d self.shares_v2_client.list_share_export_locations(share[\"id\"])"},{"line_number":151,"context_line":"            share[\"export_locations\"] \u003d el"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        return share"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    def _unmanage_share_and_wait(self, share):"},{"line_number":156,"context_line":"        self.shares_v2_client.unmanage_share(share[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_85c26452","line":153,"range":{"start_line":140,"start_character":0,"end_line":153,"end_character":20},"updated":"2019-02-26 01:19:36.000000000","message":"You can move this up to the base class and use it in the negative tests you\u0027re adding","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        # Delete share"},{"line_number":138,"context_line":"        self._delete_share_and_wait(managed_share[\u0027id\u0027])"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def _create_share_for_manage(self):"},{"line_number":141,"context_line":"        creation_data \u003d {"},{"line_number":142,"context_line":"            \u0027share_type_id\u0027: self.st[\u0027share_type\u0027][\u0027id\u0027],"},{"line_number":143,"context_line":"            \u0027share_protocol\u0027: self.protocol,"},{"line_number":144,"context_line":"        }"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        share \u003d self.create_share(**creation_data)"},{"line_number":147,"context_line":"        share \u003d self.shares_v2_client.get_share(share[\u0027id\u0027])"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        if utils.is_microversion_ge(CONF.share.max_api_microversion, \"2.9\"):"},{"line_number":150,"context_line":"            el \u003d self.shares_v2_client.list_share_export_locations(share[\"id\"])"},{"line_number":151,"context_line":"            share[\"export_locations\"] \u003d el"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        return share"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    def _unmanage_share_and_wait(self, share):"},{"line_number":156,"context_line":"        self.shares_v2_client.unmanage_share(share[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_ff0f3036","line":153,"range":{"start_line":140,"start_character":0,"end_line":153,"end_character":20},"in_reply_to":"9fdfeff1_85c26452","updated":"2019-02-27 02:12:43.000000000","message":"Great! Moved.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"b3c24f36b15cb6150e225309539a48ba21701cc0","unresolved":false,"context_lines":[{"line_number":131,"context_line":"        # Delete share"},{"line_number":132,"context_line":"        self._delete_share_and_wait(managed_share)"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":135,"context_line":"    @base.skip_if_microversion_not_supported(\"2.5\")"},{"line_number":136,"context_line":"    def test_manage_with_os_share_manage_url(self):"},{"line_number":137,"context_line":"        self._test_manage(version\u003d\"2.5\")"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":140,"context_line":"    @base.skip_if_microversion_not_supported(\"2.8\")"},{"line_number":141,"context_line":"    def test_manage_with_is_public_True(self):"},{"line_number":142,"context_line":"        self._test_manage(is_public\u003dTrue, version\u003d\"2.8\")"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":145,"context_line":"    @base.skip_if_microversion_not_supported(\"2.16\")"},{"line_number":146,"context_line":"    def test_manage_show_user_id(self):"},{"line_number":147,"context_line":"        self._test_manage(version\u003d\"2.16\")"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_BACKEND)"},{"line_number":150,"context_line":"    def test_manage(self):"}],"source_content_type":"text/x-python","patch_set":24,"id":"9fdfeff1_5c510ed9","line":147,"range":{"start_line":134,"start_character":0,"end_line":147,"end_character":41},"updated":"2019-03-05 16:19:13.000000000","message":"Shouldn\u0027t we *run* these tests -- in each test case by calling self._test_manage(version\u003dmax_api_microversion)\n\n?","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":131,"context_line":"        # Delete share"},{"line_number":132,"context_line":"        self._delete_share_and_wait(managed_share)"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":135,"context_line":"    @base.skip_if_microversion_not_supported(\"2.5\")"},{"line_number":136,"context_line":"    def test_manage_with_os_share_manage_url(self):"},{"line_number":137,"context_line":"        self._test_manage(version\u003d\"2.5\")"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":140,"context_line":"    @base.skip_if_microversion_not_supported(\"2.8\")"},{"line_number":141,"context_line":"    def test_manage_with_is_public_True(self):"},{"line_number":142,"context_line":"        self._test_manage(is_public\u003dTrue, version\u003d\"2.8\")"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":145,"context_line":"    @base.skip_if_microversion_not_supported(\"2.16\")"},{"line_number":146,"context_line":"    def test_manage_show_user_id(self):"},{"line_number":147,"context_line":"        self._test_manage(version\u003d\"2.16\")"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_BACKEND)"},{"line_number":150,"context_line":"    def test_manage(self):"}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_53ae012f","line":147,"range":{"start_line":134,"start_character":0,"end_line":147,"end_character":41},"in_reply_to":"7fc4fb27_ae3117ef","updated":"2019-03-06 19:32:15.000000000","message":"\u003e while also running the other tests (currently being skipped)\n\n \n\n\u003e Well we should refactor it because it\u0027s weird seeing those tests being skipped at higher microversions. \n\nThey\u0027re not skipped at higher versions for DHSS\u003dFalse... they will run against specific versions 2.5, 2.8 and 2.16, what am I missing? We can ofcourse cleanup a bit with ddt, but I\u0027d suggest annotating the data so we retain the clear naming that the tests currently have..","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"7179e261fad6037a0bb9f853ad05b720e33a31b3","unresolved":false,"context_lines":[{"line_number":131,"context_line":"        # Delete share"},{"line_number":132,"context_line":"        self._delete_share_and_wait(managed_share)"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":135,"context_line":"    @base.skip_if_microversion_not_supported(\"2.5\")"},{"line_number":136,"context_line":"    def test_manage_with_os_share_manage_url(self):"},{"line_number":137,"context_line":"        self._test_manage(version\u003d\"2.5\")"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":140,"context_line":"    @base.skip_if_microversion_not_supported(\"2.8\")"},{"line_number":141,"context_line":"    def test_manage_with_is_public_True(self):"},{"line_number":142,"context_line":"        self._test_manage(is_public\u003dTrue, version\u003d\"2.8\")"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":145,"context_line":"    @base.skip_if_microversion_not_supported(\"2.16\")"},{"line_number":146,"context_line":"    def test_manage_show_user_id(self):"},{"line_number":147,"context_line":"        self._test_manage(version\u003d\"2.16\")"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_BACKEND)"},{"line_number":150,"context_line":"    def test_manage(self):"}],"source_content_type":"text/x-python","patch_set":24,"id":"9fdfeff1_7fa644ae","line":147,"range":{"start_line":134,"start_character":0,"end_line":147,"end_character":41},"in_reply_to":"9fdfeff1_5c510ed9","updated":"2019-03-05 16:52:09.000000000","message":"Perhaps, I believe this could be refactored as a separate change.\n\nFirstly, we didn\u0027t change the code logic that was already there. Secondly, if microversion is 2.49, then all validations will be performed in the same test, while also running the other tests (currently being skipped) would be redundant.","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"c891ed99a15faffe5f05272b01addb9dedf8c706","unresolved":false,"context_lines":[{"line_number":131,"context_line":"        # Delete share"},{"line_number":132,"context_line":"        self._delete_share_and_wait(managed_share)"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":135,"context_line":"    @base.skip_if_microversion_not_supported(\"2.5\")"},{"line_number":136,"context_line":"    def test_manage_with_os_share_manage_url(self):"},{"line_number":137,"context_line":"        self._test_manage(version\u003d\"2.5\")"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":140,"context_line":"    @base.skip_if_microversion_not_supported(\"2.8\")"},{"line_number":141,"context_line":"    def test_manage_with_is_public_True(self):"},{"line_number":142,"context_line":"        self._test_manage(is_public\u003dTrue, version\u003d\"2.8\")"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":145,"context_line":"    @base.skip_if_microversion_not_supported(\"2.16\")"},{"line_number":146,"context_line":"    def test_manage_show_user_id(self):"},{"line_number":147,"context_line":"        self._test_manage(version\u003d\"2.16\")"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_BACKEND)"},{"line_number":150,"context_line":"    def test_manage(self):"}],"source_content_type":"text/x-python","patch_set":24,"id":"7fc4fb27_ae3117ef","line":147,"range":{"start_line":134,"start_character":0,"end_line":147,"end_character":41},"in_reply_to":"9fdfeff1_7fa644ae","updated":"2019-03-05 17:17:11.000000000","message":"I see.  Well we should refactor it because it\u0027s weird seeing those tests being skipped at higher microversions.  We could just pass the microversions via ddt in to a single test and skip asserts inside the test if the microversion is too low rather than skipping whole test cases at higher microversions.","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"}],"manila_tempest_tests/tests/api/admin/test_share_manage_negative.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    # won\u0027t be deleted."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    @classmethod"},{"line_number":37,"context_line":"    @testtools.skipUnless("},{"line_number":38,"context_line":"        CONF.share.run_manage_unmanage_tests,"},{"line_number":39,"context_line":"        \"Manage/unmanage tests are disabled.\")"},{"line_number":40,"context_line":"    def resource_setup(cls):"},{"line_number":41,"context_line":"        super(ManageNFSShareNegativeTest, cls).resource_setup()"},{"line_number":42,"context_line":"        if cls.protocol not in CONF.share.enable_protocols:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_9a8b9fbe","line":39,"range":{"start_line":37,"start_character":0,"end_line":39,"end_character":46},"updated":"2019-02-26 01:19:36.000000000","message":"you can decorate the class with this, so the tests won\u0027t be discovered if manage/unmanageable tests are disabled","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"d5cacf81acf81447e84798203b30fb1c437ea601","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    # won\u0027t be deleted."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    @classmethod"},{"line_number":37,"context_line":"    @testtools.skipUnless("},{"line_number":38,"context_line":"        CONF.share.run_manage_unmanage_tests,"},{"line_number":39,"context_line":"        \"Manage/unmanage tests are disabled.\")"},{"line_number":40,"context_line":"    def resource_setup(cls):"},{"line_number":41,"context_line":"        super(ManageNFSShareNegativeTest, cls).resource_setup()"},{"line_number":42,"context_line":"        if cls.protocol not in CONF.share.enable_protocols:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_4acd405b","line":39,"range":{"start_line":37,"start_character":0,"end_line":39,"end_character":46},"in_reply_to":"9fdfeff1_9a8b9fbe","updated":"2019-02-27 14:22:50.000000000","message":"Actually I can\u0027t, because the decorator will return a function. Thus its subclasses declaration will fail.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    # won\u0027t be deleted."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    @classmethod"},{"line_number":37,"context_line":"    @testtools.skipUnless("},{"line_number":38,"context_line":"        CONF.share.run_manage_unmanage_tests,"},{"line_number":39,"context_line":"        \"Manage/unmanage tests are disabled.\")"},{"line_number":40,"context_line":"    def resource_setup(cls):"},{"line_number":41,"context_line":"        super(ManageNFSShareNegativeTest, cls).resource_setup()"},{"line_number":42,"context_line":"        if cls.protocol not in CONF.share.enable_protocols:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_9b2cf799","line":39,"range":{"start_line":37,"start_character":0,"end_line":39,"end_character":46},"in_reply_to":"9fdfeff1_9a8b9fbe","updated":"2019-02-27 02:12:43.000000000","message":"Done","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":38,"context_line":"        CONF.share.run_manage_unmanage_tests,"},{"line_number":39,"context_line":"        \"Manage/unmanage tests are disabled.\")"},{"line_number":40,"context_line":"    def resource_setup(cls):"},{"line_number":41,"context_line":"        super(ManageNFSShareNegativeTest, cls).resource_setup()"},{"line_number":42,"context_line":"        if cls.protocol not in CONF.share.enable_protocols:"},{"line_number":43,"context_line":"            message \u003d \"%s tests are disabled\" % cls.protocol"},{"line_number":44,"context_line":"            raise cls.skipException(message)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_fa9aeb10","line":41,"range":{"start_line":41,"start_character":8,"end_line":41,"end_character":63},"updated":"2019-02-26 01:19:36.000000000","message":"Do this after the skip checks","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":38,"context_line":"        CONF.share.run_manage_unmanage_tests,"},{"line_number":39,"context_line":"        \"Manage/unmanage tests are disabled.\")"},{"line_number":40,"context_line":"    def resource_setup(cls):"},{"line_number":41,"context_line":"        super(ManageNFSShareNegativeTest, cls).resource_setup()"},{"line_number":42,"context_line":"        if cls.protocol not in CONF.share.enable_protocols:"},{"line_number":43,"context_line":"            message \u003d \"%s tests are disabled\" % cls.protocol"},{"line_number":44,"context_line":"            raise cls.skipException(message)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_7b27d3b7","line":41,"range":{"start_line":41,"start_character":8,"end_line":41,"end_character":63},"in_reply_to":"9fdfeff1_fa9aeb10","updated":"2019-02-27 02:12:43.000000000","message":"Done","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        cls.extra_specs \u003d {"},{"line_number":54,"context_line":"            \u0027storage_protocol\u0027: CONF.share.capability_storage_protocol,"},{"line_number":55,"context_line":"            \u0027driver_handles_share_servers\u0027: CONF.share.multitenancy_enabled,"},{"line_number":56,"context_line":"            \u0027snapshot_support\u0027: CONF.share.capability_snapshot_support,"},{"line_number":57,"context_line":"        }"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"        cls.st \u003d cls.create_share_type("}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_5ac3f7ed","line":56,"range":{"start_line":56,"start_character":0,"end_line":56,"end_character":71},"updated":"2019-02-26 01:19:36.000000000","message":"you should use this spec only when you need it..","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        cls.extra_specs \u003d {"},{"line_number":54,"context_line":"            \u0027storage_protocol\u0027: CONF.share.capability_storage_protocol,"},{"line_number":55,"context_line":"            \u0027driver_handles_share_servers\u0027: CONF.share.multitenancy_enabled,"},{"line_number":56,"context_line":"            \u0027snapshot_support\u0027: CONF.share.capability_snapshot_support,"},{"line_number":57,"context_line":"        }"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"        cls.st \u003d cls.create_share_type("}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_fb3ae3ca","line":56,"range":{"start_line":56,"start_character":0,"end_line":56,"end_character":71},"in_reply_to":"9fdfeff1_5ac3f7ed","updated":"2019-02-27 02:12:43.000000000","message":"I will need it for test_unmanage_share_with_snapshot","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        return share"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def _unmanage_share_and_wait(self, share):"},{"line_number":80,"context_line":"        self.shares_v2_client.unmanage_share(share[\u0027id\u0027])"},{"line_number":81,"context_line":"        self.shares_v2_client.wait_for_resource_deletion(share_id\u003dshare[\u0027id\u0027])"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def _reset_state_and_delete_share(self, share_id):"},{"line_number":84,"context_line":"        self.shares_v2_client.reset_state(share_id)"},{"line_number":85,"context_line":"        self._delete_share_and_wait(share_id)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def _delete_snapshot_and_wait(self, snap_id):"},{"line_number":88,"context_line":"        self.shares_v2_client.delete_snapshot(snap_id)"},{"line_number":89,"context_line":"        self.shares_v2_client.wait_for_resource_deletion("},{"line_number":90,"context_line":"            snapshot_id\u003dsnap_id"},{"line_number":91,"context_line":"        )"},{"line_number":92,"context_line":"        self.assertRaises(lib_exc.NotFound,"},{"line_number":93,"context_line":"                          self.shares_v2_client.get_snapshot,"},{"line_number":94,"context_line":"                          snapshot_id\u003dsnap_id)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def _delete_share_and_wait(self, share_id):"},{"line_number":97,"context_line":"        self.shares_v2_client.delete_share(share_id)"},{"line_number":98,"context_line":"        self.shares_v2_client.wait_for_resource_deletion(share_id\u003dshare_id)"},{"line_number":99,"context_line":"        self.assertRaises(lib_exc.NotFound,"},{"line_number":100,"context_line":"                          self.shares_v2_client.get_share,"},{"line_number":101,"context_line":"                          share_id)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def _manage_share_for_cleanup_and_wait(self, params,"},{"line_number":104,"context_line":"                                           state\u003dconstants.STATUS_AVAILABLE):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_258ff823","line":101,"range":{"start_line":79,"start_character":0,"end_line":101,"end_character":35},"updated":"2019-02-26 01:19:36.000000000","message":"you can move these into the base class for reuse across multiple test classes","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        return share"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def _unmanage_share_and_wait(self, share):"},{"line_number":80,"context_line":"        self.shares_v2_client.unmanage_share(share[\u0027id\u0027])"},{"line_number":81,"context_line":"        self.shares_v2_client.wait_for_resource_deletion(share_id\u003dshare[\u0027id\u0027])"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def _reset_state_and_delete_share(self, share_id):"},{"line_number":84,"context_line":"        self.shares_v2_client.reset_state(share_id)"},{"line_number":85,"context_line":"        self._delete_share_and_wait(share_id)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def _delete_snapshot_and_wait(self, snap_id):"},{"line_number":88,"context_line":"        self.shares_v2_client.delete_snapshot(snap_id)"},{"line_number":89,"context_line":"        self.shares_v2_client.wait_for_resource_deletion("},{"line_number":90,"context_line":"            snapshot_id\u003dsnap_id"},{"line_number":91,"context_line":"        )"},{"line_number":92,"context_line":"        self.assertRaises(lib_exc.NotFound,"},{"line_number":93,"context_line":"                          self.shares_v2_client.get_snapshot,"},{"line_number":94,"context_line":"                          snapshot_id\u003dsnap_id)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def _delete_share_and_wait(self, share_id):"},{"line_number":97,"context_line":"        self.shares_v2_client.delete_share(share_id)"},{"line_number":98,"context_line":"        self.shares_v2_client.wait_for_resource_deletion(share_id\u003dshare_id)"},{"line_number":99,"context_line":"        self.assertRaises(lib_exc.NotFound,"},{"line_number":100,"context_line":"                          self.shares_v2_client.get_share,"},{"line_number":101,"context_line":"                          share_id)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def _manage_share_for_cleanup_and_wait(self, params,"},{"line_number":104,"context_line":"                                           state\u003dconstants.STATUS_AVAILABLE):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_7b5fd3e4","line":101,"range":{"start_line":79,"start_character":0,"end_line":101,"end_character":35},"in_reply_to":"9fdfeff1_258ff823","updated":"2019-02-27 02:12:43.000000000","message":"Done","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":113,"context_line":""},{"line_number":114,"context_line":"        return managed_share"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    def _merge_params_from_share(self, share, invalid_params\u003d{}):"},{"line_number":117,"context_line":"        valid_params \u003d {"},{"line_number":118,"context_line":"            \u0027service_host\u0027: share[\u0027host\u0027],"},{"line_number":119,"context_line":"            \u0027protocol\u0027: share[\u0027share_proto\u0027],"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_45947c37","line":116,"range":{"start_line":116,"start_character":61,"end_line":116,"end_character":63},"updated":"2019-02-26 01:19:36.000000000","message":"https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":113,"context_line":""},{"line_number":114,"context_line":"        return managed_share"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    def _merge_params_from_share(self, share, invalid_params\u003d{}):"},{"line_number":117,"context_line":"        valid_params \u003d {"},{"line_number":118,"context_line":"            \u0027service_host\u0027: share[\u0027host\u0027],"},{"line_number":119,"context_line":"            \u0027protocol\u0027: share[\u0027share_proto\u0027],"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_9b0957de","line":116,"range":{"start_line":116,"start_character":61,"end_line":116,"end_character":63},"in_reply_to":"9fdfeff1_45947c37","updated":"2019-02-27 02:12:43.000000000","message":"Done","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        share \u003d self._create_share_for_manage()"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        valid_params \u003d self._merge_params_from_share(share)"},{"line_number":145,"context_line":"        self._unmanage_share_and_wait(share)"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        test_set \u003d ["}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_65a8a077","line":144,"range":{"start_line":144,"start_character":28,"end_line":144,"end_character":52},"updated":"2019-02-26 01:19:36.000000000","message":"_get_manage_params_from_share sounds more like what you\u0027re doing","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        share \u003d self._create_share_for_manage()"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        valid_params \u003d self._merge_params_from_share(share)"},{"line_number":145,"context_line":"        self._unmanage_share_and_wait(share)"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        test_set \u003d ["}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_fb20a34b","line":144,"range":{"start_line":144,"start_character":28,"end_line":144,"end_character":52},"in_reply_to":"9fdfeff1_65a8a077","updated":"2019-02-27 02:12:43.000000000","message":"Replaced.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":24,"id":"5fc1f717_6e6c7008","updated":"2019-03-06 19:32:15.000000000","message":"Missing coverage: \n\nunmanage DHSS\u003dTrue share with API v2.48, expect it to fail with 4xx\nummanage DHSS\u003dTrue snapshot with API v2.48, expect it to fail with 4xx\n\nmanage DHSS\u003dTrue share without share_server_id, expect it to fail with 4xx","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":24,"id":"5fc1f717_7a2429c7","in_reply_to":"5fc1f717_6e6c7008","updated":"2019-03-06 22:43:18.000000000","message":"Done","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"}],"manila_tempest_tests/tests/api/admin/test_share_servers.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b48ff814fca4faf3941e8ea15f22aa75193d5ce7","unresolved":false,"context_lines":[{"line_number":269,"context_line":"                self.shares_v2_client.wait_for_resource_deletion("},{"line_number":270,"context_line":"                    sn_id\u003dnew_sn[\"id\"])"},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"    @testtools.skipUnless("},{"line_number":273,"context_line":"        CONF.share.multitenancy_enabled,"},{"line_number":274,"context_line":"        \u0027Multitenancy tests are disabled.\u0027)"},{"line_number":275,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":276,"context_line":"    def test_share_server_reset_state(self):"},{"line_number":277,"context_line":"        # Get network and subnet from existing share_network and reuse it"}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_2f09dc29","line":274,"range":{"start_line":272,"start_character":0,"end_line":274,"end_character":43},"updated":"2019-02-28 17:31:46.000000000","message":"This skip has been added at the class level already..","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"f397b1261fc0b8f797e8321ce85c531682a33c41","unresolved":false,"context_lines":[{"line_number":269,"context_line":"                self.shares_v2_client.wait_for_resource_deletion("},{"line_number":270,"context_line":"                    sn_id\u003dnew_sn[\"id\"])"},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"    @testtools.skipUnless("},{"line_number":273,"context_line":"        CONF.share.multitenancy_enabled,"},{"line_number":274,"context_line":"        \u0027Multitenancy tests are disabled.\u0027)"},{"line_number":275,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":276,"context_line":"    def test_share_server_reset_state(self):"},{"line_number":277,"context_line":"        # Get network and subnet from existing share_network and reuse it"}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_a2986c68","line":274,"range":{"start_line":272,"start_character":0,"end_line":274,"end_character":43},"in_reply_to":"9fdfeff1_2f09dc29","updated":"2019-02-28 20:24:40.000000000","message":"Removed.","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b48ff814fca4faf3941e8ea15f22aa75193d5ce7","unresolved":false,"context_lines":[{"line_number":276,"context_line":"    def test_share_server_reset_state(self):"},{"line_number":277,"context_line":"        # Get network and subnet from existing share_network and reuse it"},{"line_number":278,"context_line":"        # to be able to delete share_server after test ends."},{"line_number":279,"context_line":"        new_sn \u003d self.create_share_network("},{"line_number":280,"context_line":"            neutron_net_id\u003dself.share_network[\u0027neutron_net_id\u0027],"},{"line_number":281,"context_line":"            neutron_subnet_id\u003dself.share_network[\u0027neutron_subnet_id\u0027])"},{"line_number":282,"context_line":""},{"line_number":283,"context_line":"        # create share type with DHSS\u003dtrue"},{"line_number":284,"context_line":"        st_name \u003d data_utils.rand_name(\"manage-st-name\")"}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_2f7ebc69","line":281,"range":{"start_line":279,"start_character":7,"end_line":281,"end_character":69},"updated":"2019-02-28 17:31:46.000000000","message":"Don\u0027t think you need a new share network for what you\u0027re testing. please reuse the one created for you by the base class.","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"f397b1261fc0b8f797e8321ce85c531682a33c41","unresolved":false,"context_lines":[{"line_number":276,"context_line":"    def test_share_server_reset_state(self):"},{"line_number":277,"context_line":"        # Get network and subnet from existing share_network and reuse it"},{"line_number":278,"context_line":"        # to be able to delete share_server after test ends."},{"line_number":279,"context_line":"        new_sn \u003d self.create_share_network("},{"line_number":280,"context_line":"            neutron_net_id\u003dself.share_network[\u0027neutron_net_id\u0027],"},{"line_number":281,"context_line":"            neutron_subnet_id\u003dself.share_network[\u0027neutron_subnet_id\u0027])"},{"line_number":282,"context_line":""},{"line_number":283,"context_line":"        # create share type with DHSS\u003dtrue"},{"line_number":284,"context_line":"        st_name \u003d data_utils.rand_name(\"manage-st-name\")"}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_021e18ba","line":281,"range":{"start_line":279,"start_character":7,"end_line":281,"end_character":69},"in_reply_to":"9fdfeff1_2f7ebc69","updated":"2019-02-28 20:24:40.000000000","message":"I need to make sure that I\u0027m using a new share server for this test. Otherwise, some concurrent test\u0027s share server may be used here or vice-versa, and resetting its state may break these tests.","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b48ff814fca4faf3941e8ea15f22aa75193d5ce7","unresolved":false,"context_lines":[{"line_number":280,"context_line":"            neutron_net_id\u003dself.share_network[\u0027neutron_net_id\u0027],"},{"line_number":281,"context_line":"            neutron_subnet_id\u003dself.share_network[\u0027neutron_subnet_id\u0027])"},{"line_number":282,"context_line":""},{"line_number":283,"context_line":"        # create share type with DHSS\u003dtrue"},{"line_number":284,"context_line":"        st_name \u003d data_utils.rand_name(\"manage-st-name\")"},{"line_number":285,"context_line":"        extra_specs \u003d {"},{"line_number":286,"context_line":"            \u0027storage_protocol\u0027: CONF.share.capability_storage_protocol,"},{"line_number":287,"context_line":"            \u0027driver_handles_share_servers\u0027: CONF.share.multitenancy_enabled,"},{"line_number":288,"context_line":"        }"},{"line_number":289,"context_line":"        new_st \u003d self.create_share_type("},{"line_number":290,"context_line":"            name\u003dst_name,"},{"line_number":291,"context_line":"            cleanup_in_class\u003dTrue,"},{"line_number":292,"context_line":"            extra_specs\u003dextra_specs"},{"line_number":293,"context_line":"        )"},{"line_number":294,"context_line":"        share \u003d self.create_share("},{"line_number":295,"context_line":"            share_network_id\u003dnew_sn[\u0027id\u0027],"},{"line_number":296,"context_line":"            share_type_id\u003dnew_st[\u0027share_type\u0027][\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_2f223ca4","line":293,"range":{"start_line":283,"start_character":0,"end_line":293,"end_character":9},"updated":"2019-02-28 17:31:46.000000000","message":"You can reuse the type declared in the class\u0027s resource_setup","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"f397b1261fc0b8f797e8321ce85c531682a33c41","unresolved":false,"context_lines":[{"line_number":280,"context_line":"            neutron_net_id\u003dself.share_network[\u0027neutron_net_id\u0027],"},{"line_number":281,"context_line":"            neutron_subnet_id\u003dself.share_network[\u0027neutron_subnet_id\u0027])"},{"line_number":282,"context_line":""},{"line_number":283,"context_line":"        # create share type with DHSS\u003dtrue"},{"line_number":284,"context_line":"        st_name \u003d data_utils.rand_name(\"manage-st-name\")"},{"line_number":285,"context_line":"        extra_specs \u003d {"},{"line_number":286,"context_line":"            \u0027storage_protocol\u0027: CONF.share.capability_storage_protocol,"},{"line_number":287,"context_line":"            \u0027driver_handles_share_servers\u0027: CONF.share.multitenancy_enabled,"},{"line_number":288,"context_line":"        }"},{"line_number":289,"context_line":"        new_st \u003d self.create_share_type("},{"line_number":290,"context_line":"            name\u003dst_name,"},{"line_number":291,"context_line":"            cleanup_in_class\u003dTrue,"},{"line_number":292,"context_line":"            extra_specs\u003dextra_specs"},{"line_number":293,"context_line":"        )"},{"line_number":294,"context_line":"        share \u003d self.create_share("},{"line_number":295,"context_line":"            share_network_id\u003dnew_sn[\u0027id\u0027],"},{"line_number":296,"context_line":"            share_type_id\u003dnew_st[\u0027share_type\u0027][\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_c279f0fb","line":293,"range":{"start_line":283,"start_character":0,"end_line":293,"end_character":9},"in_reply_to":"9fdfeff1_2f223ca4","updated":"2019-02-28 20:24:40.000000000","message":"same as above","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b48ff814fca4faf3941e8ea15f22aa75193d5ce7","unresolved":false,"context_lines":[{"line_number":297,"context_line":"        )"},{"line_number":298,"context_line":"        share \u003d self.shares_v2_client.get_share(share[\u0027id\u0027])"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"        el \u003d self.shares_v2_client.list_share_export_locations(share[\u0027id\u0027])"},{"line_number":301,"context_line":"        share[\u0027export_locations\u0027] \u003d el"},{"line_number":302,"context_line":""},{"line_number":303,"context_line":"        # obtain share server"},{"line_number":304,"context_line":"        share_server \u003d self.shares_v2_client.show_share_server("}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_8f3248f1","line":301,"range":{"start_line":300,"start_character":0,"end_line":301,"end_character":38},"updated":"2019-02-28 17:31:46.000000000","message":"why?","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"f397b1261fc0b8f797e8321ce85c531682a33c41","unresolved":false,"context_lines":[{"line_number":297,"context_line":"        )"},{"line_number":298,"context_line":"        share \u003d self.shares_v2_client.get_share(share[\u0027id\u0027])"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"        el \u003d self.shares_v2_client.list_share_export_locations(share[\u0027id\u0027])"},{"line_number":301,"context_line":"        share[\u0027export_locations\u0027] \u003d el"},{"line_number":302,"context_line":""},{"line_number":303,"context_line":"        # obtain share server"},{"line_number":304,"context_line":"        share_server \u003d self.shares_v2_client.show_share_server("}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_42a3c09e","line":301,"range":{"start_line":300,"start_character":0,"end_line":301,"end_character":38},"in_reply_to":"9fdfeff1_8f3248f1","updated":"2019-02-28 20:24:40.000000000","message":"Dumb copy \u0026 paste. Removed.","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b48ff814fca4faf3941e8ea15f22aa75193d5ce7","unresolved":false,"context_lines":[{"line_number":315,"context_line":"                      constants.SERVER_STATE_UNMANAGE_ERROR,"},{"line_number":316,"context_line":"                      constants.SERVER_STATE_UNMANAGE_STARTING):"},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"            # leave it in a valid state"},{"line_number":319,"context_line":"            self.shares_v2_client.share_server_reset_state("},{"line_number":320,"context_line":"                share_server[\u0027id\u0027],"},{"line_number":321,"context_line":"                status\u003dstate,"}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_8f47a84c","line":318,"range":{"start_line":318,"start_character":14,"end_line":318,"end_character":39},"updated":"2019-02-28 17:31:46.000000000","message":"you\u0027re resetting state though..","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"f397b1261fc0b8f797e8321ce85c531682a33c41","unresolved":false,"context_lines":[{"line_number":315,"context_line":"                      constants.SERVER_STATE_UNMANAGE_ERROR,"},{"line_number":316,"context_line":"                      constants.SERVER_STATE_UNMANAGE_STARTING):"},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"            # leave it in a valid state"},{"line_number":319,"context_line":"            self.shares_v2_client.share_server_reset_state("},{"line_number":320,"context_line":"                share_server[\u0027id\u0027],"},{"line_number":321,"context_line":"                status\u003dstate,"}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_226ebc2b","line":318,"range":{"start_line":318,"start_character":14,"end_line":318,"end_character":39},"in_reply_to":"9fdfeff1_8f47a84c","updated":"2019-02-28 20:24:40.000000000","message":"Fixed.","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"f4ae5d252d54fa502d0fad2ad41a3746635d4d52","unresolved":false,"context_lines":[{"line_number":286,"context_line":"            \u0027storage_protocol\u0027: CONF.share.capability_storage_protocol,"},{"line_number":287,"context_line":"            \u0027driver_handles_share_servers\u0027: CONF.share.multitenancy_enabled,"},{"line_number":288,"context_line":"        }"},{"line_number":289,"context_line":"        new_st \u003d self.create_share_type("},{"line_number":290,"context_line":"            name\u003dst_name,"},{"line_number":291,"context_line":"            cleanup_in_class\u003dTrue,"},{"line_number":292,"context_line":"            extra_specs\u003dextra_specs"},{"line_number":293,"context_line":"        )"},{"line_number":294,"context_line":"        share \u003d self.create_share("},{"line_number":295,"context_line":"            share_network_id\u003dnew_sn[\u0027id\u0027],"},{"line_number":296,"context_line":"            share_type_id\u003dnew_st[\u0027share_type\u0027][\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":12,"id":"9fdfeff1_6837c3e4","line":293,"range":{"start_line":289,"start_character":8,"end_line":293,"end_character":9},"updated":"2019-02-28 20:40:34.000000000","message":"thanks for addressing the issue with the share network, however, I don\u0027t see why you need this new share type...","commit_id":"f0663eab3d65bd5d5c1d71422e022b8bc3887205"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"6f0b910841fdf90fbb848fb133d9ac15412e478e","unresolved":false,"context_lines":[{"line_number":286,"context_line":"            \u0027storage_protocol\u0027: CONF.share.capability_storage_protocol,"},{"line_number":287,"context_line":"            \u0027driver_handles_share_servers\u0027: CONF.share.multitenancy_enabled,"},{"line_number":288,"context_line":"        }"},{"line_number":289,"context_line":"        new_st \u003d self.create_share_type("},{"line_number":290,"context_line":"            name\u003dst_name,"},{"line_number":291,"context_line":"            cleanup_in_class\u003dTrue,"},{"line_number":292,"context_line":"            extra_specs\u003dextra_specs"},{"line_number":293,"context_line":"        )"},{"line_number":294,"context_line":"        share \u003d self.create_share("},{"line_number":295,"context_line":"            share_network_id\u003dnew_sn[\u0027id\u0027],"},{"line_number":296,"context_line":"            share_type_id\u003dnew_st[\u0027share_type\u0027][\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":12,"id":"9fdfeff1_a8828bc5","line":293,"range":{"start_line":289,"start_character":8,"end_line":293,"end_character":9},"in_reply_to":"9fdfeff1_6837c3e4","updated":"2019-02-28 21:13:17.000000000","message":"oops, I don\u0027t need it. Just the new share network. Removed.","commit_id":"f0663eab3d65bd5d5c1d71422e022b8bc3887205"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"54cd8a68c799c777da7d96630fe91aeff044528c","unresolved":false,"context_lines":[{"line_number":70,"context_line":"            \"updated_at\","},{"line_number":71,"context_line":"            \"project_id\","},{"line_number":72,"context_line":"        ]"},{"line_number":73,"context_line":"        if utils.is_microversion_ge(CONF.share.max_api_microversion, \"2.49\"):"},{"line_number":74,"context_line":"            keys.append(\"is_auto_deletable\")"},{"line_number":75,"context_line":"        for server in servers:"},{"line_number":76,"context_line":"            # All expected keys are present"}],"source_content_type":"text/x-python","patch_set":17,"id":"9fdfeff1_8ebb00c2","line":73,"updated":"2019-03-01 14:32:26.000000000","message":"This field won\u0027t be available in the show command, but not in the list command.","commit_id":"f41b9329b2e0965e7f8d83750ac6c09fa613c450"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"4c9d0d44dfd29de7f84f1e918d7a7e5dece59e57","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        # List share servers, filtered by share_network_id"},{"line_number":223,"context_line":"        servers \u003d self.shares_v2_client.list_share_servers("},{"line_number":224,"context_line":"            {\"share_network\": new_sn[\"id\"]})"},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"        # There can be more than one share server for share network when retry"},{"line_number":227,"context_line":"        # was used and share was created successfully not from first time."},{"line_number":228,"context_line":"        # So, iterate all share-servers, release all created resources. It will"}],"source_content_type":"text/x-python","patch_set":18,"id":"9fdfeff1_12a72abf","line":225,"range":{"start_line":225,"start_character":0,"end_line":225,"end_character":0},"updated":"2019-03-01 20:42:26.000000000","message":"Can you add some filtering based on the new key added: is_auto_deletable","commit_id":"f595a14d67301f5a71ec35653d225237b948b7a2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":271,"context_line":"                      \"This test is not suitable for pre-existing \""},{"line_number":272,"context_line":"                      \"share_network.\")"},{"line_number":273,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":274,"context_line":"    def test_share_server_reset_state(self):"},{"line_number":275,"context_line":"        # Get network and subnet from existing share_network and reuse it"},{"line_number":276,"context_line":"        # to be able to delete share_server after test ends."},{"line_number":277,"context_line":"        new_sn \u003d self.create_share_network("}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_6e3a30e8","line":274,"range":{"start_line":274,"start_character":0,"end_line":274,"end_character":44},"updated":"2019-03-06 19:32:15.000000000","message":"shouldn\u0027t this be skipped for micro version less than 2.49","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"75d9351b54ba77604ec6442bb1e2afa0c19cdb8f","unresolved":false,"context_lines":[{"line_number":271,"context_line":"                      \"This test is not suitable for pre-existing \""},{"line_number":272,"context_line":"                      \"share_network.\")"},{"line_number":273,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":274,"context_line":"    def test_share_server_reset_state(self):"},{"line_number":275,"context_line":"        # Get network and subnet from existing share_network and reuse it"},{"line_number":276,"context_line":"        # to be able to delete share_server after test ends."},{"line_number":277,"context_line":"        new_sn \u003d self.create_share_network("}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_11f5d057","line":274,"range":{"start_line":274,"start_character":0,"end_line":274,"end_character":44},"in_reply_to":"5fc1f717_6e3a30e8","updated":"2019-03-07 12:10:08.000000000","message":"+1","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":271,"context_line":"                      \"This test is not suitable for pre-existing \""},{"line_number":272,"context_line":"                      \"share_network.\")"},{"line_number":273,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":274,"context_line":"    def test_share_server_reset_state(self):"},{"line_number":275,"context_line":"        # Get network and subnet from existing share_network and reuse it"},{"line_number":276,"context_line":"        # to be able to delete share_server after test ends."},{"line_number":277,"context_line":"        new_sn \u003d self.create_share_network("}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_d7e17800","line":274,"range":{"start_line":274,"start_character":0,"end_line":274,"end_character":44},"in_reply_to":"5fc1f717_6e3a30e8","updated":"2019-03-06 22:43:18.000000000","message":"Done","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"}],"manila_tempest_tests/tests/api/admin/test_share_servers_manage.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    def resource_setup(cls):"},{"line_number":39,"context_line":"        super(ManageShareServersTest, cls).resource_setup()"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        if (utils.is_microversion_lt(CONF.share.max_api_microversion, \"2.49\")):"},{"line_number":42,"context_line":"            raise cls.skipException("},{"line_number":43,"context_line":"                \"Multitenancy tests are disabled for microversion \u003c 2.49\")"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        # create share type"},{"line_number":46,"context_line":"        cls.st_name \u003d data_utils.rand_name(\"manage-st-name\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_a5552852","line":43,"range":{"start_line":41,"start_character":0,"end_line":43,"end_character":74},"updated":"2019-02-26 01:19:36.000000000","message":"this is already covered with the three skip conditions you have above","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    def resource_setup(cls):"},{"line_number":39,"context_line":"        super(ManageShareServersTest, cls).resource_setup()"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        if (utils.is_microversion_lt(CONF.share.max_api_microversion, \"2.49\")):"},{"line_number":42,"context_line":"            raise cls.skipException("},{"line_number":43,"context_line":"                \"Multitenancy tests are disabled for microversion \u003c 2.49\")"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        # create share type"},{"line_number":46,"context_line":"        cls.st_name \u003d data_utils.rand_name(\"manage-st-name\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_7bbb53e4","line":43,"range":{"start_line":41,"start_character":0,"end_line":43,"end_character":74},"in_reply_to":"9fdfeff1_a5552852","updated":"2019-02-27 02:12:43.000000000","message":"Removed.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":66,"context_line":"            name\u003dname,"},{"line_number":67,"context_line":"            description\u003ddescription,"},{"line_number":68,"context_line":"            share_server_id\u003dshare_server_id"},{"line_number":69,"context_line":"        )"},{"line_number":70,"context_line":"        self.shares_v2_client.wait_for_share_status("},{"line_number":71,"context_line":"            managed_share[\u0027id\u0027], constants.STATUS_AVAILABLE"},{"line_number":72,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_e5cc9035","line":69,"range":{"start_line":69,"start_character":8,"end_line":69,"end_character":9},"updated":"2019-02-26 01:19:36.000000000","message":"nit: follow a consistent style of closing method call brace.. i.e, pull all of them to the end of the previous line..","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        for key in keys:"},{"line_number":135,"context_line":"            self.assertIn(key, share_server.keys())"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        # check that the share server is initially auto-deletable"},{"line_number":138,"context_line":"        self.assertTrue(share_server[\"is_auto_deletable\"])"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        self._unmanage_share_and_wait(share)"},{"line_number":141,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_25f05867","line":138,"range":{"start_line":137,"start_character":0,"end_line":138,"end_character":58},"updated":"2019-02-26 01:19:36.000000000","message":"This needn\u0027t be true always, correct? What if one is using an existing share network which has a managed share server already created in it, and the share created on L112 is on it..","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        for key in keys:"},{"line_number":135,"context_line":"            self.assertIn(key, share_server.keys())"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        # check that the share server is initially auto-deletable"},{"line_number":138,"context_line":"        self.assertTrue(share_server[\"is_auto_deletable\"])"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        self._unmanage_share_and_wait(share)"},{"line_number":141,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_9b1877d3","line":138,"range":{"start_line":137,"start_character":0,"end_line":138,"end_character":58},"in_reply_to":"9fdfeff1_25f05867","updated":"2019-02-27 02:12:43.000000000","message":"Fixed by creating a share network, and passing it to the share creation on L112. This way we guarantee that a new share server will be created.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        self._unmanage_share_and_wait(share)"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        # check that the share server is not auto-deletable after unmanaging"},{"line_number":143,"context_line":"        # its share"},{"line_number":144,"context_line":"        share_server \u003d self.shares_v2_client.show_share_server("},{"line_number":145,"context_line":"            share_server[\u0027id\u0027]"},{"line_number":146,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_c5006c37","line":143,"range":{"start_line":142,"start_character":0,"end_line":143,"end_character":19},"updated":"2019-02-26 01:19:36.000000000","message":"but this isn\u0027t a share server that you managed, shouldn\u0027t auto-deletable always be true?","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        self._unmanage_share_and_wait(share)"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        # check that the share server is not auto-deletable after unmanaging"},{"line_number":143,"context_line":"        # its share"},{"line_number":144,"context_line":"        share_server \u003d self.shares_v2_client.show_share_server("},{"line_number":145,"context_line":"            share_server[\u0027id\u0027]"},{"line_number":146,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_de890d6f","line":143,"range":{"start_line":142,"start_character":0,"end_line":143,"end_character":19},"in_reply_to":"9fdfeff1_c5006c37","updated":"2019-02-27 02:12:43.000000000","message":"Initially, the share server is auto-deletable. From the moment its share is unmanaged, the share server becomes non-auto-deletable.\n\nThis way we protect the unamanged share\u0027s share server being deleted automatically.\n\nNote that at this moment the share server was not unmanaged yet.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        share_server \u003d self.shares_v2_client.show_share_server("},{"line_number":145,"context_line":"            share_server[\u0027id\u0027]"},{"line_number":146,"context_line":"        )"},{"line_number":147,"context_line":"        self.assertFalse(share_server[\u0027is_auto_deletable\u0027])"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        # unmanage share server and manage it again"},{"line_number":150,"context_line":"        self._unmanage_share_server_and_wait(share_server)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_05ebd477","line":147,"range":{"start_line":147,"start_character":13,"end_line":147,"end_character":24},"updated":"2019-02-26 01:19:36.000000000","message":"assertIs(False, ...)","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        share_server \u003d self.shares_v2_client.show_share_server("},{"line_number":145,"context_line":"            share_server[\u0027id\u0027]"},{"line_number":146,"context_line":"        )"},{"line_number":147,"context_line":"        self.assertFalse(share_server[\u0027is_auto_deletable\u0027])"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        # unmanage share server and manage it again"},{"line_number":150,"context_line":"        self._unmanage_share_server_and_wait(share_server)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_1ec23586","line":147,"range":{"start_line":147,"start_character":13,"end_line":147,"end_character":24},"in_reply_to":"9fdfeff1_05ebd477","updated":"2019-02-27 02:12:43.000000000","message":"Done","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":172,"context_line":"        )"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        # check that the managed share server is still not auto-deletable"},{"line_number":175,"context_line":"        self.assertFalse(managed_share_server[\"is_auto_deletable\"])"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"        # delete share"},{"line_number":178,"context_line":"        self._delete_share_and_wait(managed_share)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_05a0b441","line":175,"range":{"start_line":175,"start_character":13,"end_line":175,"end_character":24},"updated":"2019-02-26 01:19:36.000000000","message":"assertIs(False, ...)\n\n\nhttps://jamescooke.info/python-unittest-asserttrue-is-truthy-assertfalse-is-falsy.html","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":172,"context_line":"        )"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        # check that the managed share server is still not auto-deletable"},{"line_number":175,"context_line":"        self.assertFalse(managed_share_server[\"is_auto_deletable\"])"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"        # delete share"},{"line_number":178,"context_line":"        self._delete_share_and_wait(managed_share)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_beba0908","line":175,"range":{"start_line":175,"start_character":13,"end_line":175,"end_character":24},"in_reply_to":"9fdfeff1_05a0b441","updated":"2019-02-27 02:12:43.000000000","message":"Done","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        self._delete_share_server_and_wait(managed_share_server)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":184,"context_line":"    def test_share_server_reset_state(self):"},{"line_number":185,"context_line":"        # create share"},{"line_number":186,"context_line":"        share \u003d self.create_share("},{"line_number":187,"context_line":"            share_type_id\u003dself.share_type[\u0027share_type\u0027][\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_a5b1a891","line":184,"range":{"start_line":184,"start_character":8,"end_line":184,"end_character":37},"updated":"2019-02-26 01:19:36.000000000","message":"This test isn\u0027t related to manage, can you move it to the generic share server test class?","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        self._delete_share_server_and_wait(managed_share_server)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":184,"context_line":"    def test_share_server_reset_state(self):"},{"line_number":185,"context_line":"        # create share"},{"line_number":186,"context_line":"        share \u003d self.create_share("},{"line_number":187,"context_line":"            share_type_id\u003dself.share_type[\u0027share_type\u0027][\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_5e5afdf1","line":184,"range":{"start_line":184,"start_character":8,"end_line":184,"end_character":37},"in_reply_to":"9fdfeff1_a5b1a891","updated":"2019-02-27 02:12:43.000000000","message":"Moved.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":197,"context_line":""},{"line_number":198,"context_line":"        for state in (constants.SERVER_STATE_ACTIVE,"},{"line_number":199,"context_line":"                      constants.SERVER_STATE_CREATING,"},{"line_number":200,"context_line":"                      constants.SERVER_STATE_DELETED,"},{"line_number":201,"context_line":"                      constants.SERVER_STATE_DELETING,"},{"line_number":202,"context_line":"                      constants.SERVER_STATE_ERROR,"},{"line_number":203,"context_line":"                      constants.SERVER_STATE_INACTIVE,"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_25be1865","line":200,"range":{"start_line":200,"start_character":32,"end_line":200,"end_character":52},"updated":"2019-02-26 01:19:36.000000000","message":"This isn\u0027t a valid state","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":197,"context_line":""},{"line_number":198,"context_line":"        for state in (constants.SERVER_STATE_ACTIVE,"},{"line_number":199,"context_line":"                      constants.SERVER_STATE_CREATING,"},{"line_number":200,"context_line":"                      constants.SERVER_STATE_DELETED,"},{"line_number":201,"context_line":"                      constants.SERVER_STATE_DELETING,"},{"line_number":202,"context_line":"                      constants.SERVER_STATE_ERROR,"},{"line_number":203,"context_line":"                      constants.SERVER_STATE_INACTIVE,"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_7e04a1c6","line":200,"range":{"start_line":200,"start_character":32,"end_line":200,"end_character":52},"in_reply_to":"9fdfeff1_25be1865","updated":"2019-02-27 02:12:43.000000000","message":"Removed.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":211,"context_line":"                share[\u0027share_server_id\u0027],"},{"line_number":212,"context_line":"                status\u003dstate,"},{"line_number":213,"context_line":"            )"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"            # bring it back in the active state"},{"line_number":216,"context_line":"            self.shares_v2_client.share_server_reset_state("},{"line_number":217,"context_line":"                share[\u0027share_server_id\u0027],"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_e5b33099","line":214,"range":{"start_line":214,"start_character":0,"end_line":214,"end_character":0},"updated":"2019-02-26 01:19:36.000000000","message":"validation?","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":211,"context_line":"                share[\u0027share_server_id\u0027],"},{"line_number":212,"context_line":"                status\u003dstate,"},{"line_number":213,"context_line":"            )"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"            # bring it back in the active state"},{"line_number":216,"context_line":"            self.shares_v2_client.share_server_reset_state("},{"line_number":217,"context_line":"                share[\u0027share_server_id\u0027],"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_1ee31507","line":214,"range":{"start_line":214,"start_character":0,"end_line":214,"end_character":0},"in_reply_to":"9fdfeff1_e5b33099","updated":"2019-02-27 02:12:43.000000000","message":"Added.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b48ff814fca4faf3941e8ea15f22aa75193d5ce7","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        original_share_network \u003d self.shares_v2_client.get_share_network("},{"line_number":56,"context_line":"            self.shares_v2_client.share_network_id"},{"line_number":57,"context_line":"        )"},{"line_number":58,"context_line":"        share_network \u003d self.create_share_network("},{"line_number":59,"context_line":"            neutron_net_id\u003doriginal_share_network[\u0027neutron_net_id\u0027],"},{"line_number":60,"context_line":"            neutron_subnet_id\u003doriginal_share_network[\u0027neutron_subnet_id\u0027],"},{"line_number":61,"context_line":"            cleanup_in_class\u003dTrue"},{"line_number":62,"context_line":"        )"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"        # create share"},{"line_number":65,"context_line":"        share \u003d self.create_share("}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_8f6008d1","line":62,"range":{"start_line":58,"start_character":0,"end_line":62,"end_character":9},"updated":"2019-02-28 17:31:46.000000000","message":"Hmmm, so to really unmanage and manage a fresh share server, you need a new share network... \n\nBe aware that you need to skip this test if a share network is configured in tempest\u0027s config file....","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"f397b1261fc0b8f797e8321ce85c531682a33c41","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        original_share_network \u003d self.shares_v2_client.get_share_network("},{"line_number":56,"context_line":"            self.shares_v2_client.share_network_id"},{"line_number":57,"context_line":"        )"},{"line_number":58,"context_line":"        share_network \u003d self.create_share_network("},{"line_number":59,"context_line":"            neutron_net_id\u003doriginal_share_network[\u0027neutron_net_id\u0027],"},{"line_number":60,"context_line":"            neutron_subnet_id\u003doriginal_share_network[\u0027neutron_subnet_id\u0027],"},{"line_number":61,"context_line":"            cleanup_in_class\u003dTrue"},{"line_number":62,"context_line":"        )"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"        # create share"},{"line_number":65,"context_line":"        share \u003d self.create_share("}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_8269a8f8","line":62,"range":{"start_line":58,"start_character":0,"end_line":62,"end_character":9},"in_reply_to":"9fdfeff1_8f6008d1","updated":"2019-02-28 20:24:40.000000000","message":"I added a skip condition.","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b48ff814fca4faf3941e8ea15f22aa75193d5ce7","unresolved":false,"context_lines":[{"line_number":89,"context_line":"            self.assertIn(key, share_server.keys())"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        # check that the share server is initially auto-deletable"},{"line_number":92,"context_line":"        self.assertTrue(share_server[\"is_auto_deletable\"])"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        self._unmanage_share_and_wait(share)"},{"line_number":95,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_19dc4fdf","line":92,"range":{"start_line":92,"start_character":13,"end_line":92,"end_character":23},"updated":"2019-02-28 17:31:46.000000000","message":"assertIs(True, ...)","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"f397b1261fc0b8f797e8321ce85c531682a33c41","unresolved":false,"context_lines":[{"line_number":89,"context_line":"            self.assertIn(key, share_server.keys())"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        # check that the share server is initially auto-deletable"},{"line_number":92,"context_line":"        self.assertTrue(share_server[\"is_auto_deletable\"])"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        self._unmanage_share_and_wait(share)"},{"line_number":95,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_e2caf417","line":92,"range":{"start_line":92,"start_character":13,"end_line":92,"end_character":23},"in_reply_to":"9fdfeff1_19dc4fdf","updated":"2019-02-28 20:24:40.000000000","message":"Done","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b48ff814fca4faf3941e8ea15f22aa75193d5ce7","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        share_server \u003d self.shares_v2_client.show_share_server("},{"line_number":99,"context_line":"            share_server[\u0027id\u0027]"},{"line_number":100,"context_line":"        )"},{"line_number":101,"context_line":"        self.assertIs(False, share_server[\u0027is_auto_deletable\u0027])"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"        # unmanage share server and manage it again"},{"line_number":104,"context_line":"        self._unmanage_share_server_and_wait(share_server)"}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_598417b1","line":101,"range":{"start_line":101,"start_character":8,"end_line":101,"end_character":63},"updated":"2019-02-28 17:31:46.000000000","message":"Ah, so any share server that has ever had a share be unmanaged will never be auto deleted?\n\nIf yes, can you add a version of that fact (^) to your note above?","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"f397b1261fc0b8f797e8321ce85c531682a33c41","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        share_server \u003d self.shares_v2_client.show_share_server("},{"line_number":99,"context_line":"            share_server[\u0027id\u0027]"},{"line_number":100,"context_line":"        )"},{"line_number":101,"context_line":"        self.assertIs(False, share_server[\u0027is_auto_deletable\u0027])"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"        # unmanage share server and manage it again"},{"line_number":104,"context_line":"        self._unmanage_share_server_and_wait(share_server)"}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_420e603b","line":101,"range":{"start_line":101,"start_character":8,"end_line":101,"end_character":63},"in_reply_to":"9fdfeff1_598417b1","updated":"2019-02-28 20:24:40.000000000","message":"That\u0027s correct. Improved the comment.","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":90,"context_line":"        ]"},{"line_number":91,"context_line":"        # all expected keys are present"},{"line_number":92,"context_line":"        for key in keys:"},{"line_number":93,"context_line":"            self.assertIn(key, share_server.keys())"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        # check that the share server is initially auto-deletable"},{"line_number":96,"context_line":"        self.assertIs(True, share_server[\"is_auto_deletable\"])"}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_49d72ec1","line":93,"range":{"start_line":93,"start_character":31,"end_line":93,"end_character":50},"updated":"2019-03-06 19:32:15.000000000","message":"in python3, this is an iterator, just use assertIn(key, share_server)","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":90,"context_line":"        ]"},{"line_number":91,"context_line":"        # all expected keys are present"},{"line_number":92,"context_line":"        for key in keys:"},{"line_number":93,"context_line":"            self.assertIn(key, share_server.keys())"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        # check that the share server is initially auto-deletable"},{"line_number":96,"context_line":"        self.assertIs(True, share_server[\"is_auto_deletable\"])"}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_d7bad8dc","line":93,"range":{"start_line":93,"start_character":31,"end_line":93,"end_character":50},"in_reply_to":"5fc1f717_49d72ec1","updated":"2019-03-06 22:43:18.000000000","message":"Done","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        # check that the share server is initially auto-deletable"},{"line_number":96,"context_line":"        self.assertIs(True, share_server[\"is_auto_deletable\"])"},{"line_number":97,"context_line":"        self.assertEqual(share_server[\u0027id\u0027], share_server[\"identifier\"])"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        self._unmanage_share_and_wait(share)"},{"line_number":100,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_c966be52","line":97,"range":{"start_line":97,"start_character":8,"end_line":97,"end_character":72},"updated":"2019-03-06 19:32:15.000000000","message":"At some point, this may stop making sense. I expect drivers to update their identifiers on share server creation... assertIsNotNone is more appropriate","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        # check that the share server is initially auto-deletable"},{"line_number":96,"context_line":"        self.assertIs(True, share_server[\"is_auto_deletable\"])"},{"line_number":97,"context_line":"        self.assertEqual(share_server[\u0027id\u0027], share_server[\"identifier\"])"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        self._unmanage_share_and_wait(share)"},{"line_number":100,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_37c9dc77","line":97,"range":{"start_line":97,"start_character":8,"end_line":97,"end_character":72},"in_reply_to":"5fc1f717_c966be52","updated":"2019-03-06 22:43:18.000000000","message":"Done","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":122,"context_line":""},{"line_number":123,"context_line":"        # all expected keys are present in the managed share server"},{"line_number":124,"context_line":"        for key in keys:"},{"line_number":125,"context_line":"            self.assertIn(key, managed_share_server.keys())"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"        # check that managed share server is used by the managed share"},{"line_number":128,"context_line":"        self.assertEqual("}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_e9e37aa3","line":125,"range":{"start_line":125,"start_character":12,"end_line":125,"end_character":59},"updated":"2019-03-06 19:32:15.000000000","message":"same as above","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":122,"context_line":""},{"line_number":123,"context_line":"        # all expected keys are present in the managed share server"},{"line_number":124,"context_line":"        for key in keys:"},{"line_number":125,"context_line":"            self.assertIn(key, managed_share_server.keys())"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"        # check that managed share server is used by the managed share"},{"line_number":128,"context_line":"        self.assertEqual("}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_57c6e869","line":125,"range":{"start_line":125,"start_character":12,"end_line":125,"end_character":59},"in_reply_to":"5fc1f717_e9e37aa3","updated":"2019-03-06 22:43:18.000000000","message":"Done","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":132,"context_line":""},{"line_number":133,"context_line":"        # check that the managed share server is still not auto-deletable"},{"line_number":134,"context_line":"        self.assertIs(False, managed_share_server[\"is_auto_deletable\"])"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"        # delete share"},{"line_number":137,"context_line":"        self._delete_share_and_wait(managed_share)"},{"line_number":138,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_e9fcda3f","line":135,"range":{"start_line":135,"start_character":0,"end_line":135,"end_character":0},"updated":"2019-03-06 19:32:15.000000000","message":"It\u0027d be nice to have coverage to create a new share that ends up on this share server to test that workflow... \n\nthere may be a chance that manage will work, but create won\u0027t...\n\nWhile you think of the test, please ensure there\u0027s a fallback verification in case the driver does decide to end up creating a new share server for your share... although rare, there is a possibility that might happen.","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"7a737ecbd3ea4c2d769404953b2401abccab55f1","unresolved":false,"context_lines":[{"line_number":132,"context_line":""},{"line_number":133,"context_line":"        # check that the managed share server is still not auto-deletable"},{"line_number":134,"context_line":"        self.assertIs(False, managed_share_server[\"is_auto_deletable\"])"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"        # delete share"},{"line_number":137,"context_line":"        self._delete_share_and_wait(managed_share)"},{"line_number":138,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_601eb8bb","line":135,"range":{"start_line":135,"start_character":0,"end_line":135,"end_character":0},"in_reply_to":"5fc1f717_251f626d","updated":"2019-03-06 23:43:07.000000000","message":"What\u0027s the usefulness of such test?\n\nIf it suceeded the first assertEqual, that\u0027s good, the test passed.\n\nIf not, the test is \"inconclusive\"? We don\u0027t know whether it was pure chance of the share not being scheduled there, or if the driver forced the creation of another share server for some reason. We cannot say \"ok the test passed\" in the second situation. If such test is written, should be just the assertEqual part above. But if we have no control on where it will land, it could just fail randomly.\n\nI don\u0027t think we should write tests that don\u0027t succeed the same way for all drivers.","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"1e28182aeb8edcd1b2e8dbe7eef4b37e578386ba","unresolved":false,"context_lines":[{"line_number":132,"context_line":""},{"line_number":133,"context_line":"        # check that the managed share server is still not auto-deletable"},{"line_number":134,"context_line":"        self.assertIs(False, managed_share_server[\"is_auto_deletable\"])"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"        # delete share"},{"line_number":137,"context_line":"        self._delete_share_and_wait(managed_share)"},{"line_number":138,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_251f626d","line":135,"range":{"start_line":135,"start_character":0,"end_line":135,"end_character":0},"in_reply_to":"5fc1f717_57a90879","updated":"2019-03-06 23:10:11.000000000","message":"True about the deterministic part... I was thinking along the lines of \n\n  try:\n      self.assertEqual(managed_share_server[\u0027id\u0027], new_share[\u0027share_server_id\u0027]\n  except AssertionError:\n      share_servers \u003d get_all_share_servers_for_share_network(\n             new_share[\u0027share_network_id\u0027])\n      share_server_ids \u003d [s[\u0027id\u0027] for s in share_servers]\n      self.assertIn(new_share[\u0027share_server_id\u0027], share_server_ids)\n      LOG.info(\"Driver created a new share server for this share, and didn\u0027t reuse managed share server %s\" % managed_share_server[\u0027id\u0027])","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"6248845e9f89f6c9598a34c78eda57b5120e86db","unresolved":false,"context_lines":[{"line_number":132,"context_line":""},{"line_number":133,"context_line":"        # check that the managed share server is still not auto-deletable"},{"line_number":134,"context_line":"        self.assertIs(False, managed_share_server[\"is_auto_deletable\"])"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"        # delete share"},{"line_number":137,"context_line":"        self._delete_share_and_wait(managed_share)"},{"line_number":138,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_2b7bb18c","line":135,"range":{"start_line":135,"start_character":0,"end_line":135,"end_character":0},"in_reply_to":"5fc1f717_601eb8bb","updated":"2019-03-07 00:08:12.000000000","message":"True, I agree, consider it a suggestion for downstream tests...","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":132,"context_line":""},{"line_number":133,"context_line":"        # check that the managed share server is still not auto-deletable"},{"line_number":134,"context_line":"        self.assertIs(False, managed_share_server[\"is_auto_deletable\"])"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"        # delete share"},{"line_number":137,"context_line":"        self._delete_share_and_wait(managed_share)"},{"line_number":138,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_57a90879","line":135,"range":{"start_line":135,"start_character":0,"end_line":135,"end_character":0},"in_reply_to":"5fc1f717_e9fcda3f","updated":"2019-03-06 22:43:18.000000000","message":"good point. The reason I did not create such test is because IMO it was implicit, and the possible alternate behavior that you described makes it difficult to write such a test, as we cannot enforce that shares *MUST* be created in this share server. We cannot consistently test if we cannot enforce that, would need a config options for some drivers to disable it.","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"}],"manila_tempest_tests/tests/api/admin/test_share_servers_manage_negative.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    def resource_setup(cls):"},{"line_number":43,"context_line":"        super(ManageShareServersNegativeTest, cls).resource_setup()"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        if (utils.is_microversion_lt(CONF.share.max_api_microversion, \"2.49\")):"},{"line_number":46,"context_line":"            raise cls.skipException("},{"line_number":47,"context_line":"                \"Multitenancy tests are disabled for microversion \u003c 2.49\")"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        # create share type"},{"line_number":50,"context_line":"        cls.st_name \u003d data_utils.rand_name(\"manage-st-name\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_c5ae2c2d","line":47,"range":{"start_line":45,"start_character":0,"end_line":47,"end_character":74},"updated":"2019-02-26 01:19:36.000000000","message":"above skips should suffice","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    def resource_setup(cls):"},{"line_number":43,"context_line":"        super(ManageShareServersNegativeTest, cls).resource_setup()"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        if (utils.is_microversion_lt(CONF.share.max_api_microversion, \"2.49\")):"},{"line_number":46,"context_line":"            raise cls.skipException("},{"line_number":47,"context_line":"                \"Multitenancy tests are disabled for microversion \u003c 2.49\")"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        # create share type"},{"line_number":50,"context_line":"        cls.st_name \u003d data_utils.rand_name(\"manage-st-name\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_9e7dc5e8","line":47,"range":{"start_line":45,"start_character":0,"end_line":47,"end_character":74},"in_reply_to":"9fdfeff1_c5ae2c2d","updated":"2019-02-27 02:12:43.000000000","message":"Removed.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":57,"context_line":"            cleanup_in_class\u003dTrue,"},{"line_number":58,"context_line":"            extra_specs\u003dcls.extra_specs)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    def _unmanage_share_and_wait(self, share):"},{"line_number":61,"context_line":"        self.shares_v2_client.unmanage_share(share[\u0027id\u0027])"},{"line_number":62,"context_line":"        self.shares_v2_client.wait_for_resource_deletion(share_id\u003dshare[\u0027id\u0027])"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def _manage_share(self, share, name, description, share_server_id):"},{"line_number":65,"context_line":"        managed_share \u003d self.shares_v2_client.manage_share("},{"line_number":66,"context_line":"            service_host\u003dshare[\u0027host\u0027],"},{"line_number":67,"context_line":"            export_path\u003dshare[\u0027export_locations\u0027][0],"},{"line_number":68,"context_line":"            protocol\u003dshare[\u0027share_proto\u0027],"},{"line_number":69,"context_line":"            share_type_id\u003dself.share_type[\u0027share_type\u0027][\u0027id\u0027],"},{"line_number":70,"context_line":"            name\u003dname,"},{"line_number":71,"context_line":"            description\u003ddescription,"},{"line_number":72,"context_line":"            share_server_id\u003dshare_server_id"},{"line_number":73,"context_line":"        )"},{"line_number":74,"context_line":"        self.shares_v2_client.wait_for_share_status("},{"line_number":75,"context_line":"            managed_share[\u0027id\u0027], constants.STATUS_AVAILABLE"},{"line_number":76,"context_line":"        )"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        return managed_share"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def _delete_share_and_wait(self, share):"},{"line_number":81,"context_line":"        self.shares_v2_client.delete_share(share[\u0027id\u0027])"},{"line_number":82,"context_line":"        self.shares_v2_client.wait_for_resource_deletion("},{"line_number":83,"context_line":"            share_id\u003dshare[\u0027id\u0027]"},{"line_number":84,"context_line":"        )"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    def _unmanage_share_server_and_wait(self, server):"},{"line_number":87,"context_line":"        self.shares_v2_client.unmanage_share_server(server[\u0027id\u0027])"},{"line_number":88,"context_line":"        self.shares_v2_client.wait_for_resource_deletion("},{"line_number":89,"context_line":"            server_id\u003dserver[\u0027id\u0027]"},{"line_number":90,"context_line":"        )"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    def _manage_share_server(self, share_server, params\u003d{}):"},{"line_number":93,"context_line":"        managed_share_server \u003d self.shares_v2_client.manage_share_server("},{"line_number":94,"context_line":"            params.get(\u0027host\u0027, share_server[\u0027host\u0027]),"},{"line_number":95,"context_line":"            params.get(\u0027share_network_id\u0027, share_server[\u0027share_network_id\u0027]),"},{"line_number":96,"context_line":"            params.get(\u0027id\u0027, share_server[\u0027id\u0027]),"},{"line_number":97,"context_line":"        )"},{"line_number":98,"context_line":"        self.shares_v2_client.wait_for_share_server_status("},{"line_number":99,"context_line":"            managed_share_server[\u0027share_server\u0027][\u0027id\u0027],"},{"line_number":100,"context_line":"            constants.SERVER_STATE_ACTIVE,"},{"line_number":101,"context_line":"        )"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"        return managed_share_server[\u0027share_server\u0027]"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    def _delete_share_server_and_wait(self, share_server):"},{"line_number":106,"context_line":"        self.shares_v2_client.delete_share_server("},{"line_number":107,"context_line":"            share_server[\u0027id\u0027]"},{"line_number":108,"context_line":"        )"},{"line_number":109,"context_line":"        self.shares_v2_client.wait_for_resource_deletion("},{"line_number":110,"context_line":"            server_id\u003dshare_server[\u0027id\u0027])"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"    @ddt.data("},{"line_number":113,"context_line":"        (\u0027host\u0027, \u0027invalid_host\u0027),"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_2563781c","line":110,"range":{"start_line":60,"start_character":0,"end_line":110,"end_character":41},"updated":"2019-02-26 01:19:36.000000000","message":"lots of duplicate code, please move to base class and reuse","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":57,"context_line":"            cleanup_in_class\u003dTrue,"},{"line_number":58,"context_line":"            extra_specs\u003dcls.extra_specs)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    def _unmanage_share_and_wait(self, share):"},{"line_number":61,"context_line":"        self.shares_v2_client.unmanage_share(share[\u0027id\u0027])"},{"line_number":62,"context_line":"        self.shares_v2_client.wait_for_resource_deletion(share_id\u003dshare[\u0027id\u0027])"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def _manage_share(self, share, name, description, share_server_id):"},{"line_number":65,"context_line":"        managed_share \u003d self.shares_v2_client.manage_share("},{"line_number":66,"context_line":"            service_host\u003dshare[\u0027host\u0027],"},{"line_number":67,"context_line":"            export_path\u003dshare[\u0027export_locations\u0027][0],"},{"line_number":68,"context_line":"            protocol\u003dshare[\u0027share_proto\u0027],"},{"line_number":69,"context_line":"            share_type_id\u003dself.share_type[\u0027share_type\u0027][\u0027id\u0027],"},{"line_number":70,"context_line":"            name\u003dname,"},{"line_number":71,"context_line":"            description\u003ddescription,"},{"line_number":72,"context_line":"            share_server_id\u003dshare_server_id"},{"line_number":73,"context_line":"        )"},{"line_number":74,"context_line":"        self.shares_v2_client.wait_for_share_status("},{"line_number":75,"context_line":"            managed_share[\u0027id\u0027], constants.STATUS_AVAILABLE"},{"line_number":76,"context_line":"        )"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        return managed_share"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def _delete_share_and_wait(self, share):"},{"line_number":81,"context_line":"        self.shares_v2_client.delete_share(share[\u0027id\u0027])"},{"line_number":82,"context_line":"        self.shares_v2_client.wait_for_resource_deletion("},{"line_number":83,"context_line":"            share_id\u003dshare[\u0027id\u0027]"},{"line_number":84,"context_line":"        )"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    def _unmanage_share_server_and_wait(self, server):"},{"line_number":87,"context_line":"        self.shares_v2_client.unmanage_share_server(server[\u0027id\u0027])"},{"line_number":88,"context_line":"        self.shares_v2_client.wait_for_resource_deletion("},{"line_number":89,"context_line":"            server_id\u003dserver[\u0027id\u0027]"},{"line_number":90,"context_line":"        )"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    def _manage_share_server(self, share_server, params\u003d{}):"},{"line_number":93,"context_line":"        managed_share_server \u003d self.shares_v2_client.manage_share_server("},{"line_number":94,"context_line":"            params.get(\u0027host\u0027, share_server[\u0027host\u0027]),"},{"line_number":95,"context_line":"            params.get(\u0027share_network_id\u0027, share_server[\u0027share_network_id\u0027]),"},{"line_number":96,"context_line":"            params.get(\u0027id\u0027, share_server[\u0027id\u0027]),"},{"line_number":97,"context_line":"        )"},{"line_number":98,"context_line":"        self.shares_v2_client.wait_for_share_server_status("},{"line_number":99,"context_line":"            managed_share_server[\u0027share_server\u0027][\u0027id\u0027],"},{"line_number":100,"context_line":"            constants.SERVER_STATE_ACTIVE,"},{"line_number":101,"context_line":"        )"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"        return managed_share_server[\u0027share_server\u0027]"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    def _delete_share_server_and_wait(self, share_server):"},{"line_number":106,"context_line":"        self.shares_v2_client.delete_share_server("},{"line_number":107,"context_line":"            share_server[\u0027id\u0027]"},{"line_number":108,"context_line":"        )"},{"line_number":109,"context_line":"        self.shares_v2_client.wait_for_resource_deletion("},{"line_number":110,"context_line":"            server_id\u003dshare_server[\u0027id\u0027])"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"    @ddt.data("},{"line_number":113,"context_line":"        (\u0027host\u0027, \u0027invalid_host\u0027),"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_c117f245","line":110,"range":{"start_line":60,"start_character":0,"end_line":110,"end_character":41},"in_reply_to":"9fdfeff1_2563781c","updated":"2019-02-27 02:12:43.000000000","message":"Moved.","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"54cd8a68c799c777da7d96630fe91aeff044528c","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        # try to manage in the wrong way"},{"line_number":82,"context_line":"        self.assertRaises("},{"line_number":83,"context_line":"            lib_exc.NotFound,"},{"line_number":84,"context_line":"            self._manage_share_server,"},{"line_number":85,"context_line":"            share_server,"},{"line_number":86,"context_line":"            invalid_params"}],"source_content_type":"text/x-python","patch_set":17,"id":"9fdfeff1_eecbac4f","line":83,"updated":"2019-03-01 14:32:26.000000000","message":"Should expect BadRequest instead.","commit_id":"f41b9329b2e0965e7f8d83750ac6c09fa613c450"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    def test_manage_share_server_invalid_params(self, param, invalid_value):"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        # create share"},{"line_number":78,"context_line":"        share \u003d self._create_share_with_new_share_network()"},{"line_number":79,"context_line":"        el \u003d self.shares_v2_client.list_share_export_locations(share[\u0027id\u0027])"},{"line_number":80,"context_line":"        share[\u0027export_locations\u0027] \u003d el"},{"line_number":81,"context_line":"        share_server \u003d self.shares_v2_client.show_share_server("}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_b1563c06","line":78,"range":{"start_line":78,"start_character":21,"end_line":78,"end_character":57},"updated":"2019-03-06 19:32:15.000000000","message":"this test isn\u0027t appropriate when a share_network_id is configured..","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    def test_manage_share_server_invalid_params(self, param, invalid_value):"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        # create share"},{"line_number":78,"context_line":"        share \u003d self._create_share_with_new_share_network()"},{"line_number":79,"context_line":"        el \u003d self.shares_v2_client.list_share_export_locations(share[\u0027id\u0027])"},{"line_number":80,"context_line":"        share[\u0027export_locations\u0027] \u003d el"},{"line_number":81,"context_line":"        share_server \u003d self.shares_v2_client.show_share_server("}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_5aedaded","line":78,"range":{"start_line":78,"start_character":21,"end_line":78,"end_character":57},"in_reply_to":"5fc1f717_b1563c06","updated":"2019-03-06 22:43:18.000000000","message":"Done","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":116,"context_line":"    def test_delete_share_server_invalid_state(self):"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"        # create share"},{"line_number":119,"context_line":"        share \u003d self._create_share_with_new_share_network()"},{"line_number":120,"context_line":"        el \u003d self.shares_v2_client.list_share_export_locations(share[\u0027id\u0027])"},{"line_number":121,"context_line":"        share[\u0027export_locations\u0027] \u003d el"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_51b59830","line":119,"range":{"start_line":119,"start_character":21,"end_line":119,"end_character":57},"updated":"2019-03-06 19:32:15.000000000","message":"this test isn\u0027t appropriate when a share_network_id is configured..","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":116,"context_line":"    def test_delete_share_server_invalid_state(self):"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"        # create share"},{"line_number":119,"context_line":"        share \u003d self._create_share_with_new_share_network()"},{"line_number":120,"context_line":"        el \u003d self.shares_v2_client.list_share_export_locations(share[\u0027id\u0027])"},{"line_number":121,"context_line":"        share[\u0027export_locations\u0027] \u003d el"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_3af0e1c9","line":119,"range":{"start_line":119,"start_character":21,"end_line":119,"end_character":57},"in_reply_to":"5fc1f717_51b59830","updated":"2019-03-06 22:43:18.000000000","message":"Done","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":206,"context_line":"    def test_share_server_reset_state_invalid_state(self):"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"        # create share"},{"line_number":209,"context_line":"        share \u003d self._create_share_with_new_share_network()"},{"line_number":210,"context_line":"        el \u003d self.shares_v2_client.list_share_export_locations(share[\u0027id\u0027])"},{"line_number":211,"context_line":"        share[\u0027export_locations\u0027] \u003d el"},{"line_number":212,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_b17ddc6f","line":209,"range":{"start_line":209,"start_character":21,"end_line":209,"end_character":57},"updated":"2019-03-06 19:32:15.000000000","message":"this test isn\u0027t appropriate when a share_network_id is configured..","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":206,"context_line":"    def test_share_server_reset_state_invalid_state(self):"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"        # create share"},{"line_number":209,"context_line":"        share \u003d self._create_share_with_new_share_network()"},{"line_number":210,"context_line":"        el \u003d self.shares_v2_client.list_share_export_locations(share[\u0027id\u0027])"},{"line_number":211,"context_line":"        share[\u0027export_locations\u0027] \u003d el"},{"line_number":212,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_9ae31506","line":209,"range":{"start_line":209,"start_character":21,"end_line":209,"end_character":57},"in_reply_to":"5fc1f717_b17ddc6f","updated":"2019-03-06 22:43:18.000000000","message":"actually it is now, I refactored it","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":233,"context_line":"    def test_unmanage_share_server_with_share(self):"},{"line_number":234,"context_line":""},{"line_number":235,"context_line":"        # create share"},{"line_number":236,"context_line":"        share \u003d self._create_share_with_new_share_network()"},{"line_number":237,"context_line":"        el \u003d self.shares_v2_client.list_share_export_locations(share[\u0027id\u0027])"},{"line_number":238,"context_line":"        share[\u0027export_locations\u0027] \u003d el"},{"line_number":239,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_d182e84f","line":236,"range":{"start_line":236,"start_character":21,"end_line":236,"end_character":57},"updated":"2019-03-06 19:32:15.000000000","message":"this test isn\u0027t appropriate when a share_network_id is configured..","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":233,"context_line":"    def test_unmanage_share_server_with_share(self):"},{"line_number":234,"context_line":""},{"line_number":235,"context_line":"        # create share"},{"line_number":236,"context_line":"        share \u003d self._create_share_with_new_share_network()"},{"line_number":237,"context_line":"        el \u003d self.shares_v2_client.list_share_export_locations(share[\u0027id\u0027])"},{"line_number":238,"context_line":"        share[\u0027export_locations\u0027] \u003d el"},{"line_number":239,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_ba27f164","line":236,"range":{"start_line":236,"start_character":21,"end_line":236,"end_character":57},"in_reply_to":"5fc1f717_d182e84f","updated":"2019-03-06 22:43:18.000000000","message":"actually it is now, I refactored it","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":258,"context_line":"    @tc.attr(base.TAG_NEGATIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":259,"context_line":"    def test_manage_share_server_invalid_identifier(self):"},{"line_number":260,"context_line":"        # create share"},{"line_number":261,"context_line":"        share \u003d self._create_share_with_new_share_network()"},{"line_number":262,"context_line":"        el \u003d self.shares_v2_client.list_share_export_locations(share[\u0027id\u0027])"},{"line_number":263,"context_line":"        share[\u0027export_locations\u0027] \u003d el"},{"line_number":264,"context_line":"        share_server \u003d self.shares_v2_client.show_share_server("}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_f1e84417","line":261,"range":{"start_line":261,"start_character":21,"end_line":261,"end_character":57},"updated":"2019-03-06 19:32:15.000000000","message":"this test isn\u0027t appropriate when a share_network_id is configured..","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":258,"context_line":"    @tc.attr(base.TAG_NEGATIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":259,"context_line":"    def test_manage_share_server_invalid_identifier(self):"},{"line_number":260,"context_line":"        # create share"},{"line_number":261,"context_line":"        share \u003d self._create_share_with_new_share_network()"},{"line_number":262,"context_line":"        el \u003d self.shares_v2_client.list_share_export_locations(share[\u0027id\u0027])"},{"line_number":263,"context_line":"        share[\u0027export_locations\u0027] \u003d el"},{"line_number":264,"context_line":"        share_server \u003d self.shares_v2_client.show_share_server("}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_fa2d7946","line":261,"range":{"start_line":261,"start_character":21,"end_line":261,"end_character":57},"in_reply_to":"5fc1f717_f1e84417","updated":"2019-03-06 22:43:18.000000000","message":"Done","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":270,"context_line":""},{"line_number":271,"context_line":"        # forge invalid params"},{"line_number":272,"context_line":"        invalid_params \u003d share_server.copy()"},{"line_number":273,"context_line":"        invalid_params[\u0027id\u0027] \u003d \u0027invalid_id\u0027"},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"        self.assertRaises("},{"line_number":276,"context_line":"            share_exceptions.ShareServerBuildErrorException,"}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_b1f2bc05","line":273,"range":{"start_line":273,"start_character":24,"end_line":273,"end_character":26},"updated":"2019-03-06 19:32:15.000000000","message":"identifier","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":270,"context_line":""},{"line_number":271,"context_line":"        # forge invalid params"},{"line_number":272,"context_line":"        invalid_params \u003d share_server.copy()"},{"line_number":273,"context_line":"        invalid_params[\u0027id\u0027] \u003d \u0027invalid_id\u0027"},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"        self.assertRaises("},{"line_number":276,"context_line":"            share_exceptions.ShareServerBuildErrorException,"}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_3a0221b6","line":273,"range":{"start_line":273,"start_character":24,"end_line":273,"end_character":26},"in_reply_to":"5fc1f717_b1f2bc05","updated":"2019-03-06 22:43:18.000000000","message":"Done","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":299,"context_line":"    @tc.attr(base.TAG_NEGATIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":300,"context_line":"    def test_manage_share_server_double_manage(self):"},{"line_number":301,"context_line":"        # create share"},{"line_number":302,"context_line":"        share \u003d self._create_share_with_new_share_network()"},{"line_number":303,"context_line":"        share_server \u003d self.shares_v2_client.show_share_server("},{"line_number":304,"context_line":"            share[\u0027share_server_id\u0027])"},{"line_number":305,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_113cf091","line":302,"range":{"start_line":302,"start_character":21,"end_line":302,"end_character":57},"updated":"2019-03-06 19:32:15.000000000","message":"this test isn\u0027t appropriate when a share_network_id is configured..","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":299,"context_line":"    @tc.attr(base.TAG_NEGATIVE, base.TAG_API_WITH_BACKEND)"},{"line_number":300,"context_line":"    def test_manage_share_server_double_manage(self):"},{"line_number":301,"context_line":"        # create share"},{"line_number":302,"context_line":"        share \u003d self._create_share_with_new_share_network()"},{"line_number":303,"context_line":"        share_server \u003d self.shares_v2_client.show_share_server("},{"line_number":304,"context_line":"            share[\u0027share_server_id\u0027])"},{"line_number":305,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_9af555ce","line":302,"range":{"start_line":302,"start_character":21,"end_line":302,"end_character":57},"in_reply_to":"5fc1f717_113cf091","updated":"2019-03-06 22:43:18.000000000","message":"actually it is now, I refactored it","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":305,"context_line":""},{"line_number":306,"context_line":"        # try with more data around the id"},{"line_number":307,"context_line":"        invalid_params \u003d share_server.copy()"},{"line_number":308,"context_line":"        invalid_params[\u0027id\u0027] \u003d \u0027foo_\u0027 + share_server[\u0027id\u0027] + \u0027_bar\u0027"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"        self.assertRaises("},{"line_number":311,"context_line":"            lib_exc.BadRequest,"}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_31548cca","line":308,"range":{"start_line":308,"start_character":24,"end_line":308,"end_character":26},"updated":"2019-03-06 19:32:15.000000000","message":"identifier","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":305,"context_line":""},{"line_number":306,"context_line":"        # try with more data around the id"},{"line_number":307,"context_line":"        invalid_params \u003d share_server.copy()"},{"line_number":308,"context_line":"        invalid_params[\u0027id\u0027] \u003d \u0027foo_\u0027 + share_server[\u0027id\u0027] + \u0027_bar\u0027"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"        self.assertRaises("},{"line_number":311,"context_line":"            lib_exc.BadRequest,"}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_5a6a8d80","line":308,"range":{"start_line":308,"start_character":24,"end_line":308,"end_character":26},"in_reply_to":"5fc1f717_31548cca","updated":"2019-03-06 22:43:18.000000000","message":"Done","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":313,"context_line":"            invalid_params)"},{"line_number":314,"context_line":""},{"line_number":315,"context_line":"        # try with part of the id"},{"line_number":316,"context_line":"        invalid_params[\u0027id\u0027] \u003d share_server[\u0027id\u0027].split(\"-\")[2]"},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"        self.assertRaises("},{"line_number":319,"context_line":"            lib_exc.BadRequest,"}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_515118d8","line":316,"range":{"start_line":316,"start_character":24,"end_line":316,"end_character":26},"updated":"2019-03-06 19:32:15.000000000","message":"identifier","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":313,"context_line":"            invalid_params)"},{"line_number":314,"context_line":""},{"line_number":315,"context_line":"        # try with part of the id"},{"line_number":316,"context_line":"        invalid_params[\u0027id\u0027] \u003d share_server[\u0027id\u0027].split(\"-\")[2]"},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"        self.assertRaises("},{"line_number":319,"context_line":"            lib_exc.BadRequest,"}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_fa0499c8","line":316,"range":{"start_line":316,"start_character":24,"end_line":316,"end_character":26},"in_reply_to":"5fc1f717_515118d8","updated":"2019-03-06 22:43:18.000000000","message":"Done","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":321,"context_line":"            invalid_params)"},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"        # try with same id but underscores"},{"line_number":324,"context_line":"        invalid_params[\u0027id\u0027] \u003d share_server[\u0027id\u0027].replace(\"-\", \"_\")"},{"line_number":325,"context_line":""},{"line_number":326,"context_line":"        self.assertRaises("},{"line_number":327,"context_line":"            lib_exc.BadRequest,"}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_1165d0b5","line":324,"range":{"start_line":324,"start_character":24,"end_line":324,"end_character":26},"updated":"2019-03-06 19:32:15.000000000","message":"identifier","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":321,"context_line":"            invalid_params)"},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"        # try with same id but underscores"},{"line_number":324,"context_line":"        invalid_params[\u0027id\u0027] \u003d share_server[\u0027id\u0027].replace(\"-\", \"_\")"},{"line_number":325,"context_line":""},{"line_number":326,"context_line":"        self.assertRaises("},{"line_number":327,"context_line":"            lib_exc.BadRequest,"}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_ba0e11e3","line":324,"range":{"start_line":324,"start_character":24,"end_line":324,"end_character":26},"in_reply_to":"5fc1f717_1165d0b5","updated":"2019-03-06 22:43:18.000000000","message":"Done","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"}],"manila_tempest_tests/tests/api/admin/test_snapshot_manage.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        if (utils.is_microversion_lt(CONF.share.max_api_microversion, \"2.49\")"},{"line_number":49,"context_line":"                and CONF.share.multitenancy_enabled):"},{"line_number":50,"context_line":"            raise cls.skipException("},{"line_number":51,"context_line":"                \"Multitenancy tests are disabled for microversion \u003c 2.49\")"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        # Create share type"},{"line_number":54,"context_line":"        cls.st_name \u003d data_utils.rand_name(\"tempest-manage-st-name\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_254cd89c","line":51,"range":{"start_line":51,"start_character":17,"end_line":51,"end_character":29},"updated":"2019-02-26 01:19:36.000000000","message":"Manage snapshot tests for multi tenancy are disabled","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        if (utils.is_microversion_lt(CONF.share.max_api_microversion, \"2.49\")"},{"line_number":49,"context_line":"                and CONF.share.multitenancy_enabled):"},{"line_number":50,"context_line":"            raise cls.skipException("},{"line_number":51,"context_line":"                \"Multitenancy tests are disabled for microversion \u003c 2.49\")"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        # Create share type"},{"line_number":54,"context_line":"        cls.st_name \u003d data_utils.rand_name(\"tempest-manage-st-name\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_2eb1fe01","line":51,"range":{"start_line":51,"start_character":17,"end_line":51,"end_character":29},"in_reply_to":"9fdfeff1_254cd89c","updated":"2019-02-27 02:12:43.000000000","message":"Done","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0e6b201e3a453359fc16d6b6bcff39dddaac4988","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        version as well as versions 2.12 (when the API was introduced) and"},{"line_number":142,"context_line":"        2.16."},{"line_number":143,"context_line":"        \"\"\""},{"line_number":144,"context_line":"        if (utils.is_microversion_lt(version, \"2.49\")"},{"line_number":145,"context_line":"                and CONF.share.multitenancy_enabled):"},{"line_number":146,"context_line":"            raise self.skipException("},{"line_number":147,"context_line":"                \"Multitenancy tests are disabled for microversion \u003c 2.49\")"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        # Skip in case specified version is not supported"},{"line_number":150,"context_line":"        self.skip_if_microversion_not_supported(version)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_a52448c7","line":147,"range":{"start_line":144,"start_character":0,"end_line":147,"end_character":74},"updated":"2019-02-26 01:19:36.000000000","message":"add a common method somewhere and reuse this..","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"ade91edbba0c317182f3e58a808247f4388df786","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        version as well as versions 2.12 (when the API was introduced) and"},{"line_number":142,"context_line":"        2.16."},{"line_number":143,"context_line":"        \"\"\""},{"line_number":144,"context_line":"        if (utils.is_microversion_lt(version, \"2.49\")"},{"line_number":145,"context_line":"                and CONF.share.multitenancy_enabled):"},{"line_number":146,"context_line":"            raise self.skipException("},{"line_number":147,"context_line":"                \"Multitenancy tests are disabled for microversion \u003c 2.49\")"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        # Skip in case specified version is not supported"},{"line_number":150,"context_line":"        self.skip_if_microversion_not_supported(version)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_2efb3e7b","line":147,"range":{"start_line":144,"start_character":0,"end_line":147,"end_character":74},"in_reply_to":"9fdfeff1_a52448c7","updated":"2019-02-27 02:12:43.000000000","message":"Any suggestion on how to achieve this? I came up with\n\ndef run_multitenancy_tests(version, multitenancy_enabled):\n    return utils.is_microversion_lt(version, \"2.49\")and multitenancy_enabled\n\nif (utils.run_multitenancy_enabled(version, CONF.share.multitenancy_enabled):\n    raise self.skipException(...)\n\nwhich doesn\u0027t have so many advantages over current code...","commit_id":"79f77b1698170de6a6613707b85b326bce4daa75"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b48ff814fca4faf3941e8ea15f22aa75193d5ce7","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        version as well as versions 2.12 (when the API was introduced) and"},{"line_number":145,"context_line":"        2.16."},{"line_number":146,"context_line":"        \"\"\""},{"line_number":147,"context_line":"        if (utils.is_microversion_lt(version, \"2.49\")"},{"line_number":148,"context_line":"                and CONF.share.multitenancy_enabled):"},{"line_number":149,"context_line":"            raise self.skipException("},{"line_number":150,"context_line":"                \"Share manage tests with multitenancy are disabled for \""},{"line_number":151,"context_line":"                \"microversion \u003c 2.49\")"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        # Skip in case specified version is not supported"},{"line_number":154,"context_line":"        self.skip_if_microversion_not_supported(version)"}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_f955cb1e","line":151,"range":{"start_line":147,"start_character":8,"end_line":151,"end_character":38},"updated":"2019-02-28 17:31:46.000000000","message":"If you move this to the utils file, you can send a version and simply call it here like this:\n\n  utils.skip_if_manage_not_supported_for_version(version)","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"f397b1261fc0b8f797e8321ce85c531682a33c41","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        version as well as versions 2.12 (when the API was introduced) and"},{"line_number":145,"context_line":"        2.16."},{"line_number":146,"context_line":"        \"\"\""},{"line_number":147,"context_line":"        if (utils.is_microversion_lt(version, \"2.49\")"},{"line_number":148,"context_line":"                and CONF.share.multitenancy_enabled):"},{"line_number":149,"context_line":"            raise self.skipException("},{"line_number":150,"context_line":"                \"Share manage tests with multitenancy are disabled for \""},{"line_number":151,"context_line":"                \"microversion \u003c 2.49\")"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        # Skip in case specified version is not supported"},{"line_number":154,"context_line":"        self.skip_if_microversion_not_supported(version)"}],"source_content_type":"text/x-python","patch_set":11,"id":"9fdfeff1_edd50544","line":151,"range":{"start_line":147,"start_character":8,"end_line":151,"end_character":38},"in_reply_to":"9fdfeff1_f955cb1e","updated":"2019-02-28 20:24:40.000000000","message":"Nice refactor!","commit_id":"8022b4bdb2d20a2c94a0c94ea444e1f2fd742f47"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"f4ae5d252d54fa502d0fad2ad41a3746635d4d52","unresolved":false,"context_lines":[{"line_number":44,"context_line":"            message \u003d \"%s tests are disabled\" % cls.protocol"},{"line_number":45,"context_line":"            raise cls.skipException(message)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        utils.skip_if_manage_not_supported_for_version(CONF.share.max_api_microversion)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        super(ManageNFSSnapshotTest, cls).resource_setup()"},{"line_number":50,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"9fdfeff1_28421b3c","line":47,"range":{"start_line":47,"start_character":0,"end_line":47,"end_character":87},"updated":"2019-02-28 20:40:34.000000000","message":"line length","commit_id":"f0663eab3d65bd5d5c1d71422e022b8bc3887205"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"6f0b910841fdf90fbb848fb133d9ac15412e478e","unresolved":false,"context_lines":[{"line_number":44,"context_line":"            message \u003d \"%s tests are disabled\" % cls.protocol"},{"line_number":45,"context_line":"            raise cls.skipException(message)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        utils.skip_if_manage_not_supported_for_version(CONF.share.max_api_microversion)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        super(ManageNFSSnapshotTest, cls).resource_setup()"},{"line_number":50,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"9fdfeff1_88aea77e","line":47,"range":{"start_line":47,"start_character":0,"end_line":47,"end_character":87},"in_reply_to":"9fdfeff1_28421b3c","updated":"2019-02-28 21:13:17.000000000","message":"Done","commit_id":"f0663eab3d65bd5d5c1d71422e022b8bc3887205"}],"manila_tempest_tests/tests/api/admin/test_snapshot_manage_negative.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"1e28182aeb8edcd1b2e8dbe7eef4b37e578386ba","unresolved":false,"context_lines":[{"line_number":139,"context_line":"        share \u003d self._create_share_for_manage()"},{"line_number":140,"context_line":"        snap \u003d self.create_snapshot_wait_for_active(share[\"id\"])"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        self.assertRaises("},{"line_number":143,"context_line":"            lib_exc.BadRequest,"},{"line_number":144,"context_line":"            self.shares_v2_client.unmanage_snapshot,"},{"line_number":145,"context_line":"            snap[\u0027id\u0027], version\u003d\"2.48\")"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        self._delete_snapshot_and_wait(snap)"},{"line_number":148,"context_line":"        self._delete_share_and_wait(share)"}],"source_content_type":"text/x-python","patch_set":25,"id":"5fc1f717_004d7471","line":145,"range":{"start_line":142,"start_character":7,"end_line":145,"end_character":39},"updated":"2019-03-06 23:10:11.000000000","message":"This should just error for DHSS\u003dTrue...","commit_id":"2bacc0260eb88cb3eb70b4bd123621555fb400d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"7a737ecbd3ea4c2d769404953b2401abccab55f1","unresolved":false,"context_lines":[{"line_number":139,"context_line":"        share \u003d self._create_share_for_manage()"},{"line_number":140,"context_line":"        snap \u003d self.create_snapshot_wait_for_active(share[\"id\"])"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        self.assertRaises("},{"line_number":143,"context_line":"            lib_exc.BadRequest,"},{"line_number":144,"context_line":"            self.shares_v2_client.unmanage_snapshot,"},{"line_number":145,"context_line":"            snap[\u0027id\u0027], version\u003d\"2.48\")"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        self._delete_snapshot_and_wait(snap)"},{"line_number":148,"context_line":"        self._delete_share_and_wait(share)"}],"source_content_type":"text/x-python","patch_set":25,"id":"5fc1f717_40f37c9f","line":145,"range":{"start_line":142,"start_character":7,"end_line":145,"end_character":39},"in_reply_to":"5fc1f717_004d7471","updated":"2019-03-06 23:43:07.000000000","message":"forgot the skipUnless. Will add","commit_id":"2bacc0260eb88cb3eb70b4bd123621555fb400d3"}],"manila_tempest_tests/tests/api/base.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"71a87fc081870d1e8e27c65986564094977502c1","unresolved":false,"context_lines":[{"line_number":1180,"context_line":"        managed_share_server \u003d self.shares_v2_client.manage_share_server("},{"line_number":1181,"context_line":"            params.get(\u0027host\u0027, share_server[\u0027host\u0027]),"},{"line_number":1182,"context_line":"            params.get(\u0027share_network_id\u0027, share_server[\u0027share_network_id\u0027]),"},{"line_number":1183,"context_line":"            params.get(\u0027id\u0027, share_server[\u0027id\u0027]),"},{"line_number":1184,"context_line":"        )"},{"line_number":1185,"context_line":"        self.shares_v2_client.wait_for_share_server_status("},{"line_number":1186,"context_line":"            managed_share_server[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_a9301209","line":1183,"range":{"start_line":1183,"start_character":12,"end_line":1183,"end_character":48},"updated":"2019-03-06 19:32:15.000000000","message":"this should be the identifier, not ID.","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"07b63d0c87a3d2c14058551acf8abe447b3e330c","unresolved":false,"context_lines":[{"line_number":1180,"context_line":"        managed_share_server \u003d self.shares_v2_client.manage_share_server("},{"line_number":1181,"context_line":"            params.get(\u0027host\u0027, share_server[\u0027host\u0027]),"},{"line_number":1182,"context_line":"            params.get(\u0027share_network_id\u0027, share_server[\u0027share_network_id\u0027]),"},{"line_number":1183,"context_line":"            params.get(\u0027id\u0027, share_server[\u0027id\u0027]),"},{"line_number":1184,"context_line":"        )"},{"line_number":1185,"context_line":"        self.shares_v2_client.wait_for_share_server_status("},{"line_number":1186,"context_line":"            managed_share_server[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":24,"id":"5fc1f717_7acf497f","line":1183,"range":{"start_line":1183,"start_character":12,"end_line":1183,"end_character":48},"in_reply_to":"5fc1f717_a9301209","updated":"2019-03-06 22:43:18.000000000","message":"Done","commit_id":"8764ed5e32059e50bfcb6959af376745df4510e2"}],"manila_tempest_tests/utils.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"f4ae5d252d54fa502d0fad2ad41a3746635d4d52","unresolved":false,"context_lines":[{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    return extra_specs"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"def skip_if_manage_not_supported_for_version(version):"},{"line_number":173,"context_line":"    if (utils.is_microversion_lt(version, \"2.49\")"},{"line_number":174,"context_line":"            and CONF.share.multitenancy_enabled):"},{"line_number":175,"context_line":"        raise testtools.skipException("}],"source_content_type":"text/x-python","patch_set":12,"id":"9fdfeff1_686583e0","line":172,"range":{"start_line":172,"start_character":45,"end_line":172,"end_character":52},"updated":"2019-02-28 20:40:34.000000000","message":"set the default value to CONF.share.max_api_microversion, so you don\u0027t need to pass it when it\u0027s obvious we\u0027re running with the maximum configured version.","commit_id":"f0663eab3d65bd5d5c1d71422e022b8bc3887205"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"6f0b910841fdf90fbb848fb133d9ac15412e478e","unresolved":false,"context_lines":[{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    return extra_specs"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"def skip_if_manage_not_supported_for_version(version):"},{"line_number":173,"context_line":"    if (utils.is_microversion_lt(version, \"2.49\")"},{"line_number":174,"context_line":"            and CONF.share.multitenancy_enabled):"},{"line_number":175,"context_line":"        raise testtools.skipException("}],"source_content_type":"text/x-python","patch_set":12,"id":"9fdfeff1_68cb4371","line":172,"range":{"start_line":172,"start_character":45,"end_line":172,"end_character":52},"in_reply_to":"9fdfeff1_686583e0","updated":"2019-02-28 21:13:17.000000000","message":"Nice. Done.","commit_id":"f0663eab3d65bd5d5c1d71422e022b8bc3887205"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"c99fcb9ca965401e06d76821f9b0cefac58a3d2d","unresolved":false,"context_lines":[{"line_number":172,"context_line":"def skip_if_manage_not_supported_for_version(version):"},{"line_number":173,"context_line":"    if (utils.is_microversion_lt(version, \"2.49\")"},{"line_number":174,"context_line":"            and CONF.share.multitenancy_enabled):"},{"line_number":175,"context_line":"        raise testtools.skipException("},{"line_number":176,"context_line":"            \"Share manage tests with multitenancy are disabled for \""},{"line_number":177,"context_line":"            \"microversion \u003c 2.49\")"}],"source_content_type":"text/x-python","patch_set":12,"id":"9fdfeff1_28e21102","line":175,"updated":"2019-03-01 09:07:02.000000000","message":"b\"AttributeError: module \u0027testtools\u0027 has no attribute \u0027skipException\u0027\"","commit_id":"f0663eab3d65bd5d5c1d71422e022b8bc3887205"},{"author":{"_account_id":18058,"name":"Lucio Seki","email":"lseki@redhat.com","username":"lseki"},"change_message_id":"db16e2d5c73b1312feea8a023712119d5b2da2f5","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        version\u003dCONF.share.max_api_microversion):"},{"line_number":175,"context_line":"    if (is_microversion_lt(version, \"2.49\")"},{"line_number":176,"context_line":"            and CONF.share.multitenancy_enabled):"},{"line_number":177,"context_line":"        raise testtools.skipException("},{"line_number":178,"context_line":"            \"Share manage tests with multitenancy are disabled for \""},{"line_number":179,"context_line":"            \"microversion \u003c 2.49\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"9fdfeff1_48b2f507","line":177,"updated":"2019-03-01 09:07:43.000000000","message":"b\"AttributeError: module \u0027testtools\u0027 has no attribute \u0027skipException\u0027\"","commit_id":"aa4c4bd1371e8178c5207d1120c03422b4e46407"}]}
