)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"d72a350147c7fb632e38bbb8e336a46648a83df3","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"In addition to addressing the above the patch also ensure that"},{"line_number":14,"context_line":"the code coverage for the neutron_lib/plugins/directory.py is 100%."},{"line_number":15,"context_line":"Due to the _get_plugin_directory being mocked in the"},{"line_number":16,"context_line":"base.BaseTestCase this was skipping actually testing that code."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: Id5d23f06e5f59fc07b660ef6c23cacf8cde1b999"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"da4df55a_7dd54c1a","line":16,"range":{"start_line":15,"start_character":10,"end_line":16,"end_character":62},"updated":"2016-12-27 14:31:09.000000000","message":"As you now rebased to the patch using the fixture, this method is no longer mocked, so this commit message needs to be updated.","commit_id":"e8fe8421338e68f604daca5dbb9849fb7170be18"}],"neutron_lib/plugins/directory.py":[{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"da9f992341b5e3f4c952ac5df916ab7f649cdfe0","unresolved":false,"context_lines":[{"line_number":63,"context_line":"_PLUGIN_DIRECTORY \u003d None"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"def _reset_plugin_directory():"},{"line_number":67,"context_line":"    global _PLUGIN_DIRECTORY"},{"line_number":68,"context_line":"    _PLUGIN_DIRECTORY \u003d None"},{"line_number":69,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da4df55a_d1f24406","line":66,"updated":"2016-12-21 19:23:40.000000000","message":"Is this just for the UTs; as I don\u0027t see it called elsewhere?\nIf so maybe this is an indication we need a simple fixture for the singleton?","commit_id":"307e7ca2769d52c6b4ad92916e8ef0ac254196f9"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"c3f6207dc069f3a1fe1daa0d30df4c849aca7665","unresolved":false,"context_lines":[{"line_number":63,"context_line":"_PLUGIN_DIRECTORY \u003d None"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"def _reset_plugin_directory():"},{"line_number":67,"context_line":"    global _PLUGIN_DIRECTORY"},{"line_number":68,"context_line":"    _PLUGIN_DIRECTORY \u003d None"},{"line_number":69,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da4df55a_21ab1a76","line":66,"in_reply_to":"da4df55a_d1f24406","updated":"2016-12-22 13:29:59.000000000","message":"Done","commit_id":"307e7ca2769d52c6b4ad92916e8ef0ac254196f9"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"b375d92d3c0f127776e4d0786cc5492e41f1b5d3","unresolved":false,"context_lines":[{"line_number":63,"context_line":"_PLUGIN_DIRECTORY \u003d None"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"def _create_plugin_directory():"},{"line_number":67,"context_line":"    return _PluginDirectory()"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"da4df55a_3b3c1e93","line":66,"updated":"2016-12-22 16:47:23.000000000","message":"Double locking here doesn\u0027t seem necessary, but if you do want to add it then you should not move the synchronized from here but add a if PLUGIN_DIRECTORY is None  before returning a new instance.","commit_id":"60294d3696d62e72618743aca42f5a0f37dd1cf3"}],"neutron_lib/tests/unit/plugins/test_directory.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"b375d92d3c0f127776e4d0786cc5492e41f1b5d3","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        self.assertIsNotNone(directory._get_plugin_directory())"},{"line_number":36,"context_line":"        self.assertIsNotNone(directory._PLUGIN_DIRECTORY)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    @mock.patch.object(directory, \u0027_create_plugin_directory\u0027,"},{"line_number":39,"context_line":"                       return_value\u003d\u0027fake_plugin\u0027)"},{"line_number":40,"context_line":"    def test__get_plugin_directory_subsequent(self, mock_create):"},{"line_number":41,"context_line":"        self.assertIsNotNone(directory._get_plugin_directory())"}],"source_content_type":"text/x-python","patch_set":2,"id":"da4df55a_bb6f2e91","line":38,"updated":"2016-12-22 16:47:23.000000000","message":"Perhaps it\u0027s wiser to wait for the fixture [1] to land.\n\n[1] https://review.openstack.org/#/c/411997","commit_id":"60294d3696d62e72618743aca42f5a0f37dd1cf3"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"d72a350147c7fb632e38bbb8e336a46648a83df3","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def setUp(self):"},{"line_number":27,"context_line":"        super(DirectoryTestCase, self).setUp()"},{"line_number":28,"context_line":"        directory._PLUGIN_DIRECTORY \u003d None"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    def test__create_plugin_directory(self):"},{"line_number":31,"context_line":"        self.assertIsNotNone(directory._create_plugin_directory())"}],"source_content_type":"text/x-python","patch_set":4,"id":"da4df55a_5dd7a8ec","line":28,"updated":"2016-12-27 14:31:09.000000000","message":"By doing so, you may make this test interfere with other test-cases that do not use the plugin directory fixture (because they do not inherit from the base test case), thus leading to potential intermittent failures. I am not sure the extra 5% coverage is worth the risk.","commit_id":"e8fe8421338e68f604daca5dbb9849fb7170be18"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"a09f8852fbf41b0dc001987a67049c8a5eee1ec3","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def setUp(self):"},{"line_number":27,"context_line":"        super(DirectoryTestCase, self).setUp()"},{"line_number":28,"context_line":"        directory._PLUGIN_DIRECTORY \u003d None"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    def test__create_plugin_directory(self):"},{"line_number":31,"context_line":"        self.assertIsNotNone(directory._create_plugin_directory())"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba5201f7_13f84e7c","line":28,"in_reply_to":"da4df55a_5dd7a8ec","updated":"2016-12-29 08:22:36.000000000","message":"the idea was to validate subsequent calls. we can drop this","commit_id":"e8fe8421338e68f604daca5dbb9849fb7170be18"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"d72a350147c7fb632e38bbb8e336a46648a83df3","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        original_create \u003d directory._create_plugin_directory"},{"line_number":47,"context_line":"        self._create_called \u003d 0"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        # We mock the create with the original methond to ensure that"},{"line_number":50,"context_line":"        # _PLUGIN_DIRECTORY is set"},{"line_number":51,"context_line":"        def mock__create_plugin_directory():"},{"line_number":52,"context_line":"            self._create_called +\u003d 1"}],"source_content_type":"text/x-python","patch_set":4,"id":"da4df55a_7dd2ac5d","line":49,"updated":"2016-12-27 14:31:09.000000000","message":"typo.","commit_id":"e8fe8421338e68f604daca5dbb9849fb7170be18"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"a09f8852fbf41b0dc001987a67049c8a5eee1ec3","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        original_create \u003d directory._create_plugin_directory"},{"line_number":47,"context_line":"        self._create_called \u003d 0"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        # We mock the create with the original methond to ensure that"},{"line_number":50,"context_line":"        # _PLUGIN_DIRECTORY is set"},{"line_number":51,"context_line":"        def mock__create_plugin_directory():"},{"line_number":52,"context_line":"            self._create_called +\u003d 1"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba5201f7_53f2d69b","line":49,"in_reply_to":"da4df55a_7dd2ac5d","updated":"2016-12-29 08:22:36.000000000","message":"Done","commit_id":"e8fe8421338e68f604daca5dbb9849fb7170be18"}]}
