)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"d6af426c2f3d539763dec9b672a276ab25e84d00","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Jakub Libosvar \u003clibosvar@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-09 18:11:05 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Introduce Arpinger for testing ARPs"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The arpinger is gonna be used in the next changeset introducing"},{"line_number":10,"context_line":"connection testers."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3afb71cf_6157bf58","line":7,"updated":"2015-06-09 16:23:00.000000000","message":"The change defines assert_(no_)arping :)","commit_id":"a6700ce5db166e716a58f0b79db44a17f01ac081"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"ab718890599500cc7702976ef6218ae4483bdaf4","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Jakub Libosvar \u003clibosvar@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-09 18:11:05 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Introduce Arpinger for testing ARPs"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The arpinger is gonna be used in the next changeset introducing"},{"line_number":10,"context_line":"connection testers."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3afb71cf_970af977","line":7,"in_reply_to":"3afb71cf_6157bf58","updated":"2015-06-09 17:04:14.000000000","message":"Right :)","commit_id":"a6700ce5db166e716a58f0b79db44a17f01ac081"}],"neutron/tests/common/machine_fixtures.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"439b7d585b4376d639a33e94e7e90949161fe586","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":27,"context_line":"class PingerBase(object):"},{"line_number":28,"context_line":"    def __init__(self, namespace, timeout\u003d1, count\u003d1):"},{"line_number":29,"context_line":"        self.namespace \u003d namespace"},{"line_number":30,"context_line":"        self._timeout \u003d timeout"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afb71cf_f945dfb2","line":27,"updated":"2015-06-08 16:13:44.000000000","message":"I agree with Maru[1] that we could remove Pinger and transforms it in methods.\n\n[1] sorry, i fail to find the change with the comment :)","commit_id":"f1e0ff88209d141d6715db3caf69f1352ac716b0"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"4627b0654e2d8d2f30dc3f2f89531d372a4b0246","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":27,"context_line":"class PingerBase(object):"},{"line_number":28,"context_line":"    def __init__(self, namespace, timeout\u003d1, count\u003d1):"},{"line_number":29,"context_line":"        self.namespace \u003d namespace"},{"line_number":30,"context_line":"        self._timeout \u003d timeout"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afb71cf_c08e7bcf","line":27,"in_reply_to":"3afb71cf_4fa87edb","updated":"2015-06-09 12:56:45.000000000","message":"But even if it\u0027s a small class, the actual usage as functions would be less friendly. Example test case: \"I want to test that icmp filter works\"\n\nCurrent implementation:\n\n pinger \u003d Pinger(source_namespace)\n pinger.assert_no_ping(allowed_destination_address)\n pinger.assert_no_ping(not_allowed_destination_address)\n firewall.allow_icmp(allowed_destination_address) # pseudofirewall example\n pinger.assert_ping(allowed_destination_address)\n pinger.assert_no_ping(not_allowed_destination_address)\n\nImplementation with function:\n\n assert_no_ping(source_namespace, allowed_destination_address)\n assert_no_ping(source_namespace, not_allowed_destination_address)\n firewall.allow_icmp(allowed_destination_address) # pseudofirewall example\n assert_ping(source_namespace, allowed_destination_address)\n assert_no_ping(source_namespace, not_allowed_destination_address)\n\nHmm, frankly I don\u0027t care much. But functions are gonna bring more copy\u0026paste\u0027ing of code.","commit_id":"f1e0ff88209d141d6715db3caf69f1352ac716b0"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"2577b0051161c6e43f9320fe0b0aeb3261f12f26","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":27,"context_line":"class PingerBase(object):"},{"line_number":28,"context_line":"    def __init__(self, namespace, timeout\u003d1, count\u003d1):"},{"line_number":29,"context_line":"        self.namespace \u003d namespace"},{"line_number":30,"context_line":"        self._timeout \u003d timeout"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afb71cf_4fa87edb","line":27,"in_reply_to":"3afb71cf_8e720648","updated":"2015-06-09 12:08:34.000000000","message":"Because the class is only used as a namespace for 2 methods which could be functions (perhaps out of change scope)","commit_id":"f1e0ff88209d141d6715db3caf69f1352ac716b0"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"0ec69bffba3c73e0c2f3c1ff95c053da9c7d5826","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":27,"context_line":"class PingerBase(object):"},{"line_number":28,"context_line":"    def __init__(self, namespace, timeout\u003d1, count\u003d1):"},{"line_number":29,"context_line":"        self.namespace \u003d namespace"},{"line_number":30,"context_line":"        self._timeout \u003d timeout"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afb71cf_8e720648","line":27,"in_reply_to":"3afb71cf_f945dfb2","updated":"2015-06-09 06:39:06.000000000","message":"What will be the benefit of having functions?","commit_id":"f1e0ff88209d141d6715db3caf69f1352ac716b0"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"439b7d585b4376d639a33e94e7e90949161fe586","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    @property"},{"line_number":38,"context_line":"    def ns_ip_wrapper(self):"},{"line_number":39,"context_line":"        if not hasattr(self, \u0027_ns_ip_wrapper\u0027):"},{"line_number":40,"context_line":"            self._ns_ip_wrapper \u003d ip_lib.IPWrapper(self.namespace)"},{"line_number":41,"context_line":"        return self._ns_ip_wrapper"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def assert_ping(self, dst_ip):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afb71cf_d9d46321","line":40,"updated":"2015-06-08 16:13:44.000000000","message":"It\u0027s cheap to instantiate IPWrapper, this caching logic is overkill. Just instantiate it when needed as it\u0027s done in L124 and in neutron.tests.common.net_helpers","commit_id":"f1e0ff88209d141d6715db3caf69f1352ac716b0"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"0ec69bffba3c73e0c2f3c1ff95c053da9c7d5826","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    @property"},{"line_number":38,"context_line":"    def ns_ip_wrapper(self):"},{"line_number":39,"context_line":"        if not hasattr(self, \u0027_ns_ip_wrapper\u0027):"},{"line_number":40,"context_line":"            self._ns_ip_wrapper \u003d ip_lib.IPWrapper(self.namespace)"},{"line_number":41,"context_line":"        return self._ns_ip_wrapper"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def assert_ping(self, dst_ip):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afb71cf_ee7dfa1c","line":40,"in_reply_to":"3afb71cf_d9d46321","updated":"2015-06-09 06:39:06.000000000","message":"Done","commit_id":"f1e0ff88209d141d6715db3caf69f1352ac716b0"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"2577b0051161c6e43f9320fe0b0aeb3261f12f26","unresolved":false,"context_lines":[{"line_number":63,"context_line":"                                          \u0027-W\u0027, self._timeout, dest_address])"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"class Arpinger(PingerBase):"},{"line_number":67,"context_line":"    ERROR_MSG \u003d (\"ARP response obtained in namespace %(ns)s when asking for \""},{"line_number":68,"context_line":"                 \" %(destination)s IP address\")"},{"line_number":69,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3afb71cf_4a718ca7","line":66,"updated":"2015-06-09 12:08:34.000000000","message":"Perhaps a stupid remark to add: ipv4 uses arp, ipv6 uses ndp so Arpinger does not support ipv6.","commit_id":"f1e0ff88209d141d6715db3caf69f1352ac716b0"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"4627b0654e2d8d2f30dc3f2f89531d372a4b0246","unresolved":false,"context_lines":[{"line_number":63,"context_line":"                                          \u0027-W\u0027, self._timeout, dest_address])"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"class Arpinger(PingerBase):"},{"line_number":67,"context_line":"    ERROR_MSG \u003d (\"ARP response obtained in namespace %(ns)s when asking for \""},{"line_number":68,"context_line":"                 \" %(destination)s IP address\")"},{"line_number":69,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3afb71cf_068f0c76","line":66,"in_reply_to":"3afb71cf_4a718ca7","updated":"2015-06-09 12:56:45.000000000","message":"Good remark! That means we\u0027ll need to make a new way to test ipv6. I\u0027m going to work with ipv4 first as it seems easier. We\u0027ll need to also implement ipv6 to PeerMachines","commit_id":"f1e0ff88209d141d6715db3caf69f1352ac716b0"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"abb17b14683c36a581f94e162c7feb3cb2e3bf84","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron.tests import tools"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class Pinger(object):"},{"line_number":25,"context_line":"    def __init__(self, namespace, timeout\u003d1, max_attempts\u003d1):"},{"line_number":26,"context_line":"        self.namespace \u003d namespace"},{"line_number":27,"context_line":"        self._timeout \u003d timeout"}],"source_content_type":"text/x-python","patch_set":2,"id":"3afb71cf_90120708","side":"PARENT","line":24,"updated":"2015-06-09 15:28:00.000000000","message":"i have no idea why i moved Pinger here instead of net_helpers :|","commit_id":"e601f26755f1985aa0c66d2553829d30f3bec8f1"}],"neutron/tests/common/net_helpers.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f0684aa5bfee01be608753687d4f3fb311697cd1","unresolved":false,"context_lines":[{"line_number":81,"context_line":"                   {\u0027ns\u0027: src_namespace, \u0027destination\u0027: dst_ip})"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"def assert_arping(src_namespace, dst_ip, source\u003dNone, timeout\u003d1, count\u003d1):"},{"line_number":85,"context_line":"    ns_ip_wrapper \u003d ip_lib.IPWrapper(src_namespace)"},{"line_number":86,"context_line":"    arping_cmd \u003d [\u0027arping\u0027, \u0027-c\u0027, count, \u0027-w\u0027, timeout]"},{"line_number":87,"context_line":"    if source:"}],"source_content_type":"text/x-python","patch_set":4,"id":"3afb71cf_93d0bf20","line":84,"updated":"2015-06-09 22:25:09.000000000","message":"I would prefer we add a remark about arping being only for ipv4 for ipv6 newbies (me for example :))","commit_id":"dc194342d37bcd6d326996749fa4a5d65eb36505"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"6ba3a0b408194dd26890ba4bc38a047de8b2c385","unresolved":false,"context_lines":[{"line_number":81,"context_line":"                   {\u0027ns\u0027: src_namespace, \u0027destination\u0027: dst_ip})"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"def assert_arping(src_namespace, dst_ip, source\u003dNone, timeout\u003d1, count\u003d1):"},{"line_number":85,"context_line":"    ns_ip_wrapper \u003d ip_lib.IPWrapper(src_namespace)"},{"line_number":86,"context_line":"    arping_cmd \u003d [\u0027arping\u0027, \u0027-c\u0027, count, \u0027-w\u0027, timeout]"},{"line_number":87,"context_line":"    if source:"}],"source_content_type":"text/x-python","patch_set":4,"id":"3afb71cf_db9bde64","line":84,"in_reply_to":"3afb71cf_93d0bf20","updated":"2015-06-10 08:43:55.000000000","message":"Done","commit_id":"dc194342d37bcd6d326996749fa4a5d65eb36505"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5a8f208d9ef3c5771ab3c0b4ef4e2886dd41bdfb","unresolved":false,"context_lines":[{"line_number":84,"context_line":"def assert_arping(src_namespace, dst_ip, source\u003dNone, timeout\u003d1, count\u003d1):"},{"line_number":85,"context_line":"    ns_ip_wrapper \u003d ip_lib.IPWrapper(src_namespace)"},{"line_number":86,"context_line":"    arping_cmd \u003d [\u0027arping\u0027, \u0027-c\u0027, count, \u0027-w\u0027, timeout]"},{"line_number":87,"context_line":"    if source:"},{"line_number":88,"context_line":"        arping_cmd.extend([\u0027-s\u0027, source, dst_ip])"},{"line_number":89,"context_line":"    else:"},{"line_number":90,"context_line":"        arping_cmd.append(dst_ip)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3afb71cf_f8d47220","line":87,"updated":"2015-06-09 21:44:00.000000000","message":"Nit: extend only -s source param here (Without dst_ip), then drop the else? Seems a little more intuitive to me.","commit_id":"dc194342d37bcd6d326996749fa4a5d65eb36505"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"6ba3a0b408194dd26890ba4bc38a047de8b2c385","unresolved":false,"context_lines":[{"line_number":84,"context_line":"def assert_arping(src_namespace, dst_ip, source\u003dNone, timeout\u003d1, count\u003d1):"},{"line_number":85,"context_line":"    ns_ip_wrapper \u003d ip_lib.IPWrapper(src_namespace)"},{"line_number":86,"context_line":"    arping_cmd \u003d [\u0027arping\u0027, \u0027-c\u0027, count, \u0027-w\u0027, timeout]"},{"line_number":87,"context_line":"    if source:"},{"line_number":88,"context_line":"        arping_cmd.extend([\u0027-s\u0027, source, dst_ip])"},{"line_number":89,"context_line":"    else:"},{"line_number":90,"context_line":"        arping_cmd.append(dst_ip)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3afb71cf_bba5c2a2","line":87,"in_reply_to":"3afb71cf_f8d47220","updated":"2015-06-10 08:43:55.000000000","message":"Done","commit_id":"dc194342d37bcd6d326996749fa4a5d65eb36505"}]}
