)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"a1abe4cba6c2e67ba41a61b2d7178d3dc31e5a67","unresolved":false,"context_lines":[{"line_number":14,"context_line":"not want this feature at this moment, so we are just fixing the"},{"line_number":15,"context_line":"allow_access and deny_access error messages."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Also, addressed a small case of concurrency that was happening"},{"line_number":18,"context_line":"once in a while in CI."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"APIImpact"},{"line_number":21,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"9a89bdaa_510bee23","line":18,"range":{"start_line":17,"start_character":0,"end_line":18,"end_character":22},"updated":"2016-09-13 10:53:57.000000000","message":"A small case of concurrency?","commit_id":"5d21980c077f5adfed49bf0e45d0786980d414f0"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"592165542f11f4e811cb277c98ca299d6781a45a","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix allow/deny error message and race in migration"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Share migration code merged in newton intending to allow admins"},{"line_number":10,"context_line":"to mount the share between phase1 and phase2, but API code for"},{"line_number":11,"context_line":"allow_access and deny_access was set incorrectly, blocking it."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"9a89bdaa_90d8fd54","line":9,"updated":"2016-09-13 15:13:12.000000000","message":"[1]","commit_id":"9ecbe6dfa52b2b3fc039fe204a9df4bbf5ee1cf5"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"c0d1b190e304b94dc4adc267564a09611babb1bf","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix allow/deny error message and race in migration"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Share migration code merged in newton intending to allow admins"},{"line_number":10,"context_line":"to mount the share between phase1 and phase2, but API code for"},{"line_number":11,"context_line":"allow_access and deny_access was set incorrectly, blocking it."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"9a89bdaa_309e5163","line":9,"in_reply_to":"9a89bdaa_90d8fd54","updated":"2016-09-13 15:14:55.000000000","message":"So, when you refer to something it is always better to provide links to it.","commit_id":"9ecbe6dfa52b2b3fc039fe204a9df4bbf5ee1cf5"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"592165542f11f4e811cb277c98ca299d6781a45a","unresolved":false,"context_lines":[{"line_number":24,"context_line":"correctly."},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"APIImpact"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"Closes-bug: #1623051"},{"line_number":29,"context_line":"Closes-bug: #1623052"},{"line_number":30,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"9a89bdaa_10e5cd07","line":27,"updated":"2016-09-13 15:13:12.000000000","message":"[1] If4bfaf7e9d963b83c13a6fea241c2eda14f7f409","commit_id":"9ecbe6dfa52b2b3fc039fe204a9df4bbf5ee1cf5"}],"manila/share/api.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"5f5b0def1a185a9bd203036c8a16f33fef7453bd","unresolved":false,"context_lines":[{"line_number":1348,"context_line":"        policy.check_policy(ctx, \u0027share\u0027, \u0027allow_access\u0027)"},{"line_number":1349,"context_line":"        share \u003d self.db.share_get(ctx, share[\u0027id\u0027])"},{"line_number":1350,"context_line":"        if share[\u0027status\u0027] !\u003d constants.STATUS_AVAILABLE:"},{"line_number":1351,"context_line":"            msg \u003d _(\"Share status must be %s\") % constants.STATUS_AVAILABLE"},{"line_number":1352,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":1353,"context_line":"        values \u003d {"},{"line_number":1354,"context_line":"            \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":9,"id":"7a8ec9b2_8c5f8840","line":1351,"updated":"2016-09-14 19:24:51.000000000","message":"All changes in this module are not covered with unit tests.","commit_id":"10487a14a3673d4a28a4ea85a62619e69d5c669b"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"e76b5f83077620a10dc00b44d4c41fffbcd3edf3","unresolved":false,"context_lines":[{"line_number":1348,"context_line":"        policy.check_policy(ctx, \u0027share\u0027, \u0027allow_access\u0027)"},{"line_number":1349,"context_line":"        share \u003d self.db.share_get(ctx, share[\u0027id\u0027])"},{"line_number":1350,"context_line":"        if share[\u0027status\u0027] !\u003d constants.STATUS_AVAILABLE:"},{"line_number":1351,"context_line":"            msg \u003d _(\"Share status must be %s\") % constants.STATUS_AVAILABLE"},{"line_number":1352,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":1353,"context_line":"        values \u003d {"},{"line_number":1354,"context_line":"            \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":9,"id":"7a8ec9b2_84683c89","line":1351,"in_reply_to":"7a8ec9b2_04f7ccf5","updated":"2016-09-14 20:14:04.000000000","message":"But ok, since we have time limits, lets skip it now.","commit_id":"10487a14a3673d4a28a4ea85a62619e69d5c669b"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"3ee22c1babfcf365b7460b87679ccdbb02da3070","unresolved":false,"context_lines":[{"line_number":1348,"context_line":"        policy.check_policy(ctx, \u0027share\u0027, \u0027allow_access\u0027)"},{"line_number":1349,"context_line":"        share \u003d self.db.share_get(ctx, share[\u0027id\u0027])"},{"line_number":1350,"context_line":"        if share[\u0027status\u0027] !\u003d constants.STATUS_AVAILABLE:"},{"line_number":1351,"context_line":"            msg \u003d _(\"Share status must be %s\") % constants.STATUS_AVAILABLE"},{"line_number":1352,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":1353,"context_line":"        values \u003d {"},{"line_number":1354,"context_line":"            \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":9,"id":"7a8ec9b2_a4d37837","line":1351,"in_reply_to":"7a8ec9b2_04f7ccf5","updated":"2016-09-14 20:17:00.000000000","message":"indeed, it doesn\u0027t validate that specific changed behavior. That would be a ddt of all statuses possible. I believe that for this specific case, where the only possible value is \"available\", logic is very clear and does not require such extensive test.","commit_id":"10487a14a3673d4a28a4ea85a62619e69d5c669b"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"8e4ad7e52abe7655c06e5a9705eaf2c8b18be435","unresolved":false,"context_lines":[{"line_number":1348,"context_line":"        policy.check_policy(ctx, \u0027share\u0027, \u0027allow_access\u0027)"},{"line_number":1349,"context_line":"        share \u003d self.db.share_get(ctx, share[\u0027id\u0027])"},{"line_number":1350,"context_line":"        if share[\u0027status\u0027] !\u003d constants.STATUS_AVAILABLE:"},{"line_number":1351,"context_line":"            msg \u003d _(\"Share status must be %s\") % constants.STATUS_AVAILABLE"},{"line_number":1352,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":1353,"context_line":"        values \u003d {"},{"line_number":1354,"context_line":"            \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":9,"id":"7a8ec9b2_04f7ccf5","line":1351,"in_reply_to":"7a8ec9b2_2414c842","updated":"2016-09-14 20:11:58.000000000","message":"In other words, right now, unit tests do not verify that if share has \"migrating\" status or some other from removed and \"allow access\" operation is executed then we get \"proper exception\".","commit_id":"10487a14a3673d4a28a4ea85a62619e69d5c669b"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"f3d77c780b628a9865fc807e8cc2d85c6eec119c","unresolved":false,"context_lines":[{"line_number":1348,"context_line":"        policy.check_policy(ctx, \u0027share\u0027, \u0027allow_access\u0027)"},{"line_number":1349,"context_line":"        share \u003d self.db.share_get(ctx, share[\u0027id\u0027])"},{"line_number":1350,"context_line":"        if share[\u0027status\u0027] !\u003d constants.STATUS_AVAILABLE:"},{"line_number":1351,"context_line":"            msg \u003d _(\"Share status must be %s\") % constants.STATUS_AVAILABLE"},{"line_number":1352,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":1353,"context_line":"        values \u003d {"},{"line_number":1354,"context_line":"            \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":9,"id":"7a8ec9b2_620de336","line":1351,"in_reply_to":"7a8ec9b2_27cbed1f","updated":"2016-09-14 19:44:13.000000000","message":"Rodrigo, executed code does not mean coverage of whole \"logic\" at all. So, I am pretty sure that there is no cases for removed statuses in unit tests.","commit_id":"10487a14a3673d4a28a4ea85a62619e69d5c669b"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"b93862b4ac8c04810d598536999801cceb44996a","unresolved":false,"context_lines":[{"line_number":1348,"context_line":"        policy.check_policy(ctx, \u0027share\u0027, \u0027allow_access\u0027)"},{"line_number":1349,"context_line":"        share \u003d self.db.share_get(ctx, share[\u0027id\u0027])"},{"line_number":1350,"context_line":"        if share[\u0027status\u0027] !\u003d constants.STATUS_AVAILABLE:"},{"line_number":1351,"context_line":"            msg \u003d _(\"Share status must be %s\") % constants.STATUS_AVAILABLE"},{"line_number":1352,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":1353,"context_line":"        values \u003d {"},{"line_number":1354,"context_line":"            \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":9,"id":"7a8ec9b2_425b8787","line":1351,"in_reply_to":"7a8ec9b2_620de336","updated":"2016-09-14 20:15:09.000000000","message":"@valeriy: don\u0027t the test cases I mentioned (which assert that the InvalidShare exception is raised when share status isn\u0027t available) cover the removed statuses?","commit_id":"10487a14a3673d4a28a4ea85a62619e69d5c669b"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d942ad9617b85d6192fbd0f5a31ea53afca975b7","unresolved":false,"context_lines":[{"line_number":1348,"context_line":"        policy.check_policy(ctx, \u0027share\u0027, \u0027allow_access\u0027)"},{"line_number":1349,"context_line":"        share \u003d self.db.share_get(ctx, share[\u0027id\u0027])"},{"line_number":1350,"context_line":"        if share[\u0027status\u0027] !\u003d constants.STATUS_AVAILABLE:"},{"line_number":1351,"context_line":"            msg \u003d _(\"Share status must be %s\") % constants.STATUS_AVAILABLE"},{"line_number":1352,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":1353,"context_line":"        values \u003d {"},{"line_number":1354,"context_line":"            \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":9,"id":"7a8ec9b2_2414c842","line":1351,"in_reply_to":"7a8ec9b2_620de336","updated":"2016-09-14 20:07:35.000000000","message":"I am confused, what would such a test look accomplish and look like?","commit_id":"10487a14a3673d4a28a4ea85a62619e69d5c669b"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"65b38d8523931863cd20ca7c380e820647e3dd42","unresolved":false,"context_lines":[{"line_number":1348,"context_line":"        policy.check_policy(ctx, \u0027share\u0027, \u0027allow_access\u0027)"},{"line_number":1349,"context_line":"        share \u003d self.db.share_get(ctx, share[\u0027id\u0027])"},{"line_number":1350,"context_line":"        if share[\u0027status\u0027] !\u003d constants.STATUS_AVAILABLE:"},{"line_number":1351,"context_line":"            msg \u003d _(\"Share status must be %s\") % constants.STATUS_AVAILABLE"},{"line_number":1352,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":1353,"context_line":"        values \u003d {"},{"line_number":1354,"context_line":"            \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":9,"id":"7a8ec9b2_2203db0e","line":1351,"in_reply_to":"7a8ec9b2_8c5f8840","updated":"2016-09-14 19:43:47.000000000","message":"I see a test_allow_access_status_not_available and test_deny_access_status_not_available, which seem to cover the new exception paths correctly.\n\nSo it looks to me like the code simplification gets us adequate coverage now and we didn\u0027t have it before the change as there were more branches in the exception path.\n\nDo I have this right or am I missing something?","commit_id":"10487a14a3673d4a28a4ea85a62619e69d5c669b"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"e041ef12279c3a27b23af9e45be8fed83dbf437e","unresolved":false,"context_lines":[{"line_number":1348,"context_line":"        policy.check_policy(ctx, \u0027share\u0027, \u0027allow_access\u0027)"},{"line_number":1349,"context_line":"        share \u003d self.db.share_get(ctx, share[\u0027id\u0027])"},{"line_number":1350,"context_line":"        if share[\u0027status\u0027] !\u003d constants.STATUS_AVAILABLE:"},{"line_number":1351,"context_line":"            msg \u003d _(\"Share status must be %s\") % constants.STATUS_AVAILABLE"},{"line_number":1352,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":1353,"context_line":"        values \u003d {"},{"line_number":1354,"context_line":"            \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":9,"id":"7a8ec9b2_27cbed1f","line":1351,"in_reply_to":"7a8ec9b2_8c5f8840","updated":"2016-09-14 19:38:05.000000000","message":"Valeriy, I reverted the code to a state that already had coverage. I just double checked running \"run_tests.sh -c\", it shows as covered.","commit_id":"10487a14a3673d4a28a4ea85a62619e69d5c669b"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"e6c24b999d8487c84dbd6b33776294804184beb6","unresolved":false,"context_lines":[{"line_number":1348,"context_line":"        policy.check_policy(ctx, \u0027share\u0027, \u0027allow_access\u0027)"},{"line_number":1349,"context_line":"        share \u003d self.db.share_get(ctx, share[\u0027id\u0027])"},{"line_number":1350,"context_line":"        if share[\u0027status\u0027] !\u003d constants.STATUS_AVAILABLE:"},{"line_number":1351,"context_line":"            msg \u003d _(\"Share status must be %s\") % constants.STATUS_AVAILABLE"},{"line_number":1352,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":1353,"context_line":"        values \u003d {"},{"line_number":1354,"context_line":"            \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":9,"id":"7a8ec9b2_6477b03a","line":1351,"in_reply_to":"7a8ec9b2_a4d37837","updated":"2016-09-14 20:20:16.000000000","message":"@Tom, Valeriy is saying that current test \"test_allow_access_status_not_available\" which uses only \u0027error\u0027 value variation does not cover this change in behavior, as can be stated by changing the logic without any change in the unit test result. I agree with Valeriy that having this practice is good, but as I stated in my response above, for this case I believe it is not that necessary.","commit_id":"10487a14a3673d4a28a4ea85a62619e69d5c669b"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"76667726deb9a1f2f7ff3a26dc38858e753c9218","unresolved":false,"context_lines":[{"line_number":1348,"context_line":"        policy.check_policy(ctx, \u0027share\u0027, \u0027allow_access\u0027)"},{"line_number":1349,"context_line":"        share \u003d self.db.share_get(ctx, share[\u0027id\u0027])"},{"line_number":1350,"context_line":"        if share[\u0027status\u0027] !\u003d constants.STATUS_AVAILABLE:"},{"line_number":1351,"context_line":"            msg \u003d _(\"Share status must be %s\") % constants.STATUS_AVAILABLE"},{"line_number":1352,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":1353,"context_line":"        values \u003d {"},{"line_number":1354,"context_line":"            \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":9,"id":"7a8ec9b2_04026c6f","line":1351,"in_reply_to":"7a8ec9b2_a4d37837","updated":"2016-09-14 20:21:47.000000000","message":"Yeah, I guess Valeriy is asking for a ddt of all the non-available states on those exception tests.  I understand better now at least.","commit_id":"10487a14a3673d4a28a4ea85a62619e69d5c669b"}],"manila/share/manager.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"b1b6fe9ed669e4aed7ee60f3c474ff8d4aa3b323","unresolved":false,"context_lines":[{"line_number":820,"context_line":"                    finished, export_list \u003d self.driver.migration_continue("},{"line_number":821,"context_line":"                        context, src_share_instance, dest_share_instance,"},{"line_number":822,"context_line":"                        src_share_server, dest_share_server)"},{"line_number":823,"context_line":"                    print(str(finished))"},{"line_number":824,"context_line":"                    if finished:"},{"line_number":825,"context_line":"                        self.db.share_update("},{"line_number":826,"context_line":"                            context, instance[\u0027share_id\u0027],"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a89bdaa_847011de","line":823,"range":{"start_line":823,"start_character":20,"end_line":823,"end_character":40},"updated":"2016-09-12 13:14:01.000000000","message":"Nice debugging ))","commit_id":"9ee93bbdf99c5e81ec0a9137edc5b05dd09f5735"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"1806f55e416425b23a3f2ea11eb726d236e67382","unresolved":false,"context_lines":[{"line_number":820,"context_line":"                    finished, export_list \u003d self.driver.migration_continue("},{"line_number":821,"context_line":"                        context, src_share_instance, dest_share_instance,"},{"line_number":822,"context_line":"                        src_share_server, dest_share_server)"},{"line_number":823,"context_line":"                    print(str(finished))"},{"line_number":824,"context_line":"                    if finished:"},{"line_number":825,"context_line":"                        self.db.share_update("},{"line_number":826,"context_line":"                            context, instance[\u0027share_id\u0027],"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a89bdaa_8244811b","line":823,"range":{"start_line":823,"start_character":20,"end_line":823,"end_character":40},"in_reply_to":"9a89bdaa_847011de","updated":"2016-09-12 16:47:30.000000000","message":"Oops!","commit_id":"9ee93bbdf99c5e81ec0a9137edc5b05dd09f5735"}],"manila/tests/share/drivers/dummy.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"195abe02abb5c58e0a3e8dccf2a6d765e9e32d74","unresolved":false,"context_lines":[{"line_number":367,"context_line":"            (source_share[\"id\"],"},{"line_number":368,"context_line":"             self.migration_progress[source_share[\"id\"]]))"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"        return self.migration_progress[source_share[\"id\"]] \u003d\u003d 100, None"},{"line_number":371,"context_line":""},{"line_number":372,"context_line":"    def migration_complete("},{"line_number":373,"context_line":"            self, context, source_share, destination_share,"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a89bdaa_c407791b","line":370,"range":{"start_line":370,"start_character":67,"end_line":370,"end_character":71},"updated":"2016-09-12 13:15:56.000000000","message":"Dummy driver is designed to test all such things.\n\nSo, I insist on providing list of export locations here in this commit.","commit_id":"9ee93bbdf99c5e81ec0a9137edc5b05dd09f5735"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"1806f55e416425b23a3f2ea11eb726d236e67382","unresolved":false,"context_lines":[{"line_number":367,"context_line":"            (source_share[\"id\"],"},{"line_number":368,"context_line":"             self.migration_progress[source_share[\"id\"]]))"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"        return self.migration_progress[source_share[\"id\"]] \u003d\u003d 100, None"},{"line_number":371,"context_line":""},{"line_number":372,"context_line":"    def migration_complete("},{"line_number":373,"context_line":"            self, context, source_share, destination_share,"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a89bdaa_181b74cb","line":370,"range":{"start_line":370,"start_character":67,"end_line":370,"end_character":71},"in_reply_to":"9a89bdaa_c407791b","updated":"2016-09-12 16:47:30.000000000","message":"Done","commit_id":"9ee93bbdf99c5e81ec0a9137edc5b05dd09f5735"}],"manila/tests/share/test_api.py":[{"author":{"_account_id":16203,"name":"zengyingzhe","email":"zengyingzhe@huawei.com","username":"zengyingzhe"},"change_message_id":"f1e1be0a2eaefd30e6e84758cfd88322a8c8ad65","unresolved":false,"context_lines":[{"line_number":1677,"context_line":"        self.assertRaises(exception.InvalidShare, self.api.allow_access,"},{"line_number":1678,"context_line":"                          self.context, share, \u0027fakeacctype\u0027, \u0027fakeaccto\u0027)"},{"line_number":1679,"context_line":""},{"line_number":1680,"context_line":"    def test_allow_access_status_migrating_not_ready(self):"},{"line_number":1681,"context_line":"        share \u003d db_utils.create_share("},{"line_number":1682,"context_line":"            status\u003dconstants.STATUS_MIGRATING,"},{"line_number":1683,"context_line":"            task_state\u003dconstants.TASK_STATE_DATA_COPYING_STARTING)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a89bdaa_0aab7f1e","line":1680,"updated":"2016-09-05 08:07:51.000000000","message":"Suggest add a test for the scenario that share status is migrating and share task is in the state of allowing to mount.","commit_id":"b955d873d1d3ffae79a87b536a8250c7677ff5a7"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"75ac2b30a11e237c3b758c329f9df1949299a05b","unresolved":false,"context_lines":[{"line_number":1677,"context_line":"        self.assertRaises(exception.InvalidShare, self.api.allow_access,"},{"line_number":1678,"context_line":"                          self.context, share, \u0027fakeacctype\u0027, \u0027fakeaccto\u0027)"},{"line_number":1679,"context_line":""},{"line_number":1680,"context_line":"    def test_allow_access_status_migrating_not_ready(self):"},{"line_number":1681,"context_line":"        share \u003d db_utils.create_share("},{"line_number":1682,"context_line":"            status\u003dconstants.STATUS_MIGRATING,"},{"line_number":1683,"context_line":"            task_state\u003dconstants.TASK_STATE_DATA_COPYING_STARTING)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a89bdaa_367a6025","line":1680,"in_reply_to":"9a89bdaa_0aab7f1e","updated":"2016-09-05 15:52:57.000000000","message":"Done","commit_id":"b955d873d1d3ffae79a87b536a8250c7677ff5a7"},{"author":{"_account_id":16203,"name":"zengyingzhe","email":"zengyingzhe@huawei.com","username":"zengyingzhe"},"change_message_id":"f1e1be0a2eaefd30e6e84758cfd88322a8c8ad65","unresolved":false,"context_lines":[{"line_number":1814,"context_line":"        share_api.policy.check_policy.assert_called_with("},{"line_number":1815,"context_line":"            self.context, \u0027share\u0027, \u0027deny_access\u0027)"},{"line_number":1816,"context_line":""},{"line_number":1817,"context_line":"    def test_deny_access_status_migrating_not_ready(self):"},{"line_number":1818,"context_line":"        share \u003d db_utils.create_share("},{"line_number":1819,"context_line":"            status\u003dconstants.STATUS_MIGRATING,"},{"line_number":1820,"context_line":"            task_state\u003dconstants.TASK_STATE_DATA_COPYING_STARTING)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a89bdaa_2a568329","line":1817,"updated":"2016-09-05 08:07:51.000000000","message":"Ditto.","commit_id":"b955d873d1d3ffae79a87b536a8250c7677ff5a7"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"75ac2b30a11e237c3b758c329f9df1949299a05b","unresolved":false,"context_lines":[{"line_number":1814,"context_line":"        share_api.policy.check_policy.assert_called_with("},{"line_number":1815,"context_line":"            self.context, \u0027share\u0027, \u0027deny_access\u0027)"},{"line_number":1816,"context_line":""},{"line_number":1817,"context_line":"    def test_deny_access_status_migrating_not_ready(self):"},{"line_number":1818,"context_line":"        share \u003d db_utils.create_share("},{"line_number":1819,"context_line":"            status\u003dconstants.STATUS_MIGRATING,"},{"line_number":1820,"context_line":"            task_state\u003dconstants.TASK_STATE_DATA_COPYING_STARTING)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a89bdaa_b694b037","line":1817,"in_reply_to":"9a89bdaa_2a568329","updated":"2016-09-05 15:52:57.000000000","message":"Done","commit_id":"b955d873d1d3ffae79a87b536a8250c7677ff5a7"}],"manila/tests/share/test_manager.py":[{"author":{"_account_id":16203,"name":"zengyingzhe","email":"zengyingzhe@huawei.com","username":"zengyingzhe"},"change_message_id":"f1e1be0a2eaefd30e6e84758cfd88322a8c8ad65","unresolved":false,"context_lines":[{"line_number":3900,"context_line":"        self.mock_object("},{"line_number":3901,"context_line":"            migration_api.ShareMigrationHelper, \u0027change_to_read_only\u0027)"},{"line_number":3902,"context_line":"        self.mock_object(self.share_manager.driver, \u0027migration_start\u0027,"},{"line_number":3903,"context_line":"                         mock.Mock(return_value\u003dfake_export_locations))"},{"line_number":3904,"context_line":"        self.mock_object("},{"line_number":3905,"context_line":"            self.share_manager.db, \u0027share_export_locations_update\u0027)"},{"line_number":3906,"context_line":"        self.mock_object(self.share_manager, \u0027_migration_delete_instance\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a89bdaa_4f9599e2","line":3903,"range":{"start_line":3903,"start_character":48,"end_line":3903,"end_character":69},"updated":"2016-09-05 08:07:51.000000000","message":"Shouldn\u0027t migration_start return a list?","commit_id":"b955d873d1d3ffae79a87b536a8250c7677ff5a7"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"75ac2b30a11e237c3b758c329f9df1949299a05b","unresolved":false,"context_lines":[{"line_number":3900,"context_line":"        self.mock_object("},{"line_number":3901,"context_line":"            migration_api.ShareMigrationHelper, \u0027change_to_read_only\u0027)"},{"line_number":3902,"context_line":"        self.mock_object(self.share_manager.driver, \u0027migration_start\u0027,"},{"line_number":3903,"context_line":"                         mock.Mock(return_value\u003dfake_export_locations))"},{"line_number":3904,"context_line":"        self.mock_object("},{"line_number":3905,"context_line":"            self.share_manager.db, \u0027share_export_locations_update\u0027)"},{"line_number":3906,"context_line":"        self.mock_object(self.share_manager, \u0027_migration_delete_instance\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a89bdaa_96b6ccda","line":3903,"range":{"start_line":3903,"start_character":48,"end_line":3903,"end_character":69},"in_reply_to":"9a89bdaa_4f9599e2","updated":"2016-09-05 15:52:57.000000000","message":"yes but since the call to db update export locations is mocked it does not matter.","commit_id":"b955d873d1d3ffae79a87b536a8250c7677ff5a7"}]}
