)]}'
{"neutron/tests/unit/test_l3_agent.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"255e742398ead2c205dfd5e5e683ed66d41b49ed","unresolved":false,"context_lines":[{"line_number":319,"context_line":"            self.assertEqual(self.mock_driver.init_l3.call_count, 1)"},{"line_number":320,"context_line":"            self.send_arp.assert_called_once_with(ri.ns_name, interface_name,"},{"line_number":321,"context_line":"                                                  \u002799.0.1.9\u0027)"},{"line_number":322,"context_line":"            ri.router[\u0027distributed\u0027] \u003d True"},{"line_number":323,"context_line":"            ri.router[\u0027gw_port_host\u0027] \u003d HOSTNAME"},{"line_number":324,"context_line":"            agent.host \u003d HOSTNAME"},{"line_number":325,"context_line":"            agent.conf.agent_mode \u003d \u0027dvr_snat\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"7ac7a964_59ab4789","line":322,"updated":"2014-08-13 21:49:55.000000000","message":"you shouldn\u0027t be altering this method like this, because if we want to reuse this method to test the  path in the non-distributed case we no longer can. Besides, it really looks that you\u0027re changed one test method with another.\n\nIn my opinion you\u0027re be better off if you wrote an independent test method that targets DVR routers and the specific condition that you\u0027re fixing here.","commit_id":"2f87f15e2859c78e1945f5256663d56e9ee3441f"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"2f3da83d5d9dfa4eba0153a149435e4a2e772571","unresolved":false,"context_lines":[{"line_number":319,"context_line":"            self.assertEqual(self.mock_driver.init_l3.call_count, 1)"},{"line_number":320,"context_line":"            self.send_arp.assert_called_once_with(ri.ns_name, interface_name,"},{"line_number":321,"context_line":"                                                  \u002799.0.1.9\u0027)"},{"line_number":322,"context_line":"            ri.router[\u0027distributed\u0027] \u003d True"},{"line_number":323,"context_line":"            ri.router[\u0027gw_port_host\u0027] \u003d HOSTNAME"},{"line_number":324,"context_line":"            agent.host \u003d HOSTNAME"},{"line_number":325,"context_line":"            agent.conf.agent_mode \u003d \u0027dvr_snat\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"7ac7a964_ff479349","line":322,"in_reply_to":"7ac7a964_1c18dd83","updated":"2014-08-13 22:32:55.000000000","message":"thanks!","commit_id":"2f87f15e2859c78e1945f5256663d56e9ee3441f"},{"author":{"_account_id":9077,"name":"Rajeev Grover","email":"rgrover687@gmail.com","username":"rajeev"},"change_message_id":"e96f04465cfb8ad1f791147c196bd8804ee895df","unresolved":false,"context_lines":[{"line_number":319,"context_line":"            self.assertEqual(self.mock_driver.init_l3.call_count, 1)"},{"line_number":320,"context_line":"            self.send_arp.assert_called_once_with(ri.ns_name, interface_name,"},{"line_number":321,"context_line":"                                                  \u002799.0.1.9\u0027)"},{"line_number":322,"context_line":"            ri.router[\u0027distributed\u0027] \u003d True"},{"line_number":323,"context_line":"            ri.router[\u0027gw_port_host\u0027] \u003d HOSTNAME"},{"line_number":324,"context_line":"            agent.host \u003d HOSTNAME"},{"line_number":325,"context_line":"            agent.conf.agent_mode \u003d \u0027dvr_snat\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"7ac7a964_1c18dd83","line":322,"in_reply_to":"7ac7a964_59ab4789","updated":"2014-08-13 22:30:47.000000000","message":"sure, updated the UT.","commit_id":"2f87f15e2859c78e1945f5256663d56e9ee3441f"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"470b58efd366a7686e5204f8000ce1a6f6454c2c","unresolved":false,"context_lines":[{"line_number":326,"context_line":"        else:"},{"line_number":327,"context_line":"            raise Exception(\"Invalid action %s\" % action)"},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"    def _test_internal_network_action_dist(self, action):"},{"line_number":330,"context_line":"        port_id \u003d _uuid()"},{"line_number":331,"context_line":"        router_id \u003d _uuid()"},{"line_number":332,"context_line":"        network_id \u003d _uuid()"}],"source_content_type":"text/x-python","patch_set":4,"id":"7ac7a964_7f7383b1","line":329,"updated":"2014-08-13 22:33:10.000000000","message":"DRY?","commit_id":"484db265f035def7915f59839af6038914a7b57e"},{"author":{"_account_id":9077,"name":"Rajeev Grover","email":"rgrover687@gmail.com","username":"rajeev"},"change_message_id":"37e15d36054361090d0dfee71ddc83c934145edd","unresolved":false,"context_lines":[{"line_number":326,"context_line":"        else:"},{"line_number":327,"context_line":"            raise Exception(\"Invalid action %s\" % action)"},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"    def _test_internal_network_action_dist(self, action):"},{"line_number":330,"context_line":"        port_id \u003d _uuid()"},{"line_number":331,"context_line":"        router_id \u003d _uuid()"},{"line_number":332,"context_line":"        network_id \u003d _uuid()"}],"source_content_type":"text/x-python","patch_set":4,"id":"7ac7a964_bf927b9d","line":329,"in_reply_to":"7ac7a964_7f7383b1","updated":"2014-08-13 22:37:30.000000000","message":"Armando: don\u0027t understand what you mean by \u0027DRY\u0027 ?","commit_id":"484db265f035def7915f59839af6038914a7b57e"},{"author":{"_account_id":9077,"name":"Rajeev Grover","email":"rgrover687@gmail.com","username":"rajeev"},"change_message_id":"464553bf372c56f307eb8d9dfbde63775a186e11","unresolved":false,"context_lines":[{"line_number":326,"context_line":"        else:"},{"line_number":327,"context_line":"            raise Exception(\"Invalid action %s\" % action)"},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"    def _test_internal_network_action_dist(self, action):"},{"line_number":330,"context_line":"        port_id \u003d _uuid()"},{"line_number":331,"context_line":"        router_id \u003d _uuid()"},{"line_number":332,"context_line":"        network_id \u003d _uuid()"}],"source_content_type":"text/x-python","patch_set":4,"id":"7ac7a964_2bbc696c","line":329,"in_reply_to":"7ac7a964_9f713f7a","updated":"2014-08-14 00:51:29.000000000","message":"Armando: Thanks, have posted an updated patch with what seemed reasonable to re-factor.","commit_id":"484db265f035def7915f59839af6038914a7b57e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"4bf2ee3b838fc73cd406b918454fbcc09ad40d39","unresolved":false,"context_lines":[{"line_number":326,"context_line":"        else:"},{"line_number":327,"context_line":"            raise Exception(\"Invalid action %s\" % action)"},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"    def _test_internal_network_action_dist(self, action):"},{"line_number":330,"context_line":"        port_id \u003d _uuid()"},{"line_number":331,"context_line":"        router_id \u003d _uuid()"},{"line_number":332,"context_line":"        network_id \u003d _uuid()"}],"source_content_type":"text/x-python","patch_set":4,"id":"7ac7a964_9f713f7a","line":329,"in_reply_to":"7ac7a964_bf927b9d","updated":"2014-08-13 22:38:49.000000000","message":"my bad: Don\u0027t Repeat Yourself.\n\nhttp://en.wikipedia.org/wiki/Don\u0027t_repeat_yourself","commit_id":"484db265f035def7915f59839af6038914a7b57e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"470b58efd366a7686e5204f8000ce1a6f6454c2c","unresolved":false,"context_lines":[{"line_number":370,"context_line":""},{"line_number":371,"context_line":"    def test_agent_add_internal_network(self):"},{"line_number":372,"context_line":"        self._test_internal_network_action(\u0027add\u0027)"},{"line_number":373,"context_line":"        self._test_internal_network_action_dist(\u0027add\u0027)"},{"line_number":374,"context_line":""},{"line_number":375,"context_line":"    def test_agent_remove_internal_network(self):"},{"line_number":376,"context_line":"        self._test_internal_network_action(\u0027remove\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"7ac7a964_3f790b94","line":373,"updated":"2014-08-13 22:33:10.000000000","message":"two test cases please. If the first fails, the second won\u0027t run, but we\u0027d still want to see what\u0027s happening for the dist case.","commit_id":"484db265f035def7915f59839af6038914a7b57e"},{"author":{"_account_id":9077,"name":"Rajeev Grover","email":"rgrover687@gmail.com","username":"rajeev"},"change_message_id":"37e15d36054361090d0dfee71ddc83c934145edd","unresolved":false,"context_lines":[{"line_number":370,"context_line":""},{"line_number":371,"context_line":"    def test_agent_add_internal_network(self):"},{"line_number":372,"context_line":"        self._test_internal_network_action(\u0027add\u0027)"},{"line_number":373,"context_line":"        self._test_internal_network_action_dist(\u0027add\u0027)"},{"line_number":374,"context_line":""},{"line_number":375,"context_line":"    def test_agent_remove_internal_network(self):"},{"line_number":376,"context_line":"        self._test_internal_network_action(\u0027remove\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"7ac7a964_7fcf03b1","line":373,"in_reply_to":"7ac7a964_3f790b94","updated":"2014-08-13 22:37:30.000000000","message":"ok, will move the dist out to an independent invocation.","commit_id":"484db265f035def7915f59839af6038914a7b57e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"f41ee23213f344bc490ba359c28eb81754130c3e","unresolved":false,"context_lines":[{"line_number":331,"context_line":"        else:"},{"line_number":332,"context_line":"            raise Exception(\"Invalid action %s\" % action)"},{"line_number":333,"context_line":""},{"line_number":334,"context_line":"    def _test_internal_network_action_dist(self, action):"},{"line_number":335,"context_line":"        agent, ri, port \u003d self._prepare_internal_network_data()"},{"line_number":336,"context_line":"        ri.router[\u0027distributed\u0027] \u003d True"},{"line_number":337,"context_line":"        ri.router[\u0027gw_port_host\u0027] \u003d HOSTNAME"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_5d65ec43","line":334,"updated":"2014-08-14 01:30:26.000000000","message":"nit: dist -\u003e either distributed or dvr, but that\u0027s fine","commit_id":"11ca12dd8752a7d8fc13027c21ee572233becb74"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"f41ee23213f344bc490ba359c28eb81754130c3e","unresolved":false,"context_lines":[{"line_number":332,"context_line":"            raise Exception(\"Invalid action %s\" % action)"},{"line_number":333,"context_line":""},{"line_number":334,"context_line":"    def _test_internal_network_action_dist(self, action):"},{"line_number":335,"context_line":"        agent, ri, port \u003d self._prepare_internal_network_data()"},{"line_number":336,"context_line":"        ri.router[\u0027distributed\u0027] \u003d True"},{"line_number":337,"context_line":"        ri.router[\u0027gw_port_host\u0027] \u003d HOSTNAME"},{"line_number":338,"context_line":"        agent.host \u003d HOSTNAME"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_1da7f450","line":335,"updated":"2014-08-14 01:30:26.000000000","message":"for the future: you could have parametrized some of the settings below for _prepare_internal_network_data for instance:\n\ndef _prepare_internal_network_data(self, internal_ports, distributed\u003dTrue, ...)\n    pass\n\nand move some of the initialization below in the helper method, but this is okay for now.\n\nThanks for your support.","commit_id":"11ca12dd8752a7d8fc13027c21ee572233becb74"}]}
