)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b3a5bc5ccca88be45bb270437a346b75f78b2384","unresolved":false,"context_lines":[{"line_number":22,"context_line":"instead of httpretty."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Change-Id: I8badc249ad021fdbdb2367b5416c72435ed58994"},{"line_number":25,"context_line":"Closes-Bug: 1335977,1326785"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"baada198_6e4a6927","line":25,"updated":"2014-07-03 17:51:23.000000000","message":"I think these two bugs might need to be on separate lines just to make all of the automation and hyper-linking happy.  i.e.\n\nCloses-Bug: 1335977\n\nCloses-Bug: 1326785","commit_id":"34b39458162e43e5fc3c6c4346413d75f042bbd8"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"9738b9de5368bb72651c397f31907a47e9a9e85d","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This fixes the files, so that they can still be used manually (by"},{"line_number":15,"context_line":"locally importing httmock or its source file, and renaming the"},{"line_number":16,"context_line":"module to remove the \"no\" prefix)."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"In the long term, the UT needs to be reworked to use httpretty,"},{"line_number":19,"context_line":"which uses a register based mechanism, instead of a context"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"baada198_71c14153","line":16,"updated":"2014-07-04 23:33:42.000000000","message":"in the past we used to put an underscore in front of test modules which were not supposed to be run.\nI would like to keep the same \"unofficial\" convention, if you agreed.","commit_id":"eebfd3ac5d021c16f9c38d772973ed312b9eafd0"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"0320316bdc63cc2039b92d7f575a45cfc3412c14","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This fixes the files, so that they can still be used manually (by"},{"line_number":15,"context_line":"locally importing httmock or its source file, and renaming the"},{"line_number":16,"context_line":"module to remove the \"no\" prefix)."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"In the long term, the UT needs to be reworked to use httpretty,"},{"line_number":19,"context_line":"which uses a register based mechanism, instead of a context"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"baada198_64997ac3","line":16,"in_reply_to":"baada198_71c14153","updated":"2014-07-06 13:32:01.000000000","message":"Sure, I can rename it to change the no to an underscore. Didn\u0027t know of the convention.","commit_id":"eebfd3ac5d021c16f9c38d772973ed312b9eafd0"}],"neutron/tests/unit/services/vpn/device_drivers/_test_cisco_csr_rest.py":[{"author":{"_account_id":1849,"name":"Joe Gordon","email":"joe.gordon0@gmail.com","username":"jogo"},"change_message_id":"9c7a30a76325c8be0acdb0587d293a183e6872e9","unresolved":false,"context_lines":[{"line_number":28,"context_line":"try:"},{"line_number":29,"context_line":"    import httmock"},{"line_number":30,"context_line":"except (NameError, ImportError):"},{"line_number":31,"context_line":"    exit()"},{"line_number":32,"context_line":"import requests"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"from neutron.openstack.common import log as logging"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_c45fd10d","line":31,"updated":"2014-07-11 17:56:29.000000000","message":"so this just broke the neutron world.\n\nAny code that tries to import this file will just die. including flake8 and test  runners.","commit_id":"7f0a8f09ab7867100081a898347a5f901e5a442b"}],"neutron/tests/unit/services/vpn/device_drivers/cisco_csr_mock.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"626842af51c9b4c6bf59b499424071ea8ecbb94f","unresolved":false,"context_lines":[{"line_number":32,"context_line":"from requests import exceptions as r_exc"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":35,"context_line":"from neutron.tests.unit.services.vpn.device_drivers import httmock"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_def7238b","line":35,"updated":"2014-07-01 00:32:02.000000000","message":"Need to comment this out for normal PEP8 runs. Will fix in next patch.","commit_id":"7b118ba0219c239f9166a4fe45947329d59a0117"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"67695daa9c77f880f6dfa8553e1734bfd6e79d3e","unresolved":false,"context_lines":[{"line_number":30,"context_line":"import functools"},{"line_number":31,"context_line":"try:"},{"line_number":32,"context_line":"    import httmock"},{"line_number":33,"context_line":"except NameError:"},{"line_number":34,"context_line":"    exit"},{"line_number":35,"context_line":"import requests"},{"line_number":36,"context_line":"from requests import exceptions as r_exc"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_29e37908","line":33,"updated":"2014-07-01 11:53:28.000000000","message":"This raises an ImportError on my system. Maybe catch both?","commit_id":"f63d69f9feabd12202c00cd318cfed5061ee36f1"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"658854f902473a59c06354cf1a29b4fd2ed3fc45","unresolved":false,"context_lines":[{"line_number":30,"context_line":"import functools"},{"line_number":31,"context_line":"try:"},{"line_number":32,"context_line":"    import httmock"},{"line_number":33,"context_line":"except NameError:"},{"line_number":34,"context_line":"    exit"},{"line_number":35,"context_line":"import requests"},{"line_number":36,"context_line":"from requests import exceptions as r_exc"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_f15fa370","line":33,"in_reply_to":"baada198_29e37908","updated":"2014-07-01 13:22:18.000000000","message":"Good idea. will do.","commit_id":"f63d69f9feabd12202c00cd318cfed5061ee36f1"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"67695daa9c77f880f6dfa8553e1734bfd6e79d3e","unresolved":false,"context_lines":[{"line_number":31,"context_line":"try:"},{"line_number":32,"context_line":"    import httmock"},{"line_number":33,"context_line":"except NameError:"},{"line_number":34,"context_line":"    exit"},{"line_number":35,"context_line":"import requests"},{"line_number":36,"context_line":"from requests import exceptions as r_exc"},{"line_number":37,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_89f1e5cf","line":34,"updated":"2014-07-01 11:53:28.000000000","message":"That\u0027s just a bare function pointer. Did you mean exit()?","commit_id":"f63d69f9feabd12202c00cd318cfed5061ee36f1"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"658854f902473a59c06354cf1a29b4fd2ed3fc45","unresolved":false,"context_lines":[{"line_number":31,"context_line":"try:"},{"line_number":32,"context_line":"    import httmock"},{"line_number":33,"context_line":"except NameError:"},{"line_number":34,"context_line":"    exit"},{"line_number":35,"context_line":"import requests"},{"line_number":36,"context_line":"from requests import exceptions as r_exc"},{"line_number":37,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_11541753","line":34,"in_reply_to":"baada198_89f1e5cf","updated":"2014-07-01 13:22:18.000000000","message":"whoops. Thanks!","commit_id":"f63d69f9feabd12202c00cd318cfed5061ee36f1"}],"neutron/tests/unit/services/vpn/device_drivers/notest_cisco_csr_rest.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"626842af51c9b4c6bf59b499424071ea8ecbb94f","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    cisco_csr_rest_client as csr_client)"},{"line_number":33,"context_line":"from neutron.tests import base"},{"line_number":34,"context_line":"from neutron.tests.unit.services.vpn.device_drivers import ("},{"line_number":35,"context_line":"    cisco_csr_mock as csr_request)"},{"line_number":36,"context_line":"from neutron.tests.unit.services.vpn.device_drivers import httmock"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_be034f72","line":35,"updated":"2014-07-01 00:32:02.000000000","message":"Need to comment this out for normal PEP8 runs. Will fix in next patch.","commit_id":"7b118ba0219c239f9166a4fe45947329d59a0117"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"67695daa9c77f880f6dfa8553e1734bfd6e79d3e","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"try:"},{"line_number":29,"context_line":"    import httmock"},{"line_number":30,"context_line":"except NameError:"},{"line_number":31,"context_line":"    exit"},{"line_number":32,"context_line":"import requests"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_09b5d5ed","line":30,"updated":"2014-07-01 11:53:28.000000000","message":"same comments as other file","commit_id":"f63d69f9feabd12202c00cd318cfed5061ee36f1"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"658854f902473a59c06354cf1a29b4fd2ed3fc45","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"try:"},{"line_number":29,"context_line":"    import httmock"},{"line_number":30,"context_line":"except NameError:"},{"line_number":31,"context_line":"    exit"},{"line_number":32,"context_line":"import requests"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_b1f36b72","line":30,"in_reply_to":"baada198_09b5d5ed","updated":"2014-07-01 13:22:18.000000000","message":"That\u0027s what I get for copy and paste :)","commit_id":"f63d69f9feabd12202c00cd318cfed5061ee36f1"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"9738b9de5368bb72651c397f31907a47e9a9e85d","unresolved":false,"context_lines":[{"line_number":37,"context_line":"from neutron.tests import base"},{"line_number":38,"context_line":"from neutron.tests.unit.services.vpn.device_drivers import ("},{"line_number":39,"context_line":"    cisco_csr_mock as csr_request)"},{"line_number":40,"context_line":"# from neutron.tests.unit.services.vpn.device_drivers import httmock"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"LOG \u003d logging.getLogger(__name__)"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_51bc3ddc","line":40,"updated":"2014-07-04 23:33:42.000000000","message":"commented out lines should be avoided","commit_id":"eebfd3ac5d021c16f9c38d772973ed312b9eafd0"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"0320316bdc63cc2039b92d7f575a45cfc3412c14","unresolved":false,"context_lines":[{"line_number":37,"context_line":"from neutron.tests import base"},{"line_number":38,"context_line":"from neutron.tests.unit.services.vpn.device_drivers import ("},{"line_number":39,"context_line":"    cisco_csr_mock as csr_request)"},{"line_number":40,"context_line":"# from neutron.tests.unit.services.vpn.device_drivers import httmock"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"LOG \u003d logging.getLogger(__name__)"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_64e09a29","line":40,"in_reply_to":"baada198_51bc3ddc","updated":"2014-07-06 13:32:01.000000000","message":"I\u0027d like to keep it Salvatore, for two reasons, if that is OK. First it is only temporary, until we rework this module to use the httpretty or requests-mock package. So L28-31, L40 will be replaced with another library.\n\nSecond, because this can only be run locally/manually, people can either add httmock to test-requirements and use the provided import on L29, or they can copy the httmock.py source into the local area and uncomment this line (and comment out L28-32). I tend to do the latter, just cause it is easier. I tried to incorporate this import into the except block of L30, but was unsuccessful.","commit_id":"eebfd3ac5d021c16f9c38d772973ed312b9eafd0"}]}
