)]}'
{"neutron/tests/unit/cisco/n1kv/test_n1kv_plugin.py":[{"author":{"_account_id":7018,"name":"Abhishek Raut","email":"rauta@vmware.com","username":"abhiraut"},"change_message_id":"cef4bc81ead777eb34c226bbba4544b4c19e0438","unresolved":false,"context_lines":[{"line_number":796,"context_line":"        self.assertFalse(n1kv_db_v2.get_vxlan_allocation(db_session,"},{"line_number":797,"context_line":"                                                         10000).allocated)"},{"line_number":798,"context_line":""},{"line_number":799,"context_line":"    def test_delete_network(self):"},{"line_number":800,"context_line":"        \"\"\" Regular test case of network deletion. Should return succesful.\"\"\""},{"line_number":801,"context_line":"        res \u003d self._create_network(self.fmt, name\u003d\u0027net\u0027, admin_state_up\u003dTrue)"},{"line_number":802,"context_line":"        network \u003d self.deserialize(self.fmt, res)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_bd37a0fd","line":799,"updated":"2014-08-06 22:49:46.000000000","message":"is this test case required at all? does this fail on addition of subnet deletion  check? If not please remove this test case.","commit_id":"b41ba16ebd12127f06271debc26b2d7cb441dd79"},{"author":{"_account_id":11269,"name":"Marga Millet","email":"marga.sfo@gmail.com","username":"marga"},"change_message_id":"d75ad03a3449de680832b5aa7516658ee2666f86","unresolved":false,"context_lines":[{"line_number":796,"context_line":"        self.assertFalse(n1kv_db_v2.get_vxlan_allocation(db_session,"},{"line_number":797,"context_line":"                                                         10000).allocated)"},{"line_number":798,"context_line":""},{"line_number":799,"context_line":"    def test_delete_network(self):"},{"line_number":800,"context_line":"        \"\"\" Regular test case of network deletion. Should return succesful.\"\"\""},{"line_number":801,"context_line":"        res \u003d self._create_network(self.fmt, name\u003d\u0027net\u0027, admin_state_up\u003dTrue)"},{"line_number":802,"context_line":"        network \u003d self.deserialize(self.fmt, res)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_f9fe2f06","line":799,"in_reply_to":"baada198_bd37a0fd","updated":"2014-08-09 19:42:52.000000000","message":"Yes. The generic case (with the same name) contains a subnet. Hence if I don\u0027t override it, it\u0027ll fail in n1k (because the fix avoids to delete networks which have subnets on it).","commit_id":"b41ba16ebd12127f06271debc26b2d7cb441dd79"},{"author":{"_account_id":7018,"name":"Abhishek Raut","email":"rauta@vmware.com","username":"abhiraut"},"change_message_id":"cef4bc81ead777eb34c226bbba4544b4c19e0438","unresolved":false,"context_lines":[{"line_number":797,"context_line":"                                                         10000).allocated)"},{"line_number":798,"context_line":""},{"line_number":799,"context_line":"    def test_delete_network(self):"},{"line_number":800,"context_line":"        \"\"\" Regular test case of network deletion. Should return succesful.\"\"\""},{"line_number":801,"context_line":"        res \u003d self._create_network(self.fmt, name\u003d\u0027net\u0027, admin_state_up\u003dTrue)"},{"line_number":802,"context_line":"        network \u003d self.deserialize(self.fmt, res)"},{"line_number":803,"context_line":"        req \u003d self.new_delete_request(\u0027networks\u0027, network[\u0027network\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_9d49fc8f","line":800,"updated":"2014-08-06 22:49:46.000000000","message":"nit: Get rid of the white space in the beginning.\nsuccesful -\u003e successful","commit_id":"b41ba16ebd12127f06271debc26b2d7cb441dd79"},{"author":{"_account_id":11269,"name":"Marga Millet","email":"marga.sfo@gmail.com","username":"marga"},"change_message_id":"4c9d0037b2c8c35d60bddb5b871c8f3abb31c521","unresolved":false,"context_lines":[{"line_number":797,"context_line":"                                                         10000).allocated)"},{"line_number":798,"context_line":""},{"line_number":799,"context_line":"    def test_delete_network(self):"},{"line_number":800,"context_line":"        \"\"\" Regular test case of network deletion. Should return succesful.\"\"\""},{"line_number":801,"context_line":"        res \u003d self._create_network(self.fmt, name\u003d\u0027net\u0027, admin_state_up\u003dTrue)"},{"line_number":802,"context_line":"        network \u003d self.deserialize(self.fmt, res)"},{"line_number":803,"context_line":"        req \u003d self.new_delete_request(\u0027networks\u0027, network[\u0027network\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_2b012e04","line":800,"in_reply_to":"baada198_9d49fc8f","updated":"2014-08-09 19:45:07.000000000","message":"Done","commit_id":"b41ba16ebd12127f06271debc26b2d7cb441dd79"},{"author":{"_account_id":6785,"name":"Rudrajit Tapadar","email":"rudrajit.tapadar@gmail.com","username":"rtapadar"},"change_message_id":"b6188bd577bd770d935c3b276e245465d9fb5cb4","unresolved":false,"context_lines":[{"line_number":813,"context_line":"            self.assertEqual(res.status_int, webob.exc.HTTPBadRequest.code)"},{"line_number":814,"context_line":""},{"line_number":815,"context_line":"    def test_update_network_set_not_shared_multi_tenants2_returns_409(self):"},{"line_number":816,"context_line":"        \u0027\u0027\u0027 Verify that updating a network which cannot be shared, gives a"},{"line_number":817,"context_line":"            conflic error"},{"line_number":818,"context_line":"        \u0027\u0027\u0027"},{"line_number":819,"context_line":"        with self.network(shared\u003dTrue) as network:"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_88c19832","line":816,"updated":"2014-08-07 21:16:38.000000000","message":"nit: Use triple double quotes to maintain the same style as elsewhere. Avoid beginning and ending spaces when not necessary.","commit_id":"b41ba16ebd12127f06271debc26b2d7cb441dd79"},{"author":{"_account_id":11269,"name":"Marga Millet","email":"marga.sfo@gmail.com","username":"marga"},"change_message_id":"4c9d0037b2c8c35d60bddb5b871c8f3abb31c521","unresolved":false,"context_lines":[{"line_number":813,"context_line":"            self.assertEqual(res.status_int, webob.exc.HTTPBadRequest.code)"},{"line_number":814,"context_line":""},{"line_number":815,"context_line":"    def test_update_network_set_not_shared_multi_tenants2_returns_409(self):"},{"line_number":816,"context_line":"        \u0027\u0027\u0027 Verify that updating a network which cannot be shared, gives a"},{"line_number":817,"context_line":"            conflic error"},{"line_number":818,"context_line":"        \u0027\u0027\u0027"},{"line_number":819,"context_line":"        with self.network(shared\u003dTrue) as network:"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_4b02e208","line":816,"in_reply_to":"baada198_88c19832","updated":"2014-08-09 19:45:07.000000000","message":"Done","commit_id":"b41ba16ebd12127f06271debc26b2d7cb441dd79"},{"author":{"_account_id":7018,"name":"Abhishek Raut","email":"rauta@vmware.com","username":"abhiraut"},"change_message_id":"cef4bc81ead777eb34c226bbba4544b4c19e0438","unresolved":false,"context_lines":[{"line_number":814,"context_line":""},{"line_number":815,"context_line":"    def test_update_network_set_not_shared_multi_tenants2_returns_409(self):"},{"line_number":816,"context_line":"        \u0027\u0027\u0027 Verify that updating a network which cannot be shared, gives a"},{"line_number":817,"context_line":"            conflic error"},{"line_number":818,"context_line":"        \u0027\u0027\u0027"},{"line_number":819,"context_line":"        with self.network(shared\u003dTrue) as network:"},{"line_number":820,"context_line":"            res \u003d self._create_port(self.fmt, network[\u0027network\u0027][\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_9d173c53","line":817,"updated":"2014-08-06 22:49:46.000000000","message":"nit: conflic -\u003e conflict\n\nEnd sentence with a period here and elsewhere","commit_id":"b41ba16ebd12127f06271debc26b2d7cb441dd79"},{"author":{"_account_id":11269,"name":"Marga Millet","email":"marga.sfo@gmail.com","username":"marga"},"change_message_id":"4c9d0037b2c8c35d60bddb5b871c8f3abb31c521","unresolved":false,"context_lines":[{"line_number":814,"context_line":""},{"line_number":815,"context_line":"    def test_update_network_set_not_shared_multi_tenants2_returns_409(self):"},{"line_number":816,"context_line":"        \u0027\u0027\u0027 Verify that updating a network which cannot be shared, gives a"},{"line_number":817,"context_line":"            conflic error"},{"line_number":818,"context_line":"        \u0027\u0027\u0027"},{"line_number":819,"context_line":"        with self.network(shared\u003dTrue) as network:"},{"line_number":820,"context_line":"            res \u003d self._create_port(self.fmt, network[\u0027network\u0027][\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_6b07a617","line":817,"in_reply_to":"baada198_9d173c53","updated":"2014-08-09 19:45:07.000000000","message":"Done","commit_id":"b41ba16ebd12127f06271debc26b2d7cb441dd79"},{"author":{"_account_id":6785,"name":"Rudrajit Tapadar","email":"rudrajit.tapadar@gmail.com","username":"rtapadar"},"change_message_id":"b6188bd577bd770d935c3b276e245465d9fb5cb4","unresolved":false,"context_lines":[{"line_number":832,"context_line":"    def test_delete_network_if_port_exists(self):"},{"line_number":833,"context_line":"        \u0027\u0027\u0027 Verify that we cannot remove a network which has a"},{"line_number":834,"context_line":"            port attached to it"},{"line_number":835,"context_line":"        \u0027\u0027\u0027"},{"line_number":836,"context_line":"        res \u003d self._create_network(self.fmt, name\u003d\u0027net1\u0027, admin_state_up\u003dTrue)"},{"line_number":837,"context_line":"        network \u003d self.deserialize(self.fmt, res)"},{"line_number":838,"context_line":"        net_id \u003d network[\u0027network\u0027][\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_e8d93429","line":835,"updated":"2014-08-07 21:16:38.000000000","message":"\"\"\" instead of \u0027\u0027\u0027 as above. Avoid beginning space - not necessary.","commit_id":"b41ba16ebd12127f06271debc26b2d7cb441dd79"},{"author":{"_account_id":11269,"name":"Marga Millet","email":"marga.sfo@gmail.com","username":"marga"},"change_message_id":"4c9d0037b2c8c35d60bddb5b871c8f3abb31c521","unresolved":false,"context_lines":[{"line_number":832,"context_line":"    def test_delete_network_if_port_exists(self):"},{"line_number":833,"context_line":"        \u0027\u0027\u0027 Verify that we cannot remove a network which has a"},{"line_number":834,"context_line":"            port attached to it"},{"line_number":835,"context_line":"        \u0027\u0027\u0027"},{"line_number":836,"context_line":"        res \u003d self._create_network(self.fmt, name\u003d\u0027net1\u0027, admin_state_up\u003dTrue)"},{"line_number":837,"context_line":"        network \u003d self.deserialize(self.fmt, res)"},{"line_number":838,"context_line":"        net_id \u003d network[\u0027network\u0027][\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_8b0f9a2e","line":835,"in_reply_to":"baada198_e8d93429","updated":"2014-08-09 19:45:07.000000000","message":"Done","commit_id":"b41ba16ebd12127f06271debc26b2d7cb441dd79"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"d70403abc169a0eef4c68c3c41a5f157f5fb7d9d","unresolved":false,"context_lines":[{"line_number":869,"context_line":"            # Subnet creation should fail due to invalid network name"},{"line_number":870,"context_line":"            self.assertEqual(subnet_resp.status_int, 400)"},{"line_number":871,"context_line":""},{"line_number":872,"context_line":"    def test_update_subnet_adding_additional_host_routes_and_dns(self):"},{"line_number":873,"context_line":"        host_routes \u003d [{\u0027destination\u0027: \u0027172.16.0.0/24\u0027,"},{"line_number":874,"context_line":"                        \u0027nexthop\u0027: \u002710.0.2.2\u0027}]"},{"line_number":875,"context_line":"        with self.network() as network:"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_7d083ad9","line":872,"updated":"2014-08-02 10:05:29.000000000","message":"this and the other UTs below seem unrelated to this bug, why are they being added here?","commit_id":"b41ba16ebd12127f06271debc26b2d7cb441dd79"},{"author":{"_account_id":11269,"name":"Marga Millet","email":"marga.sfo@gmail.com","username":"marga"},"change_message_id":"018e121b5c4dab56becd94c8a8bb8af9aed3b7c4","unresolved":false,"context_lines":[{"line_number":869,"context_line":"            # Subnet creation should fail due to invalid network name"},{"line_number":870,"context_line":"            self.assertEqual(subnet_resp.status_int, 400)"},{"line_number":871,"context_line":""},{"line_number":872,"context_line":"    def test_update_subnet_adding_additional_host_routes_and_dns(self):"},{"line_number":873,"context_line":"        host_routes \u003d [{\u0027destination\u0027: \u0027172.16.0.0/24\u0027,"},{"line_number":874,"context_line":"                        \u0027nexthop\u0027: \u002710.0.2.2\u0027}]"},{"line_number":875,"context_line":"        with self.network() as network:"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_a7571bc8","line":872,"in_reply_to":"baada198_7d083ad9","updated":"2014-08-03 00:16:36.000000000","message":"Thanks Sumit for your review.\n\nthe commit changes the way delete_network() method  behaves with n1kv plugin: the network can only be deleted if it doesn\u0027t have subnets.\n\nThen when I run tox to test this code, all the cases in test_db_plugin.py where a network was deleted with a subnet, fails. Hence I needed to change those cases to make sure the subnet was deleted first (ex: test_update_subnet_adding_additional_host_routes_and_dns() is the same test case as in test_db_plugin.py but making sure I delete the subnet before deleting the network so that the test case doesn\u0027t fail due to the new code added).","commit_id":"b41ba16ebd12127f06271debc26b2d7cb441dd79"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"ec7bdd860b02671470d52a930e82791656edfad4","unresolved":false,"context_lines":[{"line_number":802,"context_line":"        network \u003d self.deserialize(self.fmt, res)"},{"line_number":803,"context_line":"        req \u003d self.new_delete_request(\u0027networks\u0027, network[\u0027network\u0027][\u0027id\u0027])"},{"line_number":804,"context_line":"        res \u003d req.get_response(self.api)"},{"line_number":805,"context_line":"        self.assertEqual(res.status_int, webob.exc.HTTPNoContent.code)"},{"line_number":806,"context_line":""},{"line_number":807,"context_line":"    def test_delete_network_with_subnet(self):"},{"line_number":808,"context_line":"        \"\"\"Network deletion fails when a subnet is present on the network.\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_d6cda35f","line":805,"updated":"2014-08-11 09:06:28.000000000","message":"It is recommended that the order of assert checks should be (expected_value, actual_value). Fix here and all other places where its happening in this patch.","commit_id":"5f4303858028fb54f3efd33ca65ba52f9ed8d80b"},{"author":{"_account_id":11269,"name":"Marga Millet","email":"marga.sfo@gmail.com","username":"marga"},"change_message_id":"a29969018afb32aacc5ff652f588006925d7915a","unresolved":false,"context_lines":[{"line_number":802,"context_line":"        network \u003d self.deserialize(self.fmt, res)"},{"line_number":803,"context_line":"        req \u003d self.new_delete_request(\u0027networks\u0027, network[\u0027network\u0027][\u0027id\u0027])"},{"line_number":804,"context_line":"        res \u003d req.get_response(self.api)"},{"line_number":805,"context_line":"        self.assertEqual(res.status_int, webob.exc.HTTPNoContent.code)"},{"line_number":806,"context_line":""},{"line_number":807,"context_line":"    def test_delete_network_with_subnet(self):"},{"line_number":808,"context_line":"        \"\"\"Network deletion fails when a subnet is present on the network.\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_46d8f351","line":805,"in_reply_to":"baada198_d6cda35f","updated":"2014-08-11 16:23:15.000000000","message":"Thanks for your review. \n\nHave this been changed? I see in this file and in other test*.py files that the opposite is actually what people is following with assertEqual() method.\n\nExample: \n  In test_db_plugin.py file there\u0027s the case with the same name:\n     test_delete_network(self):\n          ...\n          self.assertEqual(res.status_int, webob.exc.HTTPNoContent.code)\n\nThanks.","commit_id":"5f4303858028fb54f3efd33ca65ba52f9ed8d80b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"cbd31efd35f136c81e0948934101eea9b8109cc6","unresolved":false,"context_lines":[{"line_number":15,"context_line":"# @author: Juergen Brendel, Cisco Systems Inc."},{"line_number":16,"context_line":"# @author: Abhishek Raut, Cisco Systems Inc."},{"line_number":17,"context_line":"# @author: Sourabh Patwardhan, Cisco Systems Inc."},{"line_number":18,"context_line":"# @author: Marga Millet, Cisco Systems Inc."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"import mock"},{"line_number":21,"context_line":"import webob.exc"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_ce3a1cc5","line":18,"updated":"2014-08-12 22:10:56.000000000","message":"nit:  Recent comments on other patches indicate we don\u0027t do this anymore.  Authorship is tracked well by git.","commit_id":"89fb8b633b1ae34d0b56d73ee115462f4acc9540"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"cbd31efd35f136c81e0948934101eea9b8109cc6","unresolved":false,"context_lines":[{"line_number":812,"context_line":"            res \u003d req.get_response(self.api)"},{"line_number":813,"context_line":"            self.assertEqual(res.status_int, webob.exc.HTTPBadRequest.code)"},{"line_number":814,"context_line":""},{"line_number":815,"context_line":"    def test_update_network_set_not_shared_multi_tenants2_returns_409(self):"},{"line_number":816,"context_line":"        \"\"\""},{"line_number":817,"context_line":"           Verifies that updating a network which cannot be shared,"},{"line_number":818,"context_line":"           returns a conflict error."}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_6e175054","line":815,"updated":"2014-08-12 22:10:56.000000000","message":"nit:  Some of these tests seem to be beyond the scope of this patch.  Normally, I\u0027d add them independently so that the fix can be reviewed and merged more easily.","commit_id":"89fb8b633b1ae34d0b56d73ee115462f4acc9540"},{"author":{"_account_id":11269,"name":"Marga Millet","email":"marga.sfo@gmail.com","username":"marga"},"change_message_id":"c387602b0bc4ddff059e02f7875f308bd2d1ff74","unresolved":false,"context_lines":[{"line_number":812,"context_line":"            res \u003d req.get_response(self.api)"},{"line_number":813,"context_line":"            self.assertEqual(res.status_int, webob.exc.HTTPBadRequest.code)"},{"line_number":814,"context_line":""},{"line_number":815,"context_line":"    def test_update_network_set_not_shared_multi_tenants2_returns_409(self):"},{"line_number":816,"context_line":"        \"\"\""},{"line_number":817,"context_line":"           Verifies that updating a network which cannot be shared,"},{"line_number":818,"context_line":"           returns a conflict error."}],"source_content_type":"text/x-python","patch_set":3,"id":"7ac7a964_9df72ef5","line":815,"in_reply_to":"baada198_6e175054","updated":"2014-08-15 19:47:29.000000000","message":"Thanks Carl for your review.\nI missed your comment earlier.\nI reply to this in patch1. Without these test cases here, we cannot succeed in unit testing the code. The reason is that due to this commit, the network cannot be deleted without first removing the subnets on it. Hence I needed to override the test cases which are network related and which contains subnets (see my comment to Sumit in patch1).","commit_id":"89fb8b633b1ae34d0b56d73ee115462f4acc9540"}]}
