)]}'
{"barbican/tests/api/controllers/test_secrets.py":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"0b2cf9919d42de000e37f8088f48f9df858c5043","unresolved":false,"context_lines":[{"line_number":160,"context_line":"# ----------------------- Helper Functions ---------------------------"},{"line_number":161,"context_line":"def create_secret(app, name\u003dNone, algorithm\u003dNone, bit_length\u003dNone, mode\u003dNone,"},{"line_number":162,"context_line":"                  expiration\u003dNone, payload\u003dNone, content_type\u003dNone,"},{"line_number":163,"context_line":"                  content_encoding\u003dNone, transport_key_id\u003dNone,"},{"line_number":164,"context_line":"                  transport_key_needed\u003dNone, expect_errors\u003dFalse):"},{"line_number":165,"context_line":"    request \u003d {"},{"line_number":166,"context_line":"        \u0027name\u0027: name,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_e8dbab79","line":163,"updated":"2015-03-07 02:00:56.000000000","message":"can we call these \u0027payload_content_type\u0027 and \u0027payload_content_encoding\u0027 to be consistent?  An added bonus is that there won\u0027t be confusion with the content-type http header.","commit_id":"0f45e9a834b6e0da918cf861108ad5db95a8487e"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"223fe7f5b719cc2a9178bd2bf7d62fc4e442ee16","unresolved":false,"context_lines":[{"line_number":160,"context_line":"# ----------------------- Helper Functions ---------------------------"},{"line_number":161,"context_line":"def create_secret(app, name\u003dNone, algorithm\u003dNone, bit_length\u003dNone, mode\u003dNone,"},{"line_number":162,"context_line":"                  expiration\u003dNone, payload\u003dNone, content_type\u003dNone,"},{"line_number":163,"context_line":"                  content_encoding\u003dNone, transport_key_id\u003dNone,"},{"line_number":164,"context_line":"                  transport_key_needed\u003dNone, expect_errors\u003dFalse):"},{"line_number":165,"context_line":"    request \u003d {"},{"line_number":166,"context_line":"        \u0027name\u0027: name,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_28bf83ab","line":163,"in_reply_to":"9a80dd14_e8dbab79","updated":"2015-03-07 02:26:52.000000000","message":"I don\u0027t think it\u0027s necessary for this. Besides, this helper doesn\u0027t taken in any header values anyhow. I suppose I could change it, but personally, I\u0027m not seeing the value in carrying around the \"payload_\" when in the context of create_secret there is only 1 use for content_type and content_encoding.","commit_id":"0f45e9a834b6e0da918cf861108ad5db95a8487e"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"0b2cf9919d42de000e37f8088f48f9df858c5043","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        \u0027transport_key_id\u0027: transport_key_id,"},{"line_number":175,"context_line":"        \u0027transport_key_needed\u0027: transport_key_needed"},{"line_number":176,"context_line":"    }"},{"line_number":177,"context_line":"    cleaned_request \u003d {key: val for key, val in request.items()"},{"line_number":178,"context_line":"                       if val is not None}"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    resp \u003d app.post_json("}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_c84c2745","line":177,"updated":"2015-03-07 02:00:56.000000000","message":"is there ever a situation where one might want to pass None (ie *not* have it cleaned?)","commit_id":"0f45e9a834b6e0da918cf861108ad5db95a8487e"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"223fe7f5b719cc2a9178bd2bf7d62fc4e442ee16","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        \u0027transport_key_id\u0027: transport_key_id,"},{"line_number":175,"context_line":"        \u0027transport_key_needed\u0027: transport_key_needed"},{"line_number":176,"context_line":"    }"},{"line_number":177,"context_line":"    cleaned_request \u003d {key: val for key, val in request.items()"},{"line_number":178,"context_line":"                       if val is not None}"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    resp \u003d app.post_json("}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_c8d267ff","line":177,"in_reply_to":"9a80dd14_c84c2745","updated":"2015-03-07 02:26:52.000000000","message":"No. If you want that. If someone is testing that, they should make the call directly. This method is purely a convenience method that handles a good percentage of unit test use cases.","commit_id":"0f45e9a834b6e0da918cf861108ad5db95a8487e"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"0b2cf9919d42de000e37f8088f48f9df858c5043","unresolved":false,"context_lines":[{"line_number":186,"context_line":"    created_uuid \u003d None"},{"line_number":187,"context_line":"    if resp.status_int \u003d\u003d 201:"},{"line_number":188,"context_line":"        secret_ref \u003d resp.json.get(\u0027secret_ref\u0027, \u0027\u0027)"},{"line_number":189,"context_line":"        _, created_uuid \u003d os.path.split(secret_ref)"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"    return (resp, created_uuid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_c873477e","line":189,"updated":"2015-03-07 02:00:56.000000000","message":"IIRC os.path.split wasn\u0027t the recommended way to do URL explosions?  urlparse I think?","commit_id":"0f45e9a834b6e0da918cf861108ad5db95a8487e"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"0d96c938f6934bbc1f0281e1dada25d360152fb8","unresolved":false,"context_lines":[{"line_number":186,"context_line":"    created_uuid \u003d None"},{"line_number":187,"context_line":"    if resp.status_int \u003d\u003d 201:"},{"line_number":188,"context_line":"        secret_ref \u003d resp.json.get(\u0027secret_ref\u0027, \u0027\u0027)"},{"line_number":189,"context_line":"        _, created_uuid \u003d os.path.split(secret_ref)"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"    return (resp, created_uuid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_86b93b7b","line":189,"in_reply_to":"9a80dd14_86013b6c","updated":"2015-03-07 19:11:54.000000000","message":"Nope. It will behave the same and split the tail off of a url; even on Windows.","commit_id":"0f45e9a834b6e0da918cf861108ad5db95a8487e"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"223fe7f5b719cc2a9178bd2bf7d62fc4e442ee16","unresolved":false,"context_lines":[{"line_number":186,"context_line":"    created_uuid \u003d None"},{"line_number":187,"context_line":"    if resp.status_int \u003d\u003d 201:"},{"line_number":188,"context_line":"        secret_ref \u003d resp.json.get(\u0027secret_ref\u0027, \u0027\u0027)"},{"line_number":189,"context_line":"        _, created_uuid \u003d os.path.split(secret_ref)"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"    return (resp, created_uuid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_e8248b0e","line":189,"in_reply_to":"9a80dd14_c873477e","updated":"2015-03-07 02:26:52.000000000","message":"I\u0027m not doing a url explosion. I just want the tail of a request path. Sooo, os.path.split is the most efficient way of doing that.","commit_id":"0f45e9a834b6e0da918cf861108ad5db95a8487e"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"062420877b30cfdd0a934c91c8d920f5b3266f1e","unresolved":false,"context_lines":[{"line_number":186,"context_line":"    created_uuid \u003d None"},{"line_number":187,"context_line":"    if resp.status_int \u003d\u003d 201:"},{"line_number":188,"context_line":"        secret_ref \u003d resp.json.get(\u0027secret_ref\u0027, \u0027\u0027)"},{"line_number":189,"context_line":"        _, created_uuid \u003d os.path.split(secret_ref)"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"    return (resp, created_uuid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_86013b6c","line":189,"in_reply_to":"9a80dd14_e8248b0e","updated":"2015-03-07 18:34:23.000000000","message":"On a windows box will this try to split by backwards slash (\\) instead?","commit_id":"0f45e9a834b6e0da918cf861108ad5db95a8487e"}]}
