)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"07286c98d2397bdc869c1ab53209ae717c26b623","unresolved":false,"context_lines":[{"line_number":20,"context_line":"effort."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Change-Id: Id420983ccbceece5f4a00546941618318b9562c7"},{"line_number":23,"context_line":"Partially-implements: plueprint l3-svcs-vendor-validation"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1ae5cdf2_d725d2ae","line":23,"range":{"start_line":23,"start_character":22,"end_line":23,"end_character":31},"updated":"2014-06-26 11:42:39.000000000","message":"blueprint","commit_id":"acbb8f3add171a8069ef0c3bcb8ee08ab7b5d03e"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"d8df87f7ce40dfc906096a9a4053ff7c5dfee4ab","unresolved":false,"context_lines":[{"line_number":20,"context_line":"effort."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Change-Id: Id420983ccbceece5f4a00546941618318b9562c7"},{"line_number":23,"context_line":"Partially-implements: plueprint l3-svcs-vendor-validation"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1ae5cdf2_2b05aa0f","line":23,"range":{"start_line":23,"start_character":22,"end_line":23,"end_character":31},"updated":"2014-06-26 15:25:16.000000000","message":"please fix this typo so that reviewers can follow the link","commit_id":"0e0140b66e59febd5ecb06c73797b93d1df8043a"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"c66007adf6c81c337e2d909f43916ac3c8224349","unresolved":false,"context_lines":[{"line_number":20,"context_line":"effort."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Change-Id: Id420983ccbceece5f4a00546941618318b9562c7"},{"line_number":23,"context_line":"Partially-implements: plueprint l3-svcs-vendor-validation"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1ae5cdf2_3b788e8e","line":23,"in_reply_to":"1ae5cdf2_2b05aa0f","updated":"2014-06-26 20:11:20.000000000","message":"Done","commit_id":"0e0140b66e59febd5ecb06c73797b93d1df8043a"}],"neutron/db/vpn/vpn_db.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"ff527b25de167be278f4c7a77a477d39cdcd5a4e","unresolved":false,"context_lines":[{"line_number":230,"context_line":"        dpd \u003d ipsec_sitecon[\u0027dpd\u0027]"},{"line_number":231,"context_line":"        ipsec_sitecon[\u0027dpd_action\u0027] \u003d dpd.get(\u0027action\u0027, \u0027hold\u0027)"},{"line_number":232,"context_line":"        ipsec_sitecon[\u0027dpd_interval\u0027] \u003d dpd.get(\u0027interval\u0027, 30)"},{"line_number":233,"context_line":"        ipsec_sitecon[\u0027dpd_timeout\u0027] \u003d dpd.get(\u0027timeout\u0027, 120)"},{"line_number":234,"context_line":"        tenant_id \u003d self._get_tenant_id_for_create(context, ipsec_sitecon)"},{"line_number":235,"context_line":"        self._check_dpd(ipsec_sitecon)"},{"line_number":236,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_aad2aa31","side":"PARENT","line":233,"updated":"2014-06-26 04:17:04.000000000","message":"why you removed these?","commit_id":"befc4a02291de696a70363cb1c80635bf6858ea2"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"00e91da262130289f28a1cc3bd5ab2677a575d4c","unresolved":false,"context_lines":[{"line_number":230,"context_line":"        dpd \u003d ipsec_sitecon[\u0027dpd\u0027]"},{"line_number":231,"context_line":"        ipsec_sitecon[\u0027dpd_action\u0027] \u003d dpd.get(\u0027action\u0027, \u0027hold\u0027)"},{"line_number":232,"context_line":"        ipsec_sitecon[\u0027dpd_interval\u0027] \u003d dpd.get(\u0027interval\u0027, 30)"},{"line_number":233,"context_line":"        ipsec_sitecon[\u0027dpd_timeout\u0027] \u003d dpd.get(\u0027timeout\u0027, 120)"},{"line_number":234,"context_line":"        tenant_id \u003d self._get_tenant_id_for_create(context, ipsec_sitecon)"},{"line_number":235,"context_line":"        self._check_dpd(ipsec_sitecon)"},{"line_number":236,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_4c94d943","side":"PARENT","line":233,"in_reply_to":"1ae5cdf2_3145266f","updated":"2014-06-26 11:00:38.000000000","message":"ah, i see.  i failed to find out the validator had side effects.","commit_id":"befc4a02291de696a70363cb1c80635bf6858ea2"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9262a7fe2dbe311d5f6c4ab78a61b6147d0b9383","unresolved":false,"context_lines":[{"line_number":230,"context_line":"        dpd \u003d ipsec_sitecon[\u0027dpd\u0027]"},{"line_number":231,"context_line":"        ipsec_sitecon[\u0027dpd_action\u0027] \u003d dpd.get(\u0027action\u0027, \u0027hold\u0027)"},{"line_number":232,"context_line":"        ipsec_sitecon[\u0027dpd_interval\u0027] \u003d dpd.get(\u0027interval\u0027, 30)"},{"line_number":233,"context_line":"        ipsec_sitecon[\u0027dpd_timeout\u0027] \u003d dpd.get(\u0027timeout\u0027, 120)"},{"line_number":234,"context_line":"        tenant_id \u003d self._get_tenant_id_for_create(context, ipsec_sitecon)"},{"line_number":235,"context_line":"        self._check_dpd(ipsec_sitecon)"},{"line_number":236,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_378436d2","side":"PARENT","line":233,"in_reply_to":"1ae5cdf2_4c94d943","updated":"2014-06-26 11:45:37.000000000","message":"Yeah, it was the only way I could see to allow different providers to set different defaults (especially, if they don\u0027t support the default proposed by the reference implementation).\n\nBTW, there is an error in UTs (which I don\u0027t see locally), where the service driver is mocked out, but validator is not set. Will push another patch today.","commit_id":"befc4a02291de696a70363cb1c80635bf6858ea2"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d554e6b94f55428948a7816d03fbd75ba72bc9cd","unresolved":false,"context_lines":[{"line_number":230,"context_line":"        dpd \u003d ipsec_sitecon[\u0027dpd\u0027]"},{"line_number":231,"context_line":"        ipsec_sitecon[\u0027dpd_action\u0027] \u003d dpd.get(\u0027action\u0027, \u0027hold\u0027)"},{"line_number":232,"context_line":"        ipsec_sitecon[\u0027dpd_interval\u0027] \u003d dpd.get(\u0027interval\u0027, 30)"},{"line_number":233,"context_line":"        ipsec_sitecon[\u0027dpd_timeout\u0027] \u003d dpd.get(\u0027timeout\u0027, 120)"},{"line_number":234,"context_line":"        tenant_id \u003d self._get_tenant_id_for_create(context, ipsec_sitecon)"},{"line_number":235,"context_line":"        self._check_dpd(ipsec_sitecon)"},{"line_number":236,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_3145266f","side":"PARENT","line":233,"in_reply_to":"1ae5cdf2_aad2aa31","updated":"2014-06-26 10:43:23.000000000","message":"They are not removed, but instead have been moved into the validator called on L268 in version 3. This allows providers to change the default values, based on what they support.","commit_id":"befc4a02291de696a70363cb1c80635bf6858ea2"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3999feffd99496bc3c28f63ccae2518ea4381b4d","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        \"\"\"Do the initialization for the vpn service plugin here.\"\"\""},{"line_number":167,"context_line":"        qdbapi.register_models()"},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"    def _get_driver_for_vpnservice(self, vpnservice):"},{"line_number":170,"context_line":"        raise NotImplementedError()"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def _get_driver_for_ipsec_site_connection(self, context,"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_410e53e6","line":169,"updated":"2014-07-07 17:10:42.000000000","message":"Is the addition of this method related to this patch somehow?","commit_id":"a4ca15501c2f5d3126a3c97a7e2ed54cafdaabf5"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"b04667cae4a9cc60eb08a81619052f79295abab9","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        \"\"\"Do the initialization for the vpn service plugin here.\"\"\""},{"line_number":167,"context_line":"        qdbapi.register_models()"},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"    def _get_driver_for_vpnservice(self, vpnservice):"},{"line_number":170,"context_line":"        raise NotImplementedError()"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def _get_driver_for_ipsec_site_connection(self, context,"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_6c8e9c2f","line":169,"in_reply_to":"baada198_410e53e6","updated":"2014-07-07 20:31:07.000000000","message":"I can pull both of these. The ancestor class (VPNDriverPlugin) uses these, and some of the UTs would directly instantiate a VPNPluginDb (to check Dbase access), instead of the actual ancestor class. Wanted to prevent them from trying to use these methods.","commit_id":"a4ca15501c2f5d3126a3c97a7e2ed54cafdaabf5"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0a519deff17d2813610ecf40042b6040c087e9b5","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        \"\"\"Do the initialization for the vpn service plugin here.\"\"\""},{"line_number":167,"context_line":"        qdbapi.register_models()"},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"    def _get_driver_for_vpnservice(self, vpnservice):"},{"line_number":170,"context_line":"        raise NotImplementedError()"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def _get_driver_for_ipsec_site_connection(self, context,"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_29cc4f35","line":169,"in_reply_to":"baada198_6c8e9c2f","updated":"2014-07-09 14:12:31.000000000","message":"I\u0027m okay if you want to leave them in.","commit_id":"a4ca15501c2f5d3126a3c97a7e2ed54cafdaabf5"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3999feffd99496bc3c28f63ccae2518ea4381b4d","unresolved":false,"context_lines":[{"line_number":169,"context_line":"    def _get_driver_for_vpnservice(self, vpnservice):"},{"line_number":170,"context_line":"        raise NotImplementedError()"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def _get_driver_for_ipsec_site_connection(self, context,"},{"line_number":173,"context_line":"                                              ipsec_site_connection):"},{"line_number":174,"context_line":"        raise NotImplementedError()"},{"line_number":175,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_6113570d","line":172,"updated":"2014-07-07 17:10:42.000000000","message":"And this one?","commit_id":"a4ca15501c2f5d3126a3c97a7e2ed54cafdaabf5"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3999feffd99496bc3c28f63ccae2518ea4381b4d","unresolved":false,"context_lines":[{"line_number":242,"context_line":""},{"line_number":243,"context_line":"        return self._fields(res, fields)"},{"line_number":244,"context_line":""},{"line_number":245,"context_line":"    def _get_subnet_version(self, context, vpnservice_id):"},{"line_number":246,"context_line":"        vpn_service_db \u003d self._get_vpnservice(context, vpnservice_id)"},{"line_number":247,"context_line":"        subnet \u003d vpn_service_db.subnet[\u0027cidr\u0027]"},{"line_number":248,"context_line":"        ip_version \u003d netaddr.IPNetwork(subnet).version"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_cfdfef0b","line":245,"updated":"2014-07-07 17:10:42.000000000","message":"nit:  This method name might benefit from adding \u0027ip\u0027 to it.  Consider \"_get_subnet_ip_version\"","commit_id":"a4ca15501c2f5d3126a3c97a7e2ed54cafdaabf5"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"b04667cae4a9cc60eb08a81619052f79295abab9","unresolved":false,"context_lines":[{"line_number":242,"context_line":""},{"line_number":243,"context_line":"        return self._fields(res, fields)"},{"line_number":244,"context_line":""},{"line_number":245,"context_line":"    def _get_subnet_version(self, context, vpnservice_id):"},{"line_number":246,"context_line":"        vpn_service_db \u003d self._get_vpnservice(context, vpnservice_id)"},{"line_number":247,"context_line":"        subnet \u003d vpn_service_db.subnet[\u0027cidr\u0027]"},{"line_number":248,"context_line":"        ip_version \u003d netaddr.IPNetwork(subnet).version"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_8c98506b","line":245,"in_reply_to":"baada198_cfdfef0b","updated":"2014-07-07 20:31:07.000000000","message":"Done","commit_id":"a4ca15501c2f5d3126a3c97a7e2ed54cafdaabf5"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3999feffd99496bc3c28f63ccae2518ea4381b4d","unresolved":false,"context_lines":[{"line_number":301,"context_line":"    def update_ipsec_site_connection("},{"line_number":302,"context_line":"            self, context,"},{"line_number":303,"context_line":"            ipsec_site_conn_id, ipsec_site_connection):"},{"line_number":304,"context_line":"        isec_sitecon \u003d ipsec_site_connection[\u0027ipsec_site_connection\u0027]"},{"line_number":305,"context_line":"        changed_peer_cidrs \u003d False"},{"line_number":306,"context_line":"        validator \u003d self._get_validator()"},{"line_number":307,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_e1712745","line":304,"updated":"2014-07-07 17:10:42.000000000","message":"nit:  I\u0027m fine with this name but I wonder if you meant \"ipsec_sitecon\" with a \u0027p\u0027.\n\nNormally, I might say that changing the name of this variable is out of the scope of this patch but I\u0027m okay because it improves readability of some of the other changes you make below.","commit_id":"a4ca15501c2f5d3126a3c97a7e2ed54cafdaabf5"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"42c601d641b7fd807e4475ee0822c0ba632e27fc","unresolved":false,"context_lines":[{"line_number":301,"context_line":"    def update_ipsec_site_connection("},{"line_number":302,"context_line":"            self, context,"},{"line_number":303,"context_line":"            ipsec_site_conn_id, ipsec_site_connection):"},{"line_number":304,"context_line":"        isec_sitecon \u003d ipsec_site_connection[\u0027ipsec_site_connection\u0027]"},{"line_number":305,"context_line":"        changed_peer_cidrs \u003d False"},{"line_number":306,"context_line":"        validator \u003d self._get_validator()"},{"line_number":307,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_68eee8ee","line":304,"in_reply_to":"baada198_e1712745","updated":"2014-07-11 12:53:57.000000000","message":"Yeah, I think it was done elsewhere so that a line would fit within 80 columns, so I used the same naming. I\u0027ll change it to ipsec_siteconn","commit_id":"a4ca15501c2f5d3126a3c97a7e2ed54cafdaabf5"}],"neutron/db/vpn/vpn_validator.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3999feffd99496bc3c28f63ccae2518ea4381b4d","unresolved":false,"context_lines":[{"line_number":58,"context_line":"                                       ip_version, prev_conn\u003dNone):"},{"line_number":59,"context_line":"        \"\"\"Reference implementation of validation for IPSec connection."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        As a side effect, this will also set DPD attributes that are not"},{"line_number":62,"context_line":"        provided. For create, these will be the default values for the"},{"line_number":63,"context_line":"        reference implementation. For update validation, the connection\u0027s"},{"line_number":64,"context_line":"        previous values are used for DPD attributes that are not provided."}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_f4ec03ca","line":61,"updated":"2014-07-07 17:10:42.000000000","message":"I\u0027m not sure I\u0027m comfortable with a validation routine optionally filling in missing information from a previous connection.  It seems a bit cryptic.  It took me a minute to figure out what is going on here.\n\nI feel like this stuff belongs outside of this class where it was before.  What do you think?","commit_id":"a4ca15501c2f5d3126a3c97a7e2ed54cafdaabf5"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0a519deff17d2813610ecf40042b6040c087e9b5","unresolved":false,"context_lines":[{"line_number":58,"context_line":"                                       ip_version, prev_conn\u003dNone):"},{"line_number":59,"context_line":"        \"\"\"Reference implementation of validation for IPSec connection."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        As a side effect, this will also set DPD attributes that are not"},{"line_number":62,"context_line":"        provided. For create, these will be the default values for the"},{"line_number":63,"context_line":"        reference implementation. For update validation, the connection\u0027s"},{"line_number":64,"context_line":"        previous values are used for DPD attributes that are not provided."}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_c9fbd345","line":61,"in_reply_to":"baada198_2ceca4ba","updated":"2014-07-09 14:12:31.000000000","message":"I like the alternative better.","commit_id":"a4ca15501c2f5d3126a3c97a7e2ed54cafdaabf5"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"42c601d641b7fd807e4475ee0822c0ba632e27fc","unresolved":false,"context_lines":[{"line_number":58,"context_line":"                                       ip_version, prev_conn\u003dNone):"},{"line_number":59,"context_line":"        \"\"\"Reference implementation of validation for IPSec connection."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        As a side effect, this will also set DPD attributes that are not"},{"line_number":62,"context_line":"        provided. For create, these will be the default values for the"},{"line_number":63,"context_line":"        reference implementation. For update validation, the connection\u0027s"},{"line_number":64,"context_line":"        previous values are used for DPD attributes that are not provided."}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_a8bba0e3","line":61,"in_reply_to":"baada198_c9fbd345","updated":"2014-07-11 12:53:57.000000000","message":"Will update to use a second method for defaults.","commit_id":"a4ca15501c2f5d3126a3c97a7e2ed54cafdaabf5"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"b04667cae4a9cc60eb08a81619052f79295abab9","unresolved":false,"context_lines":[{"line_number":58,"context_line":"                                       ip_version, prev_conn\u003dNone):"},{"line_number":59,"context_line":"        \"\"\"Reference implementation of validation for IPSec connection."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        As a side effect, this will also set DPD attributes that are not"},{"line_number":62,"context_line":"        provided. For create, these will be the default values for the"},{"line_number":63,"context_line":"        reference implementation. For update validation, the connection\u0027s"},{"line_number":64,"context_line":"        previous values are used for DPD attributes that are not provided."}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_2ceca4ba","line":61,"in_reply_to":"baada198_f4ec03ca","updated":"2014-07-07 20:31:07.000000000","message":"Well, it\u0027s a bit of a conundrum. I could put the default setting back in the database class, however that will prohibit providers from presenting different defaults for there platform.\n\nThe alternative, is to create a second method for setting defaults, separate from the validation, and allow providers to override that independently.\n\nThoughts?","commit_id":"a4ca15501c2f5d3126a3c97a7e2ed54cafdaabf5"}],"neutron/tests/unit/db/vpn/test_db_vpnaas.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3999feffd99496bc3c28f63ccae2518ea4381b4d","unresolved":false,"context_lines":[{"line_number":869,"context_line":"                                          if k in expected),"},{"line_number":870,"context_line":"                                     expected)"},{"line_number":871,"context_line":""},{"line_number":872,"context_line":"    def test_create_vpnservice_with_invalid_router(self):"},{"line_number":873,"context_line":"        \"\"\"Test case to create a vpnservice with other tenant\u0027s router\"\"\""},{"line_number":874,"context_line":"        with self.network("},{"line_number":875,"context_line":"            set_context\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_fbe987e6","side":"PARENT","line":872,"updated":"2014-07-07 17:10:42.000000000","message":"Do these need to be replaced with a unit test that checks that the validator is called.  Obviously, these tests don\u0027t make sense anymore in the current context but maybe we need at least one test with a mock validator that checks the behavior when a validator finds a problem.","commit_id":"fe57b966ac4b2bf8e19b66ac75e25981361d5e0c"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0a519deff17d2813610ecf40042b6040c087e9b5","unresolved":false,"context_lines":[{"line_number":869,"context_line":"                                          if k in expected),"},{"line_number":870,"context_line":"                                     expected)"},{"line_number":871,"context_line":""},{"line_number":872,"context_line":"    def test_create_vpnservice_with_invalid_router(self):"},{"line_number":873,"context_line":"        \"\"\"Test case to create a vpnservice with other tenant\u0027s router\"\"\""},{"line_number":874,"context_line":"        with self.network("},{"line_number":875,"context_line":"            set_context\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_09bceb6b","side":"PARENT","line":872,"in_reply_to":"baada198_2733ddf6","updated":"2014-07-09 14:12:31.000000000","message":"Fair enough.  Thanks.","commit_id":"fe57b966ac4b2bf8e19b66ac75e25981361d5e0c"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"b04667cae4a9cc60eb08a81619052f79295abab9","unresolved":false,"context_lines":[{"line_number":869,"context_line":"                                          if k in expected),"},{"line_number":870,"context_line":"                                     expected)"},{"line_number":871,"context_line":""},{"line_number":872,"context_line":"    def test_create_vpnservice_with_invalid_router(self):"},{"line_number":873,"context_line":"        \"\"\"Test case to create a vpnservice with other tenant\u0027s router\"\"\""},{"line_number":874,"context_line":"        with self.network("},{"line_number":875,"context_line":"            set_context\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_2733ddf6","side":"PARENT","line":872,"in_reply_to":"baada198_fbe987e6","updated":"2014-07-07 20:31:07.000000000","message":"Actually, equivalents of these tests have be placed in test_ipsec.py. The difference being that instead of setting up a bunch of resources and call the higher level\"API\" function, we instead test the individual validators that are called as part of the overall validation process. The method names are different, as they attempt to better reflect what each test case is doing.\n\nThere is also a test case that checks that the driver specific validator is called, when validation is done (that\u0027s the one with the oslo.messaging library bug).","commit_id":"fe57b966ac4b2bf8e19b66ac75e25981361d5e0c"}],"neutron/tests/unit/services/vpn/service_drivers/test_ipsec.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"37102c77be642dbc95e3b4910e13abbbd7e78fde","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def test_reference_driver_used(self):"},{"line_number":62,"context_line":"        self.assertTrue(isinstance(self.vpn_plugin._get_validator(),"},{"line_number":63,"context_line":"                                   vpn_validator.VpnReferenceValidator))"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"class TestIPsecDriverValidation(base.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_7883fcca","line":63,"updated":"2014-06-26 19:55:45.000000000","message":"self.assertIsInstance is better","commit_id":"0e0140b66e59febd5ecb06c73797b93d1df8043a"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"c66007adf6c81c337e2d909f43916ac3c8224349","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def test_reference_driver_used(self):"},{"line_number":62,"context_line":"        self.assertTrue(isinstance(self.vpn_plugin._get_validator(),"},{"line_number":63,"context_line":"                                   vpn_validator.VpnReferenceValidator))"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"class TestIPsecDriverValidation(base.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_9b3fe2b4","line":63,"in_reply_to":"1ae5cdf2_7883fcca","updated":"2014-06-26 20:11:20.000000000","message":"Cool. Didn\u0027t know about that assert.","commit_id":"0e0140b66e59febd5ecb06c73797b93d1df8043a"}],"neutron/tests/unit/services/vpn/test_vpnaas_driver_plugin.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"07286c98d2397bdc869c1ab53209ae717c26b623","unresolved":false,"context_lines":[{"line_number":37,"context_line":"        self.adminContext \u003d context.get_admin_context()"},{"line_number":38,"context_line":"        driver_cls_p \u003d mock.patch("},{"line_number":39,"context_line":"            \u0027neutron.services.vpn.\u0027"},{"line_number":40,"context_line":"            \u0027service_drivers.ipsec.IPsecVPNDriver\u0027)"},{"line_number":41,"context_line":"        driver_cls \u003d driver_cls_p.start()"},{"line_number":42,"context_line":"        self.driver \u003d mock.Mock()"},{"line_number":43,"context_line":"        self.driver.service_type \u003d ipsec_driver.IPSEC"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_57c9c258","line":40,"updated":"2014-06-26 11:42:39.000000000","message":"shouldn\u0027t this provide a validator with side effects?","commit_id":"acbb8f3add171a8069ef0c3bcb8ee08ab7b5d03e"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"565f2a916a002776911aec1bad479077bf758e56","unresolved":false,"context_lines":[{"line_number":37,"context_line":"        self.adminContext \u003d context.get_admin_context()"},{"line_number":38,"context_line":"        driver_cls_p \u003d mock.patch("},{"line_number":39,"context_line":"            \u0027neutron.services.vpn.\u0027"},{"line_number":40,"context_line":"            \u0027service_drivers.ipsec.IPsecVPNDriver\u0027)"},{"line_number":41,"context_line":"        driver_cls \u003d driver_cls_p.start()"},{"line_number":42,"context_line":"        self.driver \u003d mock.Mock()"},{"line_number":43,"context_line":"        self.driver.service_type \u003d ipsec_driver.IPSEC"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_d24c0079","line":40,"in_reply_to":"1ae5cdf2_57c9c258","updated":"2014-06-26 12:02:00.000000000","message":"Yes, that is the UT issue I see. I need to provide a validator for the mock to use. Will be in the next patch set.","commit_id":"acbb8f3add171a8069ef0c3bcb8ee08ab7b5d03e"}]}
