)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"490c1d9252e8fbce422ee3de5fdd17bf5147d758","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Hirofumi Ichihara \u003cichihara.hirofumi@lab.ntt.co.jp\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-10-31 12:31:32 +0900"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix segmentation-id to integer in test"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The validate_subports test passes string as segmentation-id but"},{"line_number":10,"context_line":"it must be integer. It means that the validator can pass wrong value"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f4b6375_fd71e045","line":7,"updated":"2017-10-31 14:47:39.000000000","message":"a segmentation ID type really depends on the value of the segmentation_type. This change seems a no-op to me and I am not sure I see any value in hardcoding the type to be an integer when it might not.","commit_id":"1a53ef57d02ae9c336260c2d9d2b438f2b8b5931"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"4d31dd9bea4c0ec80318feb8933df668596d29d9","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Hirofumi Ichihara \u003cichihara.hirofumi@lab.ntt.co.jp\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-10-31 12:31:32 +0900"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix segmentation-id to integer in test"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The validate_subports test passes string as segmentation-id but"},{"line_number":10,"context_line":"it must be integer. It means that the validator can pass wrong value"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f4b6375_a7c78012","line":7,"in_reply_to":"3f4b6375_6eb18a8f","updated":"2017-11-03 03:39:55.000000000","message":"Yes this patch is useful and makes things a little more clear. I am suggesting capturing as a note somewhere that both string and int as seg IDs are acceptable at the API level and thus make tests reflect that (so rather than change ints everywhere, leave some strings behind)","commit_id":"1a53ef57d02ae9c336260c2d9d2b438f2b8b5931"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"b3995d8b84df938a8b3774acbef946bc3ce59f19","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Hirofumi Ichihara \u003cichihara.hirofumi@lab.ntt.co.jp\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-10-31 12:31:32 +0900"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix segmentation-id to integer in test"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The validate_subports test passes string as segmentation-id but"},{"line_number":10,"context_line":"it must be integer. It means that the validator can pass wrong value"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f4b6375_6eb18a8f","line":7,"in_reply_to":"3f4b6375_fd71e045","updated":"2017-11-02 03:01:40.000000000","message":"I see. I think that\u0027s right. If so, we should change integer to string in the db model[1]? And also we should change integer converter depends on segmentation_type[2]? I guess that almost all cases are integer so we don\u0027t need such changes. If we expect that it\u0027s integer, this patch is useful a little.\n\n[1]: https://github.com/openstack/neutron/blob/master/neutron/services/trunk/models.py#L69\n[2]: https://github.com/openstack/neutron/blob/master/neutron/services/trunk/rules.py#L248-L249","commit_id":"1a53ef57d02ae9c336260c2d9d2b438f2b8b5931"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"490c1d9252e8fbce422ee3de5fdd17bf5147d758","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fix segmentation-id to integer in test"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The validate_subports test passes string as segmentation-id but"},{"line_number":10,"context_line":"it must be integer. It means that the validator can pass wrong value"},{"line_number":11,"context_line":"to neutron but there is no issue in neutron side because trunk"},{"line_number":12,"context_line":"service plugin converts the value to integer[1]. The convert should"},{"line_number":13,"context_line":"be done in service plugin side so this patch fix a test only."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f4b6375_dd8e2426","line":10,"updated":"2017-10-31 14:47:39.000000000","message":"no, it depends on the value of the seg_type.","commit_id":"1a53ef57d02ae9c336260c2d9d2b438f2b8b5931"}],"neutron_lib/tests/unit/api/validators/test_validators.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"490c1d9252e8fbce422ee3de5fdd17bf5147d758","unresolved":false,"context_lines":[{"line_number":1004,"context_line":"    def test_validate_subports_invalid_incomplete_segmentation_details(self):"},{"line_number":1005,"context_line":"        body \u003d ["},{"line_number":1006,"context_line":"            {\u0027port_id\u0027: \u002700000000-ffff-ffff-ffff-000000000000\u0027,"},{"line_number":1007,"context_line":"             \u0027segmentation_id\u0027: 3}"},{"line_number":1008,"context_line":"        ]"},{"line_number":1009,"context_line":"        self.assertIsNotNone(validators.validate_subports(body))"},{"line_number":1010,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_7db4d0d1","line":1007,"updated":"2017-10-31 14:47:39.000000000","message":"it really doesn\u0027t matter what we put here as the validator doesn\u0027t catch it, but if you do want this change might as well keep one test with a string and add a note to explain why both are acceptable :)","commit_id":"1a53ef57d02ae9c336260c2d9d2b438f2b8b5931"}]}
