)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"9b625af389088b1c512440a55415c593b43859d7","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Call config_parse in base test setup"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Some of the tests (e.g. NeutronDbPluginV2AsMixinTestCase) do not call"},{"line_number":10,"context_line":"config_parse so if the database engine is not already been setup by another"},{"line_number":11,"context_line":"test before the config object is reset on teardown, the database connection"},{"line_number":12,"context_line":"will fail since the database config is then empty. This patch adds a"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"baada198_218ddf31","line":9,"updated":"2014-07-25 01:20:45.000000000","message":"I\u0027m sad to learn that every single test is intended to parse configuration, but better to have it happen explicitly than have dependencies between tests as is the case without this patch. \n\nNote to other reviewers:\n\nEvery test extending from BaseTestCase has a cleanup that calls conf.RESET, and if the db has not yet been configured subsequent tests need to ensure that they parse the config again so that the configuration necessary for db configuration is present.","commit_id":"d659873f0ec0b8534471d2a3befcbc11eb05914f"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"eaa3930a147392e73c073f811490568505878bcb","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Call config_parse in base test setup"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Some of the tests (e.g. NeutronDbPluginV2AsMixinTestCase) do not call"},{"line_number":10,"context_line":"config_parse so if the database engine is not already been setup by another"},{"line_number":11,"context_line":"test before the config object is reset on teardown, the database connection"},{"line_number":12,"context_line":"will fail since the database config is then empty. This patch adds a"},{"line_number":13,"context_line":"config_parse call to the base setUp method to ensure the config object is"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"baada198_4140135f","line":10,"updated":"2014-07-25 01:44:34.000000000","message":"idle curiosity, did you trace back when this regression occurred? I have actually experienced this myself, for instance with the vmware tests, but that didn\u0027t use to happen. I meant to file a fix but Kevin beat me to it! Nice one :)","commit_id":"d659873f0ec0b8534471d2a3befcbc11eb05914f"}],"neutron/tests/base.py":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"7f99511d0ff89a2267be141ab44f7ee79c410979","unresolved":false,"context_lines":[{"line_number":112,"context_line":"        super(BaseTestCase, self).setUp()"},{"line_number":113,"context_line":"        # Ensure a default config is available for tests that don\u0027t setup a"},{"line_number":114,"context_line":"        # custom configuration."},{"line_number":115,"context_line":"        self.config_parse()"},{"line_number":116,"context_line":"        # Ensure plugin cleanup is triggered last so that"},{"line_number":117,"context_line":"        # test-specific cleanup has a chance to release references."},{"line_number":118,"context_line":"        self.addCleanup(self.cleanup_core_plugin)"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_25d8f5ef","line":115,"updated":"2014-07-22 21:36:06.000000000","message":"This causes ArgsAlreadyParsed errors in many unit tests.","commit_id":"4f60b3d63aa64b3114c7710024d7454fb52c1e16"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"8c37e5cef32f775a98fd9dc3265fa8696bc9d9c2","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"class BaseTestCase(testtools.TestCase):"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    USE_DEFAULT_CONFIG \u003d True"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def cleanup_core_plugin(self):"},{"line_number":67,"context_line":"        \"\"\"Ensure that the core plugin is deallocated.\"\"\""}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_5b4fd38b","line":64,"updated":"2014-07-28 13:54:52.000000000","message":"Instead of using a flag, would it make sense to handle this with inheritance?\n\n    class BaseTestCaseNoDefaultConfig(testtools.TestCase):\n        ...\n        def cleanup_core_plugin(self):\n            ...\n\n    class BaseTestCase(BaseTestCaseNoDefaultConfig):\n        def cleanup_core_plugin(self):\n            super(BaseTestCase, self).cleanup_core_plugin()\n            self.config_parse()","commit_id":"d659873f0ec0b8534471d2a3befcbc11eb05914f"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"bae623e72800f37e07c5ecf73c327f76767015ff","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"class BaseTestCase(testtools.TestCase):"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    USE_DEFAULT_CONFIG \u003d True"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def cleanup_core_plugin(self):"},{"line_number":67,"context_line":"        \"\"\"Ensure that the core plugin is deallocated.\"\"\""}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_defca741","line":64,"in_reply_to":"baada198_5b4fd38b","updated":"2014-07-28 18:26:58.000000000","message":"That\u0027s not the right order. cleanup_core_plugin occurs after the test runs. There would be no way to have a custom config setup for the test that is running indicated in its cleanup_core_plugin method.","commit_id":"d659873f0ec0b8534471d2a3befcbc11eb05914f"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"091ea81419c7a5b30a8c13e36156d48a2c674f2d","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"class BaseTestCase(testtools.TestCase):"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    USE_DEFAULT_CONFIG \u003d True"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def cleanup_core_plugin(self):"},{"line_number":67,"context_line":"        \"\"\"Ensure that the core plugin is deallocated.\"\"\""}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_84e3c0d6","line":64,"in_reply_to":"baada198_defca741","updated":"2014-07-28 19:20:19.000000000","message":"whoops, meant setUp() and not cleanup_core_plugin().  Just suggesting to use inheritance to handle the selection vs a class variable and if condition.\n\nOn IRC you mentioned having an override function. That would be even better...\n\n    class BaseTestCase(testtools.TestCase):\n        def setUp(...):\n            ...\n            self.config_parse()\n\n    class BaseTestCaseNoDefaultConfig(BaseTestCase):\n        def self.config_parse(self):\n            pass","commit_id":"d659873f0ec0b8534471d2a3befcbc11eb05914f"}],"neutron/tests/unit/ofagent/test_ofa_neutron_agent.py":[{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"e9ce54268afa3f04988c178d1aa0492d2f7dba5b","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    USE_DEFAULT_CONFIG \u003d False"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def setUp(self):"},{"line_number":55,"context_line":"        super(OFAAgentTestCase, self).setUp()"},{"line_number":56,"context_line":"        self.fake_oflib_of \u003d fake_oflib.patch_fake_oflib_of().start()"},{"line_number":57,"context_line":"        self.mod_agent \u003d importutils.import_module(self._AGENT_NAME)"},{"line_number":58,"context_line":"        cfg.CONF.set_default(\u0027firewall_driver\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_ad55c41f","line":55,"updated":"2014-07-23 04:38:32.000000000","message":"I guess you set USE_DEFAULT_CONFIG \u003d False is because some where after here something calls:  self.config_parse()? I wonder if it\u0027s safe to call it twice so we can remove the extra complexity of USE_DEFAULT_CONFIG","commit_id":"d659873f0ec0b8534471d2a3befcbc11eb05914f"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"6ba38ba63839bf55fbb34a3474373c5b7f4a5675","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    USE_DEFAULT_CONFIG \u003d False"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def setUp(self):"},{"line_number":55,"context_line":"        super(OFAAgentTestCase, self).setUp()"},{"line_number":56,"context_line":"        self.fake_oflib_of \u003d fake_oflib.patch_fake_oflib_of().start()"},{"line_number":57,"context_line":"        self.mod_agent \u003d importutils.import_module(self._AGENT_NAME)"},{"line_number":58,"context_line":"        cfg.CONF.set_default(\u0027firewall_driver\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_1694d0e6","line":55,"in_reply_to":"baada198_ad55c41f","updated":"2014-07-23 23:16:58.000000000","message":"The config manager gets mad if you try to register options for the same section twice.","commit_id":"d659873f0ec0b8534471d2a3befcbc11eb05914f"}],"neutron/tests/unit/test_dhcp_agent.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"eaa3930a147392e73c073f811490568505878bcb","unresolved":false,"context_lines":[{"line_number":645,"context_line":"    def test_enable_isolated_metadata_proxy_with_metadata_network(self):"},{"line_number":646,"context_line":"        cfg.CONF.set_override(\u0027enable_metadata_network\u0027, True)"},{"line_number":647,"context_line":"        cfg.CONF.set_override(\u0027debug\u0027, True)"},{"line_number":648,"context_line":"        cfg.CONF.set_override(\u0027verbose\u0027, False)"},{"line_number":649,"context_line":"        cfg.CONF.set_override(\u0027log_file\u0027, \u0027test.log\u0027)"},{"line_number":650,"context_line":"        class_path \u003d \u0027neutron.agent.linux.ip_lib.IPWrapper\u0027"},{"line_number":651,"context_line":"        self.external_process_p.stop()"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_4169f3f6","line":648,"updated":"2014-07-25 01:44:34.000000000","message":"why is this change here? I am fine with it, but maybe make a note in the commit message?","commit_id":"d659873f0ec0b8534471d2a3befcbc11eb05914f"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"64c802765a1a06a8df72a3316fc3b6f3da1326c2","unresolved":false,"context_lines":[{"line_number":645,"context_line":"    def test_enable_isolated_metadata_proxy_with_metadata_network(self):"},{"line_number":646,"context_line":"        cfg.CONF.set_override(\u0027enable_metadata_network\u0027, True)"},{"line_number":647,"context_line":"        cfg.CONF.set_override(\u0027debug\u0027, True)"},{"line_number":648,"context_line":"        cfg.CONF.set_override(\u0027verbose\u0027, False)"},{"line_number":649,"context_line":"        cfg.CONF.set_override(\u0027log_file\u0027, \u0027test.log\u0027)"},{"line_number":650,"context_line":"        class_path \u003d \u0027neutron.agent.linux.ip_lib.IPWrapper\u0027"},{"line_number":651,"context_line":"        self.external_process_p.stop()"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_a240cda2","line":648,"in_reply_to":"baada198_4169f3f6","updated":"2014-07-28 09:15:11.000000000","message":"Oh, it was either do this or have this one not use the default config. I figured it was better to adjust the ones that only required a small change to use the default config as well.","commit_id":"d659873f0ec0b8534471d2a3befcbc11eb05914f"}],"neutron/tests/unit/test_l3_agent.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"eaa3930a147392e73c073f811490568505878bcb","unresolved":false,"context_lines":[{"line_number":1470,"context_line":"            \u0027interface_driver\u0027, \u0027neutron.agent.linux.interface.NullDriver\u0027"},{"line_number":1471,"context_line":"        )"},{"line_number":1472,"context_line":"        cfg.CONF.set_override(\u0027use_namespaces\u0027, True)"},{"line_number":1473,"context_line":"        cfg.CONF.set_override(\u0027verbose\u0027, False)"},{"line_number":1474,"context_line":"        agent_config.register_root_helper(cfg.CONF)"},{"line_number":1475,"context_line":""},{"line_number":1476,"context_line":"        device_exists_p \u003d mock.patch("}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_616ef701","line":1473,"updated":"2014-07-25 01:44:34.000000000","message":"ditto","commit_id":"d659873f0ec0b8534471d2a3befcbc11eb05914f"}]}
