)]}'
{"barbican/tests/api/controllers/test_secrets.py":[{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"43815b5c5e9f44d0f9de7752e6d1dd828891616b","unresolved":false,"context_lines":[{"line_number":265,"context_line":"class WhenGettingPuttingOrDeletingSecret(utils.BarbicanAPIBaseTestCase):"},{"line_number":266,"context_line":""},{"line_number":267,"context_line":"    def test_get_secret_as_plain(self):"},{"line_number":268,"context_line":"        payload \u003d b\u0027this message will self destruct in 10 seconds\u0027"},{"line_number":269,"context_line":"        resp, secret_uuid \u003d create_secret("},{"line_number":270,"context_line":"            self.app,"},{"line_number":271,"context_line":"            payload\u003dpayload,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_7aa20faf","line":268,"updated":"2015-03-13 17:30:21.000000000","message":"Is UTF-8 the default encoding for Python? We have been creating strings and then doing decode(\u0027utf-8\u0027). We were not sure what the default string encoding is or if it is subject to change.","commit_id":"f3e1fd1577f0732c2224e01ae466ccd2ceb417aa"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"43815b5c5e9f44d0f9de7752e6d1dd828891616b","unresolved":false,"context_lines":[{"line_number":281,"context_line":"        self.assertEqual(get_resp.status_int, 200)"},{"line_number":282,"context_line":"        self.assertEqual(payload, get_resp.body)"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"    def test_get_secret_meta_for_binary(self):"},{"line_number":285,"context_line":"        payload \u003d \u0027a123\u0027"},{"line_number":286,"context_line":"        resp, secret_uuid \u003d create_secret("},{"line_number":287,"context_line":"            self.app,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_3ad8971d","line":284,"updated":"2015-03-13 17:30:21.000000000","message":"I think this should be renamed. The metadata for the secret is not retrieved.","commit_id":"f3e1fd1577f0732c2224e01ae466ccd2ceb417aa"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"cec9ce5bde3149707a4bfe21d6bb9916673d8036","unresolved":false,"context_lines":[{"line_number":281,"context_line":"        self.assertEqual(get_resp.status_int, 200)"},{"line_number":282,"context_line":"        self.assertEqual(payload, get_resp.body)"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"    def test_get_secret_meta_for_binary(self):"},{"line_number":285,"context_line":"        payload \u003d \u0027a123\u0027"},{"line_number":286,"context_line":"        resp, secret_uuid \u003d create_secret("},{"line_number":287,"context_line":"            self.app,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_d10be121","line":284,"in_reply_to":"9a80dd14_3ad8971d","updated":"2015-03-13 17:51:27.000000000","message":"totally makes sense. I\u0027ve renamed it to test decoding.","commit_id":"f3e1fd1577f0732c2224e01ae466ccd2ceb417aa"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"43815b5c5e9f44d0f9de7752e6d1dd828891616b","unresolved":false,"context_lines":[{"line_number":296,"context_line":"        get_resp \u003d self.app.get("},{"line_number":297,"context_line":"            \u0027/secrets/{0}\u0027.format(secret_uuid), headers\u003dheaders"},{"line_number":298,"context_line":"        )"},{"line_number":299,"context_line":"        decoded \u003d \u0027k]\\xb7\u0027"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"        self.assertEqual(get_resp.body, decoded)"},{"line_number":302,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_bf0f1938","line":299,"updated":"2015-03-13 17:30:21.000000000","message":"It would b easier to read if this did all of the translations in the code. Like gzip(b64decode(payload)).\n\nI do not believe this test is working as it looks. The \u0027Accept-Encoding\u0027 header does not work. All secrets are returned in binary format of the raw secret unless text/plain is specified. The expected value here is base64.b64decode(\u0027a123\u0027). The value is not gzipped.","commit_id":"f3e1fd1577f0732c2224e01ae466ccd2ceb417aa"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"cec9ce5bde3149707a4bfe21d6bb9916673d8036","unresolved":false,"context_lines":[{"line_number":296,"context_line":"        get_resp \u003d self.app.get("},{"line_number":297,"context_line":"            \u0027/secrets/{0}\u0027.format(secret_uuid), headers\u003dheaders"},{"line_number":298,"context_line":"        )"},{"line_number":299,"context_line":"        decoded \u003d \u0027k]\\xb7\u0027"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"        self.assertEqual(get_resp.body, decoded)"},{"line_number":302,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_31319ded","line":299,"in_reply_to":"9a80dd14_bf0f1938","updated":"2015-03-13 17:51:27.000000000","message":"fair point, this was due to my lack of understanding. I removed the extra encoding header compared to as it was in test_resources.","commit_id":"f3e1fd1577f0732c2224e01ae466ccd2ceb417aa"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"43815b5c5e9f44d0f9de7752e6d1dd828891616b","unresolved":false,"context_lines":[{"line_number":303,"context_line":"    def test_returns_404_when_not_found(self):"},{"line_number":304,"context_line":"        get_resp \u003d self.app.get("},{"line_number":305,"context_line":"            \u0027/secrets/98c876d9-aaac-44e4-8ea8-441932962b05\u0027,"},{"line_number":306,"context_line":"            headers\u003d{\u0027Accept\u0027: \u0027application/json\u0027, \u0027Accept-Encoding\u0027: \u0027gzip\u0027},"},{"line_number":307,"context_line":"            expect_errors\u003dTrue"},{"line_number":308,"context_line":"        )"},{"line_number":309,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_da469b7a","line":306,"updated":"2015-03-13 17:30:21.000000000","message":"Per my comment above I would remove Accept-Encoding references. Otherwise if we actually implement that some day then these tests will break.","commit_id":"f3e1fd1577f0732c2224e01ae466ccd2ceb417aa"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"cec9ce5bde3149707a4bfe21d6bb9916673d8036","unresolved":false,"context_lines":[{"line_number":303,"context_line":"    def test_returns_404_when_not_found(self):"},{"line_number":304,"context_line":"        get_resp \u003d self.app.get("},{"line_number":305,"context_line":"            \u0027/secrets/98c876d9-aaac-44e4-8ea8-441932962b05\u0027,"},{"line_number":306,"context_line":"            headers\u003d{\u0027Accept\u0027: \u0027application/json\u0027, \u0027Accept-Encoding\u0027: \u0027gzip\u0027},"},{"line_number":307,"context_line":"            expect_errors\u003dTrue"},{"line_number":308,"context_line":"        )"},{"line_number":309,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_714eb570","line":306,"in_reply_to":"9a80dd14_da469b7a","updated":"2015-03-13 17:51:27.000000000","message":"same :)","commit_id":"f3e1fd1577f0732c2224e01ae466ccd2ceb417aa"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"d9bc5839830972b01a27ead73eac8c9d572bcc82","unresolved":false,"context_lines":[{"line_number":278,"context_line":"        get_resp \u003d self.app.get("},{"line_number":279,"context_line":"            \u0027/secrets/{0}\u0027.format(secret_uuid), headers\u003dheaders"},{"line_number":280,"context_line":"        )"},{"line_number":281,"context_line":"        self.assertEqual(get_resp.status_int, 200)"},{"line_number":282,"context_line":"        self.assertEqual(payload, get_resp.body)"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"    def test_get_secret_is_decoded_for_binary(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_787f72e0","line":281,"updated":"2015-03-13 19:46:46.000000000","message":"You\u0027re going to want to kill me, but redrobot said these should be in the format assertEqual(expected, returned). He dinged me on that for mine. I don\u0027t know if worth -1. Ask redrobot.","commit_id":"807b33eac9abc2ca17e630b9a01eb5eb17fc0028"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"d9bc5839830972b01a27ead73eac8c9d572bcc82","unresolved":false,"context_lines":[{"line_number":443,"context_line":""},{"line_number":444,"context_line":"        self.assertEqual(put_resp.status_int, 415)"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"    def test_returns_415_with_no_media_type(self):"},{"line_number":447,"context_line":"        resp, secret_uuid \u003d create_secret("},{"line_number":448,"context_line":"            self.app"},{"line_number":449,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_d8777ed2","line":446,"updated":"2015-03-13 19:46:46.000000000","message":"I like on some of the other methods where your pattern is test_returns_{put|post|delete}_*. It makes it easy to identify what the test is doing. Sometimes the {put|post|delete} is missing. It would be great if all of the methods followed that pattern.","commit_id":"807b33eac9abc2ca17e630b9a01eb5eb17fc0028"}]}
