)]}'
{"dragonflow/tests/fullstack/test_neutron_api.py":[{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"a271021186ac58826169afa3751ff95b1b31d1a6","unresolved":false,"context_lines":[{"line_number":30,"context_line":"    def setUp(self):"},{"line_number":31,"context_line":"        username \u003d \u0027admin\u0027"},{"line_number":32,"context_line":"        password \u003d \u0027devstack\u0027"},{"line_number":33,"context_line":"        auth_url \u003d \u0027http://10.100.100.40:5000/v2.0\u0027"},{"line_number":34,"context_line":"        tenant_name \u003d \u0027demo\u0027"},{"line_number":35,"context_line":"        #OS_URL \u003d \"http://10.100.100.40:5000/v2.0\""},{"line_number":36,"context_line":"        #OS_TOKEN \u003d \"c5876bb22730477a8a190f5a6566a1b9\""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_52d43b46","line":33,"updated":"2015-12-09 19:59:41.000000000","message":"You should take this form the installed devstack openrc \n\nDo not commit hard codded address and passwords","commit_id":"7a7e52addaccea4c6138afa8597b64f9f04685bb"},{"author":{"_account_id":18903,"name":"Yuli","email":"stremovsky@gmail.com","username":"yuli"},"change_message_id":"0cb4ae5481032341939b0a80bd537cb327dc9f65","unresolved":false,"context_lines":[{"line_number":30,"context_line":"    def setUp(self):"},{"line_number":31,"context_line":"        username \u003d \u0027admin\u0027"},{"line_number":32,"context_line":"        password \u003d \u0027devstack\u0027"},{"line_number":33,"context_line":"        auth_url \u003d \u0027http://10.100.100.40:5000/v2.0\u0027"},{"line_number":34,"context_line":"        tenant_name \u003d \u0027demo\u0027"},{"line_number":35,"context_line":"        #OS_URL \u003d \"http://10.100.100.40:5000/v2.0\""},{"line_number":36,"context_line":"        #OS_TOKEN \u003d \"c5876bb22730477a8a190f5a6566a1b9\""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_a76ecdfd","line":33,"in_reply_to":"7a740942_52d43b46","updated":"2015-12-14 08:50:20.000000000","message":"Done","commit_id":"7a7e52addaccea4c6138afa8597b64f9f04685bb"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"a271021186ac58826169afa3751ff95b1b31d1a6","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        password \u003d \u0027devstack\u0027"},{"line_number":33,"context_line":"        auth_url \u003d \u0027http://10.100.100.40:5000/v2.0\u0027"},{"line_number":34,"context_line":"        tenant_name \u003d \u0027demo\u0027"},{"line_number":35,"context_line":"        #OS_URL \u003d \"http://10.100.100.40:5000/v2.0\""},{"line_number":36,"context_line":"        #OS_TOKEN \u003d \"c5876bb22730477a8a190f5a6566a1b9\""},{"line_number":37,"context_line":"        self.neutron \u003d client.Client(\u00272.0\u0027, username\u003dusername,"},{"line_number":38,"context_line":"             password\u003dpassword, auth_url\u003dauth_url, tenant_name\u003dtenant_name)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_b2c31f8a","line":35,"updated":"2015-12-09 19:59:41.000000000","message":"remove the commented lines","commit_id":"7a7e52addaccea4c6138afa8597b64f9f04685bb"},{"author":{"_account_id":18903,"name":"Yuli","email":"stremovsky@gmail.com","username":"yuli"},"change_message_id":"0cb4ae5481032341939b0a80bd537cb327dc9f65","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        password \u003d \u0027devstack\u0027"},{"line_number":33,"context_line":"        auth_url \u003d \u0027http://10.100.100.40:5000/v2.0\u0027"},{"line_number":34,"context_line":"        tenant_name \u003d \u0027demo\u0027"},{"line_number":35,"context_line":"        #OS_URL \u003d \"http://10.100.100.40:5000/v2.0\""},{"line_number":36,"context_line":"        #OS_TOKEN \u003d \"c5876bb22730477a8a190f5a6566a1b9\""},{"line_number":37,"context_line":"        self.neutron \u003d client.Client(\u00272.0\u0027, username\u003dusername,"},{"line_number":38,"context_line":"             password\u003dpassword, auth_url\u003dauth_url, tenant_name\u003dtenant_name)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_1a7eb3ae","line":35,"in_reply_to":"7a740942_b2c31f8a","updated":"2015-12-14 08:50:20.000000000","message":"Done","commit_id":"7a7e52addaccea4c6138afa8597b64f9f04685bb"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"a271021186ac58826169afa3751ff95b1b31d1a6","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        networks \u003d self.neutron.list_networks(name\u003dtest_network)"},{"line_number":55,"context_line":"        if not networks or len(networks[\u0027networks\u0027]) \u003d\u003d 0:"},{"line_number":56,"context_line":"            self.fail(\"Failed to create network using neutron API\")"},{"line_number":57,"context_line":"        #print(networks)"},{"line_number":58,"context_line":"        # step3: check if network created in dragonflow db"},{"line_number":59,"context_line":"        table \u003d \u0027lswitch\u0027"},{"line_number":60,"context_line":"        rows \u003d self.db_driver.get_all_keys(table)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_f23f6785","line":57,"updated":"2015-12-09 19:59:41.000000000","message":"remove the comment","commit_id":"7a7e52addaccea4c6138afa8597b64f9f04685bb"},{"author":{"_account_id":18903,"name":"Yuli","email":"stremovsky@gmail.com","username":"yuli"},"change_message_id":"0cb4ae5481032341939b0a80bd537cb327dc9f65","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        networks \u003d self.neutron.list_networks(name\u003dtest_network)"},{"line_number":55,"context_line":"        if not networks or len(networks[\u0027networks\u0027]) \u003d\u003d 0:"},{"line_number":56,"context_line":"            self.fail(\"Failed to create network using neutron API\")"},{"line_number":57,"context_line":"        #print(networks)"},{"line_number":58,"context_line":"        # step3: check if network created in dragonflow db"},{"line_number":59,"context_line":"        table \u003d \u0027lswitch\u0027"},{"line_number":60,"context_line":"        rows \u003d self.db_driver.get_all_keys(table)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_ba499f90","line":57,"in_reply_to":"7a740942_f23f6785","updated":"2015-12-14 08:50:20.000000000","message":"Done","commit_id":"7a7e52addaccea4c6138afa8597b64f9f04685bb"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"2562c0989b49708c4ebb89d9bdda7631b6c7fdd7","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        self.db_driver \u003d db_driver_class()"},{"line_number":49,"context_line":"        self.db_driver.initialize(db_ip\u003dcfg.CONF.df.remote_db_ip,"},{"line_number":50,"context_line":"            db_port\u003dcfg.CONF.df.remote_db_port)"},{"line_number":51,"context_line":"        super(TestNeutronAPIandDB, self).setUp()"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def test_create_network(self):"},{"line_number":54,"context_line":"        # step1: create network"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a710552_96115260","line":51,"updated":"2015-12-14 18:33:56.000000000","message":"please put this setup as first line here","commit_id":"4043654a6b467564057fea1f6bf865db15b1e347"},{"author":{"_account_id":18903,"name":"Yuli","email":"stremovsky@gmail.com","username":"yuli"},"change_message_id":"cc6f127162f1401937dbf618326572699e12afb5","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        self.db_driver \u003d db_driver_class()"},{"line_number":49,"context_line":"        self.db_driver.initialize(db_ip\u003dcfg.CONF.df.remote_db_ip,"},{"line_number":50,"context_line":"            db_port\u003dcfg.CONF.df.remote_db_port)"},{"line_number":51,"context_line":"        super(TestNeutronAPIandDB, self).setUp()"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def test_create_network(self):"},{"line_number":54,"context_line":"        # step1: create network"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a710552_86049c7e","line":51,"in_reply_to":"5a710552_96115260","updated":"2015-12-15 09:46:17.000000000","message":"Done","commit_id":"4043654a6b467564057fea1f6bf865db15b1e347"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"2562c0989b49708c4ebb89d9bdda7631b6c7fdd7","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        super(TestNeutronAPIandDB, self).setUp()"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def test_create_network(self):"},{"line_number":54,"context_line":"        # step1: create network"},{"line_number":55,"context_line":"        test_network \u003d \u0027mynetwork\u0027"},{"line_number":56,"context_line":"        network \u003d {\u0027name\u0027: test_network, \u0027admin_state_up\u0027: True}"},{"line_number":57,"context_line":"        self.neutron.create_network({\u0027network\u0027: network})"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a710552_012bda83","line":54,"updated":"2015-12-14 18:33:56.000000000","message":"no need for the comments, they just make this all looks more complex and its pretty obvious from the code what you do","commit_id":"4043654a6b467564057fea1f6bf865db15b1e347"},{"author":{"_account_id":18903,"name":"Yuli","email":"stremovsky@gmail.com","username":"yuli"},"change_message_id":"cc6f127162f1401937dbf618326572699e12afb5","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        super(TestNeutronAPIandDB, self).setUp()"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def test_create_network(self):"},{"line_number":54,"context_line":"        # step1: create network"},{"line_number":55,"context_line":"        test_network \u003d \u0027mynetwork\u0027"},{"line_number":56,"context_line":"        network \u003d {\u0027name\u0027: test_network, \u0027admin_state_up\u0027: True}"},{"line_number":57,"context_line":"        self.neutron.create_network({\u0027network\u0027: network})"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a710552_a6099897","line":54,"in_reply_to":"5a710552_012bda83","updated":"2015-12-15 09:46:17.000000000","message":"Done","commit_id":"4043654a6b467564057fea1f6bf865db15b1e347"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"2562c0989b49708c4ebb89d9bdda7631b6c7fdd7","unresolved":false,"context_lines":[{"line_number":61,"context_line":"            self.fail(\"Failed to create network using neutron API\")"},{"line_number":62,"context_line":"        # step3: check if network created in dragonflow db"},{"line_number":63,"context_line":"        table \u003d \u0027lswitch\u0027"},{"line_number":64,"context_line":"        rows \u003d self.db_driver.get_all_keys(table)"},{"line_number":65,"context_line":"        good \u003d 0"},{"line_number":66,"context_line":"        for key in rows:"},{"line_number":67,"context_line":"            value \u003d self.db_driver.get_key(table, key)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a710552_e19a4ec5","line":64,"updated":"2015-12-14 18:33:56.000000000","message":"i don\u0027t think you have to iterate on the table, i believe Neutron create_network should return you the id of the created network.\n\nThis same id is used as the id to create the logical switch, so you can just use get_key() on that entry.","commit_id":"4043654a6b467564057fea1f6bf865db15b1e347"},{"author":{"_account_id":18903,"name":"Yuli","email":"stremovsky@gmail.com","username":"yuli"},"change_message_id":"cc6f127162f1401937dbf618326572699e12afb5","unresolved":false,"context_lines":[{"line_number":61,"context_line":"            self.fail(\"Failed to create network using neutron API\")"},{"line_number":62,"context_line":"        # step3: check if network created in dragonflow db"},{"line_number":63,"context_line":"        table \u003d \u0027lswitch\u0027"},{"line_number":64,"context_line":"        rows \u003d self.db_driver.get_all_keys(table)"},{"line_number":65,"context_line":"        good \u003d 0"},{"line_number":66,"context_line":"        for key in rows:"},{"line_number":67,"context_line":"            value \u003d self.db_driver.get_key(table, key)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a710552_8b04a57e","line":64,"in_reply_to":"5a710552_e19a4ec5","updated":"2015-12-15 09:46:17.000000000","message":"I am able to create network with the same name in neutron.","commit_id":"4043654a6b467564057fea1f6bf865db15b1e347"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"43cd7e11013cd033a31231cc64795ec433f0de68","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            self.fail(\"Failed to create network using neutron API\")"},{"line_number":60,"context_line":"        table \u003d \u0027lswitch\u0027"},{"line_number":61,"context_line":"        rows \u003d self.db_driver.get_all_keys(table)"},{"line_number":62,"context_line":"        good \u003d 0"},{"line_number":63,"context_line":"        for key in rows:"},{"line_number":64,"context_line":"            value \u003d self.db_driver.get_key(table, key)"},{"line_number":65,"context_line":"            value2 \u003d jsonutils.loads(value)"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a710552_6cb117e1","line":62,"updated":"2015-12-16 06:40:54.000000000","message":"Please use for break and else and dont use additional variable good\n\nPlease look at https://docs.python.org/2/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops","commit_id":"4623ec9544bea7af19df7498225f1731d66c34c3"},{"author":{"_account_id":18903,"name":"Yuli","email":"stremovsky@gmail.com","username":"yuli"},"change_message_id":"52cd08232211554c5e795f2b3538ebdc011862de","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            self.fail(\"Failed to create network using neutron API\")"},{"line_number":60,"context_line":"        table \u003d \u0027lswitch\u0027"},{"line_number":61,"context_line":"        rows \u003d self.db_driver.get_all_keys(table)"},{"line_number":62,"context_line":"        good \u003d 0"},{"line_number":63,"context_line":"        for key in rows:"},{"line_number":64,"context_line":"            value \u003d self.db_driver.get_key(table, key)"},{"line_number":65,"context_line":"            value2 \u003d jsonutils.loads(value)"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a710552_1dbbdf0f","line":62,"in_reply_to":"5a710552_6cb117e1","updated":"2015-12-16 08:19:36.000000000","message":"Done","commit_id":"4623ec9544bea7af19df7498225f1731d66c34c3"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"43cd7e11013cd033a31231cc64795ec433f0de68","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                if (value2[\u0027external_ids\u0027][\u0027neutron:network_name\u0027] \u003d\u003d"},{"line_number":68,"context_line":"                        test_network):"},{"line_number":69,"context_line":"                    self.neutron.delete_network(key)"},{"line_number":70,"context_line":"                    good \u003d 1"},{"line_number":71,"context_line":"        if good \u003d\u003d 0:"},{"line_number":72,"context_line":"            self.fail(\"Failed to find newly created network in Dragonflow DB\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a710552_cce12bd2","line":70,"updated":"2015-12-16 06:40:54.000000000","message":"Break","commit_id":"4623ec9544bea7af19df7498225f1731d66c34c3"},{"author":{"_account_id":18903,"name":"Yuli","email":"stremovsky@gmail.com","username":"yuli"},"change_message_id":"52cd08232211554c5e795f2b3538ebdc011862de","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                if (value2[\u0027external_ids\u0027][\u0027neutron:network_name\u0027] \u003d\u003d"},{"line_number":68,"context_line":"                        test_network):"},{"line_number":69,"context_line":"                    self.neutron.delete_network(key)"},{"line_number":70,"context_line":"                    good \u003d 1"},{"line_number":71,"context_line":"        if good \u003d\u003d 0:"},{"line_number":72,"context_line":"            self.fail(\"Failed to find newly created network in Dragonflow DB\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a710552_bd388ba1","line":70,"in_reply_to":"5a710552_cce12bd2","updated":"2015-12-16 08:19:36.000000000","message":"Done","commit_id":"4623ec9544bea7af19df7498225f1731d66c34c3"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"43cd7e11013cd033a31231cc64795ec433f0de68","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                        test_network):"},{"line_number":69,"context_line":"                    self.neutron.delete_network(key)"},{"line_number":70,"context_line":"                    good \u003d 1"},{"line_number":71,"context_line":"        if good \u003d\u003d 0:"},{"line_number":72,"context_line":"            self.fail(\"Failed to find newly created network in Dragonflow DB\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a710552_6ce837b5","line":71,"updated":"2015-12-16 06:40:54.000000000","message":"Else","commit_id":"4623ec9544bea7af19df7498225f1731d66c34c3"},{"author":{"_account_id":18903,"name":"Yuli","email":"stremovsky@gmail.com","username":"yuli"},"change_message_id":"52cd08232211554c5e795f2b3538ebdc011862de","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                        test_network):"},{"line_number":69,"context_line":"                    self.neutron.delete_network(key)"},{"line_number":70,"context_line":"                    good \u003d 1"},{"line_number":71,"context_line":"        if good \u003d\u003d 0:"},{"line_number":72,"context_line":"            self.fail(\"Failed to find newly created network in Dragonflow DB\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a710552_dd3b179b","line":71,"in_reply_to":"5a710552_6ce837b5","updated":"2015-12-16 08:19:36.000000000","message":"Done","commit_id":"4623ec9544bea7af19df7498225f1731d66c34c3"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"dd5dd280381cb0a14d669527bf01d77bcead0acd","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 OpenStack Foundation."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a710552_2048e22c","line":1,"updated":"2015-12-16 12:25:02.000000000","message":"I do not think this Copyright are needed","commit_id":"43865dbe2c7a0c93e4adba01aa8e11e8d1648a2f"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"caa3c1795e6f16f55bae3c8cccad68da6ef0ea98","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        try:"},{"line_number":62,"context_line":"            value \u003d self.db_driver.get_key(table, network_id)"},{"line_number":63,"context_line":"        except df_exceptions.DBKeyNotFound:"},{"line_number":64,"context_line":"            self.fail(\"Failed to create network using neutron API\")"},{"line_number":65,"context_line":"            return"},{"line_number":66,"context_line":"        value2 \u003d jsonutils.loads(value)"},{"line_number":67,"context_line":"        if \u0027external_ids\u0027 in value2:"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a710552_60458a15","line":64,"updated":"2015-12-16 12:24:48.000000000","message":"wrong printing message, but can fix in another patch","commit_id":"43865dbe2c7a0c93e4adba01aa8e11e8d1648a2f"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"e7cb92eb50efe4456b0e1beb95d3df9fe6985c93","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 OpenStack Foundation."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":7,"id":"5a710552_3db31feb","line":1,"updated":"2015-12-16 16:07:32.000000000","message":"You can remove this Copyright","commit_id":"088117e8b58e8f023e43bea2a3ac3c8c62ba2008"}]}
