)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"4ef60d177d725131341f4b9dc54799317dc12f53","unresolved":false,"context_lines":[{"line_number":10,"context_line":"2. Currently neutron client creation attributes can not be used from"},{"line_number":11,"context_line":"config file. Reason is neutron client gets created even before config"},{"line_number":12,"context_line":"file is used while starting kuryr server."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I9c772ae67496ef7e7ac8be2b9a6ec1eb80b4e6f2"},{"line_number":15,"context_line":"Closes-bug: #1589861"},{"line_number":16,"context_line":"Closes-bug: #1593917"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"5a9d85d2_a1be26d2","line":13,"updated":"2016-06-19 06:37:32.000000000","message":"Commit message looks more like the problem description instead of the patch summary","commit_id":"9ffa695fe586765367a02757cfd7bc90f8340c34"}],"kuryr/controllers.py":[{"author":{"_account_id":9820,"name":"Liping Mao","email":"limao@cisco.com","username":"LipingMao"},"change_message_id":"ffb386e40a66b303b9f03ef29527b54d08b52de5","unresolved":false,"context_lines":[{"line_number":1012,"context_line":"    app.logger.debug(\"Received JSON data %s for /IpamDriver.RequestPool\","},{"line_number":1013,"context_line":"                     json_data)"},{"line_number":1014,"context_line":"    jsonschema.validate(json_data, schemata.REQUEST_POOL_SCHEMA)"},{"line_number":1015,"context_line":"    if not hasattr(app, \u0027neutron_first_interx\u0027):"},{"line_number":1016,"context_line":"        app.neutron_first_interx \u003d True"},{"line_number":1017,"context_line":"        check_for_neutron_ext_support()"},{"line_number":1018,"context_line":"        check_for_neutron_ext_tag()"}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_d1859fad","line":1015,"range":{"start_line":1015,"start_character":25,"end_line":1015,"end_character":45},"updated":"2016-06-07 09:40:28.000000000","message":"Hi, Can we check hasattr(app, \u0027tag\u0027), but not use a new item?","commit_id":"fd1a13b1bc8268c01d65a310e694673d54ea0be9"},{"author":{"_account_id":9820,"name":"Liping Mao","email":"limao@cisco.com","username":"LipingMao"},"change_message_id":"ffb386e40a66b303b9f03ef29527b54d08b52de5","unresolved":false,"context_lines":[{"line_number":1014,"context_line":"    jsonschema.validate(json_data, schemata.REQUEST_POOL_SCHEMA)"},{"line_number":1015,"context_line":"    if not hasattr(app, \u0027neutron_first_interx\u0027):"},{"line_number":1016,"context_line":"        app.neutron_first_interx \u003d True"},{"line_number":1017,"context_line":"        check_for_neutron_ext_support()"},{"line_number":1018,"context_line":"        check_for_neutron_ext_tag()"},{"line_number":1019,"context_line":"    requested_pool \u003d json_data[\u0027Pool\u0027]"},{"line_number":1020,"context_line":"    requested_subpool \u003d json_data[\u0027SubPool\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_51352ff5","line":1017,"range":{"start_line":1017,"start_character":8,"end_line":1017,"end_character":37},"updated":"2016-06-07 09:40:28.000000000","message":"I think that we should leave check_for_neutron_ext_support in start up. If neutron not support subnet pool, kuryr can not work.","commit_id":"fd1a13b1bc8268c01d65a310e694673d54ea0be9"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"9335b5418dc5346c8fd02225755dc647a4b54e07","unresolved":false,"context_lines":[{"line_number":108,"context_line":""},{"line_number":109,"context_line":"def neutron_client():"},{"line_number":110,"context_line":"    if not hasattr(app, \u0027neutron\u0027):"},{"line_number":111,"context_line":"        app.neutron \u003d get_neutron_client()"},{"line_number":112,"context_line":"        app.enable_dhcp \u003d cfg.CONF.neutron_client.enable_dhcp"},{"line_number":113,"context_line":"        app.neutron.format \u003d \u0027json\u0027"},{"line_number":114,"context_line":"        check_for_neutron_ext_support()"}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_12efa81e","line":111,"updated":"2016-06-26 10:37:52.000000000","message":"Please add TODO to address the case of required reconnect","commit_id":"70a53f2e9fbbb0301db8cff0760fefd39682d1d7"},{"author":{"_account_id":15967,"name":"vikas choudhary","email":"choudharyvikas16@gmail.com","username":"vikaschoudhary16"},"change_message_id":"c570069e70d700a9fbf792c37206d6c12831943a","unresolved":false,"context_lines":[{"line_number":108,"context_line":""},{"line_number":109,"context_line":"def neutron_client():"},{"line_number":110,"context_line":"    if not hasattr(app, \u0027neutron\u0027):"},{"line_number":111,"context_line":"        app.neutron \u003d get_neutron_client()"},{"line_number":112,"context_line":"        app.enable_dhcp \u003d cfg.CONF.neutron_client.enable_dhcp"},{"line_number":113,"context_line":"        app.neutron.format \u003d \u0027json\u0027"},{"line_number":114,"context_line":"        check_for_neutron_ext_support()"}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_a4df6bd4","line":111,"in_reply_to":"3aaa91ec_12efa81e","updated":"2016-06-27 07:47:00.000000000","message":"Done","commit_id":"70a53f2e9fbbb0301db8cff0760fefd39682d1d7"}],"kuryr/tests/unit/test_kuryr_ipam.py":[{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"9335b5418dc5346c8fd02225755dc647a4b54e07","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        self.assertEqual(expected, decoded_json)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def test_ipam_driver_request_pool_init_neutron_client(self):"},{"line_number":58,"context_line":"        if hasattr(app, \u0027neutron\u0027):"},{"line_number":59,"context_line":"            del app.neutron"},{"line_number":60,"context_line":"        self.assertFalse(hasattr(app, \"neutron\"))"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        fake_request \u003d {"},{"line_number":63,"context_line":"            \u0027AddressSpace\u0027: \u0027\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_52f5b0ea","line":60,"range":{"start_line":58,"start_character":8,"end_line":60,"end_character":49},"updated":"2016-06-26 10:37:52.000000000","message":"Why not add SetUp/TearDown to handle the common pats of the tests? this code is duplicated in the next  test as well as the check on line 72 and 87","commit_id":"70a53f2e9fbbb0301db8cff0760fefd39682d1d7"},{"author":{"_account_id":15967,"name":"vikas choudhary","email":"choudharyvikas16@gmail.com","username":"vikaschoudhary16"},"change_message_id":"c570069e70d700a9fbf792c37206d6c12831943a","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        self.assertEqual(expected, decoded_json)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def test_ipam_driver_request_pool_init_neutron_client(self):"},{"line_number":58,"context_line":"        if hasattr(app, \u0027neutron\u0027):"},{"line_number":59,"context_line":"            del app.neutron"},{"line_number":60,"context_line":"        self.assertFalse(hasattr(app, \"neutron\"))"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        fake_request \u003d {"},{"line_number":63,"context_line":"            \u0027AddressSpace\u0027: \u0027\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_64d903f3","line":60,"range":{"start_line":58,"start_character":8,"end_line":60,"end_character":49},"in_reply_to":"3aaa91ec_52f5b0ea","updated":"2016-06-27 07:47:00.000000000","message":"This Class has 11 test methods, this common part is applicable to only two of them as you mentioned. Therefore it cannot be added to setup. \n\nOr If you still insist on using setup and teardown, a new class will have to be created for these two methods. Please suggest if that is what you will prefer.","commit_id":"70a53f2e9fbbb0301db8cff0760fefd39682d1d7"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"d4ad14a70dc0b618c62238dc9ca40c85d67e091e","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        self.assertEqual(expected, decoded_json)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def test_ipam_driver_request_pool_init_neutron_client(self):"},{"line_number":58,"context_line":"        if hasattr(app, \u0027neutron\u0027):"},{"line_number":59,"context_line":"            del app.neutron"},{"line_number":60,"context_line":"        self.assertFalse(hasattr(app, \"neutron\"))"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        fake_request \u003d {"},{"line_number":63,"context_line":"            \u0027AddressSpace\u0027: \u0027\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_070e37e4","line":60,"range":{"start_line":58,"start_character":8,"end_line":60,"end_character":49},"in_reply_to":"3aaa91ec_64d903f3","updated":"2016-06-27 10:16:01.000000000","message":"I would prefer having more dedicated test classes, but basically try to reduce code duplications. Alternatively, you may consider to use @property for neutron client and then single test will be enough. anyway, it\u0027s just a suggestion, so can be left for the further improvement.","commit_id":"70a53f2e9fbbb0301db8cff0760fefd39682d1d7"}]}
