)]}'
{"neutron/db/ipam_backend_mixin.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"abd32970b3e07dfe6af5b82dfd685c468e049a1f","unresolved":false,"context_lines":[{"line_number":158,"context_line":"    def _update_subnet_allocation_pools(self, context, subnet_id, s):"},{"line_number":159,"context_line":"        context.session.query(models_v2.IPAllocationPool).filter_by("},{"line_number":160,"context_line":"            subnet_id\u003dsubnet_id).delete()"},{"line_number":161,"context_line":"        pools \u003d ((netaddr.IPAddress(p.first, p.version).format(),"},{"line_number":162,"context_line":"                  netaddr.IPAddress(p.last, p.version).format())"},{"line_number":163,"context_line":"                 for p in s[\u0027allocation_pools\u0027])"},{"line_number":164,"context_line":"        new_pools \u003d [models_v2.IPAllocationPool(first_ip\u003dp[0],"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_1ed07cf5","side":"PARENT","line":161,"updated":"2015-08-11 16:57:46.000000000","message":"Funny how gerrit shows me that the second ( was changed and not the first.  Is that what you see highlighted?","commit_id":"dfadd1af75ae2586a637af59864f8bb5348a71b2"},{"author":{"_account_id":6635,"name":"John Davidge","email":"john.davidge@rackspace.com","username":"john-davidge"},"change_message_id":"8a46929309c3fae62288ccef7e1997788cc8c873","unresolved":false,"context_lines":[{"line_number":158,"context_line":"    def _update_subnet_allocation_pools(self, context, subnet_id, s):"},{"line_number":159,"context_line":"        context.session.query(models_v2.IPAllocationPool).filter_by("},{"line_number":160,"context_line":"            subnet_id\u003dsubnet_id).delete()"},{"line_number":161,"context_line":"        pools \u003d ((netaddr.IPAddress(p.first, p.version).format(),"},{"line_number":162,"context_line":"                  netaddr.IPAddress(p.last, p.version).format())"},{"line_number":163,"context_line":"                 for p in s[\u0027allocation_pools\u0027])"},{"line_number":164,"context_line":"        new_pools \u003d [models_v2.IPAllocationPool(first_ip\u003dp[0],"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_dea4544c","side":"PARENT","line":161,"in_reply_to":"1a4dcd0f_1ed07cf5","updated":"2015-08-11 17:02:27.000000000","message":"Huh, yes I see it too. How strange!","commit_id":"dfadd1af75ae2586a637af59864f8bb5348a71b2"}],"neutron/tests/unit/db/test_db_base_plugin_v2.py":[{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"5743b236bdf9f3ba92380172ff54c2866181808b","unresolved":false,"context_lines":[{"line_number":4189,"context_line":"                                              subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4190,"context_line":"                res \u003d req.get_response(self.api)"},{"line_number":4191,"context_line":"                self.assertEqual(res.status_code, 200)"},{"line_number":4192,"context_line":"                res \u003d self.deserialize(self.fmt, req.get_response(self.api))"},{"line_number":4193,"context_line":"                self.assertEqual(len(res[\u0027subnet\u0027][\u0027allocation_pools\u0027]), 2)"},{"line_number":4194,"context_line":"                res_vals \u003d ("},{"line_number":4195,"context_line":"                    list(res[\u0027subnet\u0027][\u0027allocation_pools\u0027][0].values()) +"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_ae8da7d4","line":4192,"updated":"2015-08-11 13:52:31.000000000","message":"Nit: replace req.get_response(self.api) with res since the show request is removed.","commit_id":"b6f0fbce7cc1c669073a5d8361df772d631d452b"},{"author":{"_account_id":6635,"name":"John Davidge","email":"john.davidge@rackspace.com","username":"john-davidge"},"change_message_id":"ba4e029439b678e60cf028fc15af4c97c8841b40","unresolved":false,"context_lines":[{"line_number":4189,"context_line":"                                              subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4190,"context_line":"                res \u003d req.get_response(self.api)"},{"line_number":4191,"context_line":"                self.assertEqual(res.status_code, 200)"},{"line_number":4192,"context_line":"                res \u003d self.deserialize(self.fmt, req.get_response(self.api))"},{"line_number":4193,"context_line":"                self.assertEqual(len(res[\u0027subnet\u0027][\u0027allocation_pools\u0027]), 2)"},{"line_number":4194,"context_line":"                res_vals \u003d ("},{"line_number":4195,"context_line":"                    list(res[\u0027subnet\u0027][\u0027allocation_pools\u0027][0].values()) +"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_91748cfe","line":4192,"in_reply_to":"1a4dcd0f_ae8da7d4","updated":"2015-08-11 14:15:52.000000000","message":"Done","commit_id":"b6f0fbce7cc1c669073a5d8361df772d631d452b"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"a1b7c0911911c20d2f295d8cac1e4f03abd87a33","unresolved":false,"context_lines":[{"line_number":4189,"context_line":"                                              subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4190,"context_line":"                res \u003d req.get_response(self.api)"},{"line_number":4191,"context_line":"                self.assertEqual(res.status_code, 200)"},{"line_number":4192,"context_line":"                res \u003d self.deserialize(self.fmt, res)"},{"line_number":4193,"context_line":"                self.assertEqual(len(res[\u0027subnet\u0027][\u0027allocation_pools\u0027]), 2)"},{"line_number":4194,"context_line":"                res_vals \u003d ("},{"line_number":4195,"context_line":"                    list(res[\u0027subnet\u0027][\u0027allocation_pools\u0027][0].values()) +"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_4d00a066","line":4192,"updated":"2015-08-11 16:06:58.000000000","message":"Think it a bit more, maybe both should be checked: making sure the response contains the correct content, and the DB contents are actually correctly updated. The latter seems to be more important as the original test did. What you think?","commit_id":"863a4984fdf3379288a059629ff9ce2883e61ca6"},{"author":{"_account_id":6635,"name":"John Davidge","email":"john.davidge@rackspace.com","username":"john-davidge"},"change_message_id":"a4bbb4c50a23e4c1b7f0708860da8b890683a4df","unresolved":false,"context_lines":[{"line_number":4189,"context_line":"                                              subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4190,"context_line":"                res \u003d req.get_response(self.api)"},{"line_number":4191,"context_line":"                self.assertEqual(res.status_code, 200)"},{"line_number":4192,"context_line":"                res \u003d self.deserialize(self.fmt, res)"},{"line_number":4193,"context_line":"                self.assertEqual(len(res[\u0027subnet\u0027][\u0027allocation_pools\u0027]), 2)"},{"line_number":4194,"context_line":"                res_vals \u003d ("},{"line_number":4195,"context_line":"                    list(res[\u0027subnet\u0027][\u0027allocation_pools\u0027][0].values()) +"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_68378a4d","line":4192,"in_reply_to":"1a4dcd0f_4d00a066","updated":"2015-08-11 16:20:27.000000000","message":"You have a good point here. Just because the response is correct doesn\u0027t guarantee the DB contents will be updated correctly. I\u0027ll include both tests.","commit_id":"863a4984fdf3379288a059629ff9ce2883e61ca6"}]}
