)]}'
{"neutron/tests/functional/agent/linux/test_iptables_manager.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"a2766fc188c0dc6c2829ff9f03cfb5a9aaad4b3e","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    def setUp(self):"},{"line_number":23,"context_line":"        super(TestIptablesManager, self).setUp()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"        self._namespace \u003d self.get_rand_name(max_length\u003d16)"},{"line_number":26,"context_line":"        self.ipwrapper \u003d IPWrapper(root_helper\u003dself.root_helper)"},{"line_number":27,"context_line":"        self.ipwrapper.ensure_namespace(self._namespace)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_f9d80a54","line":24,"updated":"2014-06-26 08:15:30.000000000","message":"please check prerequisites as other tests do.\neg. self.check_sudo_enabled()","commit_id":"ebd7ad17b0b993e70c3a82b1de8878dbae7f3737"},{"author":{"_account_id":11347,"name":"Rui Zang","email":"rui.zang@yandex.com","username":"rzang"},"change_message_id":"62f2cefe59e493eadd13a2be8e9c70ac59c39a52","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    def setUp(self):"},{"line_number":23,"context_line":"        super(TestIptablesManager, self).setUp()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"        self._namespace \u003d self.get_rand_name(max_length\u003d16)"},{"line_number":26,"context_line":"        self.ipwrapper \u003d IPWrapper(root_helper\u003dself.root_helper)"},{"line_number":27,"context_line":"        self.ipwrapper.ensure_namespace(self._namespace)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_3d45fd6e","line":24,"in_reply_to":"1ae5cdf2_f9d80a54","updated":"2014-06-26 08:56:18.000000000","message":"Done.","commit_id":"ebd7ad17b0b993e70c3a82b1de8878dbae7f3737"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"2ff9c56183d4d399942ad93459ae59d2afcb40e3","unresolved":false,"context_lines":[{"line_number":23,"context_line":"        super(TestIptablesManager, self).setUp()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"        self._check_test_requirements()"},{"line_number":26,"context_line":"        self._namespace \u003d self.get_rand_name(max_length\u003d16)"},{"line_number":27,"context_line":"        self.ipwrapper \u003d ip_lib.IPWrapper(root_helper\u003dself.root_helper)"},{"line_number":28,"context_line":"        self.ipwrapper.ensure_namespace(self._namespace)"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_8a994021","line":26,"updated":"2014-06-27 07:28:00.000000000","message":"It would be clear to add prefix, something like neutron_function_test_.\nthe name of netns is just file system path name, so there is no limitation like network device name.","commit_id":"70c527219876880bc2270c72ed1126b53e22f26b"},{"author":{"_account_id":11347,"name":"Rui Zang","email":"rui.zang@yandex.com","username":"rzang"},"change_message_id":"848c52ddc7b3a76e9c9f09bc17821e3a2b68b8e8","unresolved":false,"context_lines":[{"line_number":23,"context_line":"        super(TestIptablesManager, self).setUp()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"        self._check_test_requirements()"},{"line_number":26,"context_line":"        self._namespace \u003d self.get_rand_name(max_length\u003d16)"},{"line_number":27,"context_line":"        self.ipwrapper \u003d ip_lib.IPWrapper(root_helper\u003dself.root_helper)"},{"line_number":28,"context_line":"        self.ipwrapper.ensure_namespace(self._namespace)"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_cd0fe2de","line":26,"in_reply_to":"1ae5cdf2_8a994021","updated":"2014-06-27 07:43:01.000000000","message":"Done","commit_id":"70c527219876880bc2270c72ed1126b53e22f26b"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"af635c67d34e482e39bdb7c920dd5f2d844309e9","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        self._check_test_requirements()"},{"line_number":26,"context_line":"        self._namespace \u003d self.get_rand_name(max_length\u003d32,"},{"line_number":27,"context_line":"                                             prefix\u003d\u0027neutron_functional_test\u0027)"},{"line_number":28,"context_line":"        self.ipwrapper \u003d ip_lib.IPWrapper(root_helper\u003dself.root_helper)"},{"line_number":29,"context_line":"        self.ipwrapper.ensure_namespace(self._namespace)"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"        self.addCleanup(self._cleanup_namespace)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_0e0fb12f","line":28,"updated":"2014-08-25 12:35:05.000000000","message":"Is there a reason to define ipwrapper and _cleanup_namespace on the class rather than as method-local?  I don\u0027t see them used anywhere else.","commit_id":"de76c2f2f2a6f1671d754a95301fbfe5cfb6165a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"af635c67d34e482e39bdb7c920dd5f2d844309e9","unresolved":false,"context_lines":[{"line_number":37,"context_line":"        self.check_command([\u0027which\u0027, \u0027iptables\u0027],"},{"line_number":38,"context_line":"                           \u0027Exit code: 1\u0027, \u0027iptables is not installed\u0027)"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def test_iptables_manager(self):"},{"line_number":41,"context_line":"        \"\"\"Test iptables default chains"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"           This function test the default chains created by"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_6b301708","line":40,"updated":"2014-08-25 12:35:05.000000000","message":"This test doesn\u0027t actually validate a result, only that it completes without error.  I would expect a baseline functional test for IptablesManager to test that a rule (filtering, nat, etc) could be applied and that the rule application was successful (traffic was filtered, allowed, nat\u0027d, etc).","commit_id":"de76c2f2f2a6f1671d754a95301fbfe5cfb6165a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"3c2bbcc6a47b46e91c697b257387590477463ca8","unresolved":false,"context_lines":[{"line_number":37,"context_line":"        self.check_command([\u0027which\u0027, \u0027iptables\u0027],"},{"line_number":38,"context_line":"                           \u0027Exit code: 1\u0027, \u0027iptables is not installed\u0027)"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def test_iptables_manager(self):"},{"line_number":41,"context_line":"        \"\"\"Test iptables default chains"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"           This function test the default chains created by"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa98f980_df354047","line":40,"in_reply_to":"1abeadc6_1aa946df","updated":"2014-09-01 15:18:27.000000000","message":"I think we need to both validate that rules appear to be correctly applied and that the result is as we expect.  I\u0027ve linked to a review that does a simple check of actual filtering.","commit_id":"de76c2f2f2a6f1671d754a95301fbfe5cfb6165a"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"259222a041c008efb7c222a984e3071a2c29aa9a","unresolved":false,"context_lines":[{"line_number":37,"context_line":"        self.check_command([\u0027which\u0027, \u0027iptables\u0027],"},{"line_number":38,"context_line":"                           \u0027Exit code: 1\u0027, \u0027iptables is not installed\u0027)"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def test_iptables_manager(self):"},{"line_number":41,"context_line":"        \"\"\"Test iptables default chains"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"           This function test the default chains created by"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_1aa946df","line":40,"in_reply_to":"1abeadc6_6b301708","updated":"2014-08-27 14:01:37.000000000","message":"I agree that this should verify, but testing the rule on traffic seems complex. What do you think about verifying just that the rule is installed in iptables by checking the output of iptables-save or something similar?","commit_id":"de76c2f2f2a6f1671d754a95301fbfe5cfb6165a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"af635c67d34e482e39bdb7c920dd5f2d844309e9","unresolved":false,"context_lines":[{"line_number":46,"context_line":"           fails."},{"line_number":47,"context_line":"        \"\"\""},{"line_number":48,"context_line":"        mgr \u003d iptables_manager.IptablesManager(root_helper\u003dself.root_helper,"},{"line_number":49,"context_line":"                              namespace\u003dself._namespace,"},{"line_number":50,"context_line":"                              binary_name\u003d__name__)"},{"line_number":51,"context_line":"        mgr.apply()"},{"line_number":52,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_eb0a6726","line":49,"updated":"2014-08-25 12:35:05.000000000","message":"PEP8: vertical alignment","commit_id":"de76c2f2f2a6f1671d754a95301fbfe5cfb6165a"}]}
