)]}'
{"barbican/api/controllers/secrets.py":[{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"2c1d13bc650f55956540782a65824861ed22d478","unresolved":false,"context_lines":[{"line_number":129,"context_line":""},{"line_number":130,"context_line":"        # default to application/octet-stream if there is no Accept header"},{"line_number":131,"context_line":"        try:"},{"line_number":132,"context_line":"            pecan.override_template(\u0027\u0027, pecan.request.accept.header_value)"},{"line_number":133,"context_line":"            accept_header \u003d pecan.request.accept.header_value"},{"line_number":134,"context_line":"        except Exception:"},{"line_number":135,"context_line":"            accept_header \u003d \u0027application/octet-stream\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_d90c6a96","line":132,"updated":"2015-06-08 14:17:36.000000000","message":"I\u0027m guessing request is just a WebOb request object, if that\u0027s true, could you use pecan.request.headers.get(\u0027accept\u0027) and avoid this whole try/except statement?","commit_id":"70c3b03d3b63fc6a38a4175db88f3e4e8a0ec9e5"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"2c1d13bc650f55956540782a65824861ed22d478","unresolved":false,"context_lines":[{"line_number":131,"context_line":"        try:"},{"line_number":132,"context_line":"            pecan.override_template(\u0027\u0027, pecan.request.accept.header_value)"},{"line_number":133,"context_line":"            accept_header \u003d pecan.request.accept.header_value"},{"line_number":134,"context_line":"        except Exception:"},{"line_number":135,"context_line":"            accept_header \u003d \u0027application/octet-stream\u0027"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        twsk \u003d kwargs.get(\u0027trans_wrapped_session_key\u0027, None)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_b9ae4e96","line":134,"updated":"2015-06-08 14:17:36.000000000","message":"If the above isn\u0027t possible, could this exception be narrowed down? Using the generic exception type feels a bit broad.","commit_id":"70c3b03d3b63fc6a38a4175db88f3e4e8a0ec9e5"}],"barbican/tests/api/controllers/test_secrets.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"ff727c7e90da6f78546ff1911ae3c34ceb4809c1","unresolved":false,"context_lines":[{"line_number":280,"context_line":"        self.assertEqual(200, get_resp.status_int)"},{"line_number":281,"context_line":"        self.assertEqual(payload, get_resp.body)"},{"line_number":282,"context_line":""},{"line_number":283,"context_line":"    def test_get_secret_payload_with_blank_accept_header(self):"},{"line_number":284,"context_line":"        payload \u003d \u0027a very interesting string\u0027"},{"line_number":285,"context_line":"        resp, secret_uuid \u003d create_secret("},{"line_number":286,"context_line":"            self.app,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3afb71cf_6be8e7b4","line":283,"updated":"2015-06-08 22:02:29.000000000","message":"Can you make these two new tests and the existing one above parameterized tests instead?","commit_id":"d0349286e779dfa2eb73ef9e02b7f0d2dab6d4f4"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"dd8f3c6d8eecbf003638e85643ddbcb7c048fa76","unresolved":false,"context_lines":[{"line_number":280,"context_line":"        self.assertEqual(200, get_resp.status_int)"},{"line_number":281,"context_line":"        self.assertEqual(payload, get_resp.body)"},{"line_number":282,"context_line":""},{"line_number":283,"context_line":"    def test_get_secret_payload_with_blank_accept_header(self):"},{"line_number":284,"context_line":"        payload \u003d \u0027a very interesting string\u0027"},{"line_number":285,"context_line":"        resp, secret_uuid \u003d create_secret("},{"line_number":286,"context_line":"            self.app,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3afb71cf_f75a744f","line":283,"in_reply_to":"3afb71cf_1cd3f705","updated":"2015-06-09 00:57:12.000000000","message":"I see, thanks Steve.","commit_id":"d0349286e779dfa2eb73ef9e02b7f0d2dab6d4f4"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"436087a13b42a2c13081c314c911622d4a033229","unresolved":false,"context_lines":[{"line_number":280,"context_line":"        self.assertEqual(200, get_resp.status_int)"},{"line_number":281,"context_line":"        self.assertEqual(payload, get_resp.body)"},{"line_number":282,"context_line":""},{"line_number":283,"context_line":"    def test_get_secret_payload_with_blank_accept_header(self):"},{"line_number":284,"context_line":"        payload \u003d \u0027a very interesting string\u0027"},{"line_number":285,"context_line":"        resp, secret_uuid \u003d create_secret("},{"line_number":286,"context_line":"            self.app,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3afb71cf_711694a8","line":283,"in_reply_to":"3afb71cf_6be8e7b4","updated":"2015-06-08 23:41:10.000000000","message":"An excellent idea.  Watch for next patch...","commit_id":"d0349286e779dfa2eb73ef9e02b7f0d2dab6d4f4"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"5b1915c1323f255dd145d0afcdae5b324990a093","unresolved":false,"context_lines":[{"line_number":280,"context_line":"        self.assertEqual(200, get_resp.status_int)"},{"line_number":281,"context_line":"        self.assertEqual(payload, get_resp.body)"},{"line_number":282,"context_line":""},{"line_number":283,"context_line":"    def test_get_secret_payload_with_blank_accept_header(self):"},{"line_number":284,"context_line":"        payload \u003d \u0027a very interesting string\u0027"},{"line_number":285,"context_line":"        resp, secret_uuid \u003d create_secret("},{"line_number":286,"context_line":"            self.app,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3afb71cf_1cd3f705","line":283,"in_reply_to":"3afb71cf_711694a8","updated":"2015-06-09 00:04:34.000000000","message":"I tried but there are two problems in doing that:\n\n1) this test uses /payload option to get decrypted secret.  Above test uses the \"old way\" of accept header\n\n2) I want to test with accept header set to empty string as well as omitting the accept header.  Not a good way to do that via parameterized test.\n\nWhat do you think?","commit_id":"d0349286e779dfa2eb73ef9e02b7f0d2dab6d4f4"}]}
