)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"24b0dce75f1188680b92ea4203125dd35a460496","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     david shaughnessy \u003cdavid.shaughnessy@intel.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-11-07 13:53:57 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"https://review.openstack.org/#/c/510628 follow up"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When creating the hybrid firewall helper class the"},{"line_number":10,"context_line":"_remove_conntrack_entries_from_port_deleted function is"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f4b6375_52a5de01","line":7,"updated":"2017-11-07 14:53:23.000000000","message":"Also, can you put the review link below and put some short comment here?  And if there is no new bug then add a Related-bug below too to the original.","commit_id":"d59ea52a6e97369cafc4ee42b87cc83e1888f553"},{"author":{"_account_id":18051,"name":"David Shaughnessy","email":"david.shaughnessy@intel.com","username":"davidsha"},"change_message_id":"f03642883f11f8c32351732b2339933b525bbca0","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     david shaughnessy \u003cdavid.shaughnessy@intel.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-11-07 13:53:57 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"https://review.openstack.org/#/c/510628 follow up"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When creating the hybrid firewall helper class the"},{"line_number":10,"context_line":"_remove_conntrack_entries_from_port_deleted function is"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f4b6375_dee0a5fb","line":7,"in_reply_to":"3f4b6375_52a5de01","updated":"2017-11-08 14:18:17.000000000","message":"Done","commit_id":"d59ea52a6e97369cafc4ee42b87cc83e1888f553"}],"neutron/tests/unit/agent/linux/openvswitch_firewall/test_iptables.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"b17187bf1a1f28db4d41df250b352a7f64634479","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        # by _remove_conntrack_entries_from_port_deleted when port is in"},{"line_number":126,"context_line":"        # self.firewall.filtered_ports otherwise it takes no action and"},{"line_number":127,"context_line":"        # returns None IF it has NOT been overloaded correctly."},{"line_number":128,"context_line":"        ip_con.delete_conntrack_state_by_remote_ips.assert_not_called()"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_b27772a0","line":128,"updated":"2017-11-07 14:51:50.000000000","message":"So you\u0027re trying to make sure that when using the OVS hybrid firewall that we don\u0027t call into the base firewall class _remove_conntrack_entries_from_port_deleted() code?  Can\u0027t you just:\n\nwith mock.patch.object(iptables_firewall.IptablesFirewallDriver, \u0027_remove_conntrack_entries_from_port_deleted\u0027) as rcefpd:\n    firewall \u003d iptables.get_iptables_driver_instance()\n    firewall._remove_conntrack_entries_from_port_deleted(None)\n    rcefpd.assert_not_called()\n\nI think if you mock before you instantiate the class that should work.  Then all the rest can go away.","commit_id":"d59ea52a6e97369cafc4ee42b87cc83e1888f553"},{"author":{"_account_id":18051,"name":"David Shaughnessy","email":"david.shaughnessy@intel.com","username":"davidsha"},"change_message_id":"f03642883f11f8c32351732b2339933b525bbca0","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        # by _remove_conntrack_entries_from_port_deleted when port is in"},{"line_number":126,"context_line":"        # self.firewall.filtered_ports otherwise it takes no action and"},{"line_number":127,"context_line":"        # returns None IF it has NOT been overloaded correctly."},{"line_number":128,"context_line":"        ip_con.delete_conntrack_state_by_remote_ips.assert_not_called()"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_7eb9b1ea","line":128,"in_reply_to":"3f4b6375_b27772a0","updated":"2017-11-08 14:18:17.000000000","message":"Done and thanks!","commit_id":"d59ea52a6e97369cafc4ee42b87cc83e1888f553"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"12116290062f269016dad9c61479253aacc727f3","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        self.assertFalse(self.helper.iptables_driver.remove_port_filter.called)"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"class TestHybridIptablesHelper(test.OVSHybridIptablesFirewallTestCase):"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def setUp(self):"},{"line_number":109,"context_line":"        super(TestHybridIptablesHelper, self).setUp()"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_99d47d49","line":106,"range":{"start_line":106,"start_character":31,"end_line":106,"end_character":69},"updated":"2017-11-09 02:41:26.000000000","message":"Do you need to run those additional 4 tests again from the original test? Like test__generate_device_zone ? I don\u0027t think you should test the hacked iptables driver instance but rather have a functional test that validates integration between remove_port_filter in firewall driver and call down to _remove_conntrack_entries_from_port_deleted","commit_id":"cac3f3f9bae907f9bc851487ef9c28486c78b505"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"1f8e6de85022fa19d614be77a43dc4d135a5415c","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        firewall._enabled_netfilter_for_bridges \u003d True"},{"line_number":114,"context_line":"        firewall.ipconntrack \u003d self.firewall.ipconntrack"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"        self.firewall \u003d firewall"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    def test_overloaded_remove_conntrack(self):"},{"line_number":119,"context_line":"        with mock.patch.object(iptables_firewall.IptablesFirewallDriver,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_2410c7a8","line":116,"updated":"2017-11-08 18:35:30.000000000","message":"You don\u0027t need setUp() now right?  Nothing from it is used below.","commit_id":"cac3f3f9bae907f9bc851487ef9c28486c78b505"},{"author":{"_account_id":21781,"name":"Hunt Xu","email":"mhuntxu@gmail.com","username":"huntxu"},"change_message_id":"158533fe171fe4f81afa56fe2a2b1c716fa43ae2","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"class TestHybridIptablesHelper(base.BaseTestCase):"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"    def test_overloaded_remove_conntrack(self):"},{"line_number":108,"context_line":"        with mock.patch.object(iptables_firewall.IptablesFirewallDriver,"},{"line_number":109,"context_line":"                \u0027_remove_conntrack_entries_from_port_deleted\u0027) as rcefpd:"},{"line_number":110,"context_line":"            firewall \u003d iptables.get_iptables_driver_instance()"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f91af0f_f492fd56","line":107,"updated":"2018-01-09 02:14:48.000000000","message":"This test would still fail. Some mocking is needed, at least for \u0027neutron.agent.linux.ip_conntrack.get_conntrack\u0027 (L28 in this file).\n\nSee previous zuul results of openstack-tox-py27 and openstack-tox-py35.","commit_id":"c89d7805c2ab6b7f92f7f2eba28570dc50e4dfb2"}]}
