)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"fc8afbbeb26379ddc1f78c9f470a6397123a1dc0","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Added CORS support to Manila"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This adds the CORS support middleware to Manila, allowing a deployer"},{"line_number":10,"context_line":"to optionally configure rules under which a javascript client may"},{"line_number":11,"context_line":"break the single-origin policy and access the API directly."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"da85f559_c0b19648","line":9,"updated":"2015-11-11 17:58:36.000000000","message":"Here you have upper case Manila","commit_id":"9429dee9304f06ee59418f31bf3365d8ca155f78"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"fc8afbbeb26379ddc1f78c9f470a6397123a1dc0","unresolved":false,"context_lines":[{"line_number":10,"context_line":"to optionally configure rules under which a javascript client may"},{"line_number":11,"context_line":"break the single-origin policy and access the API directly."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"For manila, the paste.ini method of deploying the middleware was"},{"line_number":14,"context_line":"chosen, because it needs to be able to annotate error responses"},{"line_number":15,"context_line":"created by other middlewares. If one such middleware throws an"},{"line_number":16,"context_line":"error - such as an auth error from keystone - that error response"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"da85f559_a0b49234","line":13,"updated":"2015-11-11 17:58:36.000000000","message":"but here lowercase.","commit_id":"9429dee9304f06ee59418f31bf3365d8ca155f78"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"fc8afbbeb26379ddc1f78c9f470a6397123a1dc0","unresolved":false,"context_lines":[{"line_number":17,"context_line":"must still have CORS headers in order to be readable by the"},{"line_number":18,"context_line":"user agent."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Test have been provided."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"OpenStack CrossProject Spec:"},{"line_number":23,"context_line":"   http://specs.openstack.org/openstack/openstack-specs/specs/cors-support.html"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"da85f559_c556885b","line":20,"updated":"2015-11-11 17:58:36.000000000","message":"Line 20 better to remove.","commit_id":"9429dee9304f06ee59418f31bf3365d8ca155f78"}],"manila/tests/api/fixture.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"fc8afbbeb26379ddc1f78c9f470a6397123a1dc0","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"CONF \u003d cfg.CONF"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"class PasteApiFixture(fixtures.Fixture):"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"da85f559_a067b2b5","line":20,"updated":"2015-11-11 17:58:36.000000000","message":"Where is this one used? Looks like it is not used at all.","commit_id":"9429dee9304f06ee59418f31bf3365d8ca155f78"}],"manila/tests/api/test_middleware.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"fc8afbbeb26379ddc1f78c9f470a6397123a1dc0","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        cfg.ConfigOpts.GroupAttr.__getattr__ \u003d self._original_call_method"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def test_valid_cors_options_request(self):"},{"line_number":54,"context_line":"        response \u003d \\"},{"line_number":55,"context_line":"            self.api.api_request(\u0027snapshots\u0027,"},{"line_number":56,"context_line":"                                 method\u003d\u0027OPTIONS\u0027,"},{"line_number":57,"context_line":"                                 headers\u003d{"}],"source_content_type":"text/x-python","patch_set":2,"id":"da85f559_2501946a","line":54,"updated":"2015-11-11 17:58:36.000000000","message":"Lines 53-76 can be replaced with following:\n\n\"\"\"\n\n@ddt.data(\n\n    (\u0027http://valid.example.com\u0027, \u0027http://valid.example.com\u0027),\n\n    (\u0027http://invalid.example.com\u0027, None),\n\n)\n\n@ddt.unpack\n\ndef test_options_request(self, origin_url, acao_header_expected):\n\nresponse \u003d self.api.api_request(\n\n    \u0027snapshots\u0027,\n\n    method\u003d\u0027OPTIONS\u0027,\n\n    headers\u003d{\n\n        \u0027Origin\u0027: origin_url,\n\n        \u0027Access-Control-Request-Method\u0027: \u0027GET\u0027,\n\n    }\n\n)\n\nself.assertEqual(200, response.status)\n\nself.assertEqual(acao_header_expected, response.getheader(\u0027Access-Control-Allow-Origin\u0027))\n\n\"\"\"\n\nSame below.","commit_id":"9429dee9304f06ee59418f31bf3365d8ca155f78"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"fc8afbbeb26379ddc1f78c9f470a6397123a1dc0","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def test_valid_cors_options_request(self):"},{"line_number":54,"context_line":"        response \u003d \\"},{"line_number":55,"context_line":"            self.api.api_request(\u0027snapshots\u0027,"},{"line_number":56,"context_line":"                                 method\u003d\u0027OPTIONS\u0027,"},{"line_number":57,"context_line":"                                 headers\u003d{"},{"line_number":58,"context_line":"                                     \u0027Origin\u0027: \u0027http://valid.example.com\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"da85f559_a0e01297","line":55,"updated":"2015-11-11 17:58:36.000000000","message":"Also, if it is not required to use exactly \"snapshots\" here, then, better, to use fake test things like \"foo\", \"bar\", etc...","commit_id":"9429dee9304f06ee59418f31bf3365d8ca155f78"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"fc8afbbeb26379ddc1f78c9f470a6397123a1dc0","unresolved":false,"context_lines":[{"line_number":59,"context_line":"                                     \u0027Access-Control-Request-Method\u0027: \u0027GET\u0027"},{"line_number":60,"context_line":"                                 })"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        self.assertEqual(response.status, 200)"},{"line_number":63,"context_line":"        self.assertEqual(\u0027http://valid.example.com\u0027,"},{"line_number":64,"context_line":"                         response.getheader(\u0027Access-Control-Allow-Origin\u0027))"},{"line_number":65,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"da85f559_c0b2f693","line":62,"updated":"2015-11-11 17:58:36.000000000","message":"Expected should be first argument. Same below.","commit_id":"9429dee9304f06ee59418f31bf3365d8ca155f78"}]}
