)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Adds base behaviors, secret behaviors and the secret smoke tests"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Base behvoirs was copied from barbican API and was not changed."},{"line_number":10,"context_line":"Secret behaviors contains all the actions the client can take on secrets"},{"line_number":11,"context_line":"Secret smoke tests are all positive tests, and they"},{"line_number":12,"context_line":"test the basic functions of secrets."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"da86d52c_2bbc786c","line":9,"updated":"2015-01-31 04:29:27.000000000","message":"typo","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"}],"etc/functional_tests.conf":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":11,"context_line":"max_payload_size\u003d10000"},{"line_number":12,"context_line":"project_domain_name\u003dDefault"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"[identity]"},{"line_number":16,"context_line":"# Replace these with values that represent your identity configuration"},{"line_number":17,"context_line":"uri\u003dhttp://localhost:5000/v2.0"}],"source_content_type":"text/plain","patch_set":3,"id":"da86d52c_abaf882a","line":14,"updated":"2015-01-31 04:29:27.000000000","message":"dont need this blank line","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"19371e9db6f5e6ea6f53d3a5a2185937f983aac6","unresolved":false,"context_lines":[{"line_number":27,"context_line":"admin_password\u003dpassword"},{"line_number":28,"context_line":"admin_domain_name\u003dDefault"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"[identity-feature-enabled]"},{"line_number":31,"context_line":"# Leaving this as a placeholder"}],"source_content_type":"text/plain","patch_set":4,"id":"da86d52c_b1e18800","line":30,"updated":"2015-02-02 17:47:28.000000000","message":"want this identical to base so there should be a blank line at 30","commit_id":"61ac764b2af44865a60991306f258ec3209bfe46"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"12c0c4e68e3794468770429d751c2b14de05d23e","unresolved":false,"context_lines":[{"line_number":27,"context_line":"admin_password\u003dpassword"},{"line_number":28,"context_line":"admin_domain_name\u003dDefault"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"[identity-feature-enabled]"},{"line_number":31,"context_line":"# Leaving this as a placeholder"}],"source_content_type":"text/plain","patch_set":4,"id":"da86d52c_b7489888","line":30,"in_reply_to":"da86d52c_b1e18800","updated":"2015-02-02 18:24:14.000000000","message":"Done","commit_id":"61ac764b2af44865a60991306f258ec3209bfe46"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"9db76d9a48e08c632336b84b7ef9b7c66fad1f9f","unresolved":false,"context_lines":[{"line_number":11,"context_line":"max_payload_size\u003d10000"},{"line_number":12,"context_line":"project_domain_name\u003dDefault"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"[identity]"},{"line_number":16,"context_line":"# Replace these with values that represent your identity configuration"},{"line_number":17,"context_line":"uri\u003dhttp://localhost:5000/v2.0"}],"source_content_type":"text/plain","patch_set":8,"id":"da86d52c_c48a54be","line":14,"updated":"2015-02-04 17:52:07.000000000","message":"zap blank line","commit_id":"5cd43075f802b5439be5b87393f95633a643c0b5"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"16e77488c94aa1a5ac8d7191323df253f6a70d27","unresolved":false,"context_lines":[{"line_number":12,"context_line":"project_domain_name\u003dDefault"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"[identity]"},{"line_number":16,"context_line":"# Replace these with values that represent your identity configuration"},{"line_number":17,"context_line":"uri\u003dhttp://localhost:5000/v2.0"},{"line_number":18,"context_line":"uri_v3\u003dhttp://localhost:5000/v3"}],"source_content_type":"text/plain","patch_set":13,"id":"da86d52c_bb1aacc3","line":15,"updated":"2015-02-05 19:06:18.000000000","message":"the blank line is back.","commit_id":"6b8fac66b5aeb8d97e271432f7bee170d5a7fc37"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"5374e588b461a8bf41e201c66d932544c6fb01e0","unresolved":false,"context_lines":[{"line_number":12,"context_line":"project_domain_name\u003dDefault"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"[identity]"},{"line_number":16,"context_line":"# Replace these with values that represent your identity configuration"},{"line_number":17,"context_line":"uri\u003dhttp://localhost:5000/v2.0"},{"line_number":18,"context_line":"uri_v3\u003dhttp://localhost:5000/v3"}],"source_content_type":"text/plain","patch_set":13,"id":"da86d52c_aa2287a0","line":15,"in_reply_to":"da86d52c_bb1aacc3","updated":"2015-02-11 16:13:02.000000000","message":"What Steve said.","commit_id":"6b8fac66b5aeb8d97e271432f7bee170d5a7fc37"}],"functionaltests/client/v1/behaviors/base_behaviors.py":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        self.client \u003d client"},{"line_number":26,"context_line":"        self.created_entities \u003d []"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def get_json(self, response):"},{"line_number":29,"context_line":"        json_data \u003d dict()"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_662b0783","line":28,"updated":"2015-01-31 04:29:27.000000000","message":"is this needed for client, or only for ReST API?  If not needed for client then we should remove it - maybe in a follow-on CR since this one already says this file is unchanged.","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"5374e588b461a8bf41e201c66d932544c6fb01e0","unresolved":false,"context_lines":[{"line_number":23,"context_line":"    def __init__(self, client):"},{"line_number":24,"context_line":"        self.LOG \u003d logging.getLogger(type(self).__name__)"},{"line_number":25,"context_line":"        self.client \u003d client"},{"line_number":26,"context_line":"        self.created_entities \u003d []"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def get_json(self, response):"},{"line_number":29,"context_line":"        json_data \u003d dict()"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_2ac21753","line":26,"updated":"2015-02-11 16:13:02.000000000","message":"I would think that this attribute belongs in the subclass that uses it, instead of here, since no methods in this class use it.","commit_id":"6b8fac66b5aeb8d97e271432f7bee170d5a7fc37"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"200a9e11012ecfb0391370bfe9063971c7461060","unresolved":false,"context_lines":[{"line_number":21,"context_line":"class BaseBehaviors(object):"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    def __init__(self, client):"},{"line_number":24,"context_line":"        self.LOG \u003d logging.getLogger(type(self).__name__)"},{"line_number":25,"context_line":"        self.client \u003d client"},{"line_number":26,"context_line":"        self.created_entities \u003d []"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"da86d52c_bd1b571b","line":24,"updated":"2015-02-06 18:51:04.000000000","message":"It seems odd to me not having a LOG defined at the top of the module, but I suppose this gives more fine grained prefix output in logs?","commit_id":"39364cb1d61120f1bd4fe03b138ca872efa2288a"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"b500235220b75a1664a127863db3d799b2cf45c0","unresolved":false,"context_lines":[{"line_number":21,"context_line":"class BaseBehaviors(object):"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    def __init__(self, client):"},{"line_number":24,"context_line":"        self.LOG \u003d logging.getLogger(type(self).__name__)"},{"line_number":25,"context_line":"        self.client \u003d client"},{"line_number":26,"context_line":"        self.created_entities \u003d []"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"da86d52c_588269c9","line":24,"in_reply_to":"da86d52c_bd1b571b","updated":"2015-02-06 20:09:16.000000000","message":"Done","commit_id":"39364cb1d61120f1bd4fe03b138ca872efa2288a"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"200a9e11012ecfb0391370bfe9063971c7461060","unresolved":false,"context_lines":[{"line_number":32,"context_line":"            json_data \u003d response.json()"},{"line_number":33,"context_line":"        except ValueError as e:"},{"line_number":34,"context_line":"            self.LOG.exception(e)"},{"line_number":35,"context_line":"            self.LOG.error(\"Error converting response to JSON: %s\", e.message)"},{"line_number":36,"context_line":"            self.LOG.error(\"Response Content: %s\", response.content)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"        return json_data"}],"source_content_type":"text/x-python","patch_set":14,"id":"da86d52c_bde277ff","line":35,"updated":"2015-02-06 18:51:04.000000000","message":"I believe this is covered by the LOG.exception above.","commit_id":"39364cb1d61120f1bd4fe03b138ca872efa2288a"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"b500235220b75a1664a127863db3d799b2cf45c0","unresolved":false,"context_lines":[{"line_number":32,"context_line":"            json_data \u003d response.json()"},{"line_number":33,"context_line":"        except ValueError as e:"},{"line_number":34,"context_line":"            self.LOG.exception(e)"},{"line_number":35,"context_line":"            self.LOG.error(\"Error converting response to JSON: %s\", e.message)"},{"line_number":36,"context_line":"            self.LOG.error(\"Response Content: %s\", response.content)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"        return json_data"}],"source_content_type":"text/x-python","patch_set":14,"id":"da86d52c_78872dd8","line":35,"in_reply_to":"da86d52c_bde277ff","updated":"2015-02-06 20:09:16.000000000","message":"Done","commit_id":"39364cb1d61120f1bd4fe03b138ca872efa2288a"}],"functionaltests/client/v1/behaviors/secret_behaviors.py":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"\"\"\""},{"line_number":2,"context_line":"Copyright 2014 Rackspace"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":5,"context_line":"you may not use this file except in compliance with the License."}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_cbacbc38","line":2,"updated":"2015-01-31 04:29:27.000000000","message":"2015","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":20,"context_line":"class SecretBehaviors(base_behaviors.BaseBehaviors):"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    def create_secret(self, secret):"},{"line_number":23,"context_line":"        \"\"\"Create a secret from the data in the client object."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"        :param secret: A barbican client secret object"},{"line_number":26,"context_line":"        :return: The ref to the created secret"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_ab76a8d6","line":23,"updated":"2015-01-31 04:29:27.000000000","message":"would be good to give a quick overview of create vs store in the docstring here - it can be quite confusing.","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"        resp \u003d secret.store()"},{"line_number":30,"context_line":"        secret_ref \u003d str(resp)"},{"line_number":31,"context_line":"        if secret_ref:"},{"line_number":32,"context_line":"            self.created_entities.append(secret_ref)"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"        return secret_ref"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_2b63981b","line":31,"updated":"2015-01-31 04:29:27.000000000","message":"should this test resp then only assign secret_ref if resp is not None?","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        \"\"\""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        return client.secrets.get(secret_ref,"},{"line_number":49,"context_line":"                                  payload_content_type\u003dpayload_content_type)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    def get_secrets(self, client, limit\u003d10, offset\u003d0):"},{"line_number":52,"context_line":"        \"\"\"Handles getting a list of secrets."}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_6b44b074","line":49,"updated":"2015-01-31 04:29:27.000000000","message":"shouldn\u0027t we also pass in the payload encoding?","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":51,"context_line":"    def get_secrets(self, client, limit\u003d10, offset\u003d0):"},{"line_number":52,"context_line":"        \"\"\"Handles getting a list of secrets."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        :param limit: limits number of returned secrets"},{"line_number":55,"context_line":"        :param offset: represents how many records to skip before retrieving"},{"line_number":56,"context_line":"                       the list"},{"line_number":57,"context_line":"        :return: A list of secret objects"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_0b55f41c","line":54,"updated":"2015-01-31 04:29:27.000000000","message":"forgot :param for client","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        :return: A list of secret objects"},{"line_number":58,"context_line":"        \"\"\""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        resp \u003d client.secrets.list(limit\u003dlimit, offset\u003doffset)"},{"line_number":61,"context_line":"        return resp"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def delete_secret(self, client, secret_ref, expected_fail\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_ab5dc84a","line":60,"updated":"2015-01-31 04:29:27.000000000","message":"no need for resp - just return client.secrets.list(...)","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":63,"context_line":"    def delete_secret(self, client, secret_ref, expected_fail\u003dFalse):"},{"line_number":64,"context_line":"        \"\"\"Delete a secret."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"        :param secret_ref: HATEOS ref of the secret to be deleted"},{"line_number":67,"context_line":"        :param expected_fail: If test is expected to fail the deletion"},{"line_number":68,"context_line":"        :return: If delete is successful nothing will be returned."},{"line_number":69,"context_line":"            If unsuccessful a string with the error will be returned."}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_ab24e8c6","line":66,"updated":"2015-01-31 04:29:27.000000000","message":"forgot :param for client","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":69,"context_line":"            If unsuccessful a string with the error will be returned."},{"line_number":70,"context_line":"        \"\"\""},{"line_number":71,"context_line":"        secret \u003d client.secrets.get(secret_ref)"},{"line_number":72,"context_line":"        resp \u003d secret.delete()"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        if not expected_fail:"},{"line_number":75,"context_line":"            self.created_entities.remove(secret_ref)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_6b12f063","line":72,"updated":"2015-01-31 04:29:27.000000000","message":"this needs to be within a try/except since it will raise an exception if it fails (according to https://github.com/cloudkeep/python-barbicanclient/wiki/Client-Usage#delete).  In the except handler we could return the exception error as the result of this function.","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        if not expected_fail:"},{"line_number":75,"context_line":"            self.created_entities.remove(secret_ref)"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        return resp"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def delete_all_created_secrets(self, client):"},{"line_number":80,"context_line":"        \"\"\"Delete all of the secrets that we have created.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_cb083c30","line":77,"updated":"2015-01-31 04:29:27.000000000","message":"Don\u0027t need this if we do the exception thing in comment above.","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        return resp"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def delete_all_created_secrets(self, client):"},{"line_number":80,"context_line":"        \"\"\"Delete all of the secrets that we have created.\"\"\""},{"line_number":81,"context_line":"        slist \u003d []"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"        for entity in self.created_entities:"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_eb050015","line":80,"updated":"2015-01-31 04:29:27.000000000","message":"add :param for client","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":84,"context_line":"            slist.append(entity)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        for secret_ref in slist:"},{"line_number":87,"context_line":"            self.delete_secret(client, secret_ref)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_c612f357","line":87,"updated":"2015-01-31 04:29:27.000000000","message":"I would surround with try/except just to be careful.  We don\u0027t expect any exceptions on these, but who knows...","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"19371e9db6f5e6ea6f53d3a5a2185937f983aac6","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        \"\"\""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        return client.secrets.get(secret_ref,"},{"line_number":52,"context_line":"                                  payload_content_type\u003dpayload_content_type)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def get_secrets(self, client, limit\u003d10, offset\u003d0):"},{"line_number":55,"context_line":"        \"\"\"Handles getting a list of secrets."}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_3172f849","line":52,"updated":"2015-02-02 17:47:28.000000000","message":"don\u0027t we need the payload content encoding?","commit_id":"61ac764b2af44865a60991306f258ec3209bfe46"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"12c0c4e68e3794468770429d751c2b14de05d23e","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        \"\"\""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        return client.secrets.get(secret_ref,"},{"line_number":52,"context_line":"                                  payload_content_type\u003dpayload_content_type)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def get_secrets(self, client, limit\u003d10, offset\u003d0):"},{"line_number":55,"context_line":"        \"\"\"Handles getting a list of secrets."}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_97e9d482","line":52,"in_reply_to":"da86d52c_3172f849","updated":"2015-02-02 18:24:14.000000000","message":"payload content encoding is not part of get secrets.","commit_id":"61ac764b2af44865a60991306f258ec3209bfe46"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"19371e9db6f5e6ea6f53d3a5a2185937f983aac6","unresolved":false,"context_lines":[{"line_number":73,"context_line":"            If unsuccessful a string with the error will be returned."},{"line_number":74,"context_line":"        \"\"\""},{"line_number":75,"context_line":"        secret \u003d client.secrets.get(secret_ref)"},{"line_number":76,"context_line":"        resp \u003d secret.delete()"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        if not expected_fail:"},{"line_number":79,"context_line":"            self.created_entities.remove(secret_ref)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_71bab0c1","line":76,"updated":"2015-02-02 17:47:28.000000000","message":"see patchset #3 comment here - need try/except around this","commit_id":"61ac764b2af44865a60991306f258ec3209bfe46"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"84b7ad09f334a76c17a1215bfe9fc8a011f3f219","unresolved":false,"context_lines":[{"line_number":73,"context_line":"            If unsuccessful a string with the error will be returned."},{"line_number":74,"context_line":"        \"\"\""},{"line_number":75,"context_line":"        secret \u003d client.secrets.get(secret_ref)"},{"line_number":76,"context_line":"        resp \u003d secret.delete()"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        if not expected_fail:"},{"line_number":79,"context_line":"            self.created_entities.remove(secret_ref)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_faf4b5d0","line":76,"in_reply_to":"da86d52c_71bab0c1","updated":"2015-02-02 18:31:51.000000000","message":"Try/excepts will be added when functional tests are implemented.","commit_id":"61ac764b2af44865a60991306f258ec3209bfe46"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"19371e9db6f5e6ea6f53d3a5a2185937f983aac6","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        return resp"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def delete_all_created_secrets(self, client):"},{"line_number":84,"context_line":"        \"\"\"Delete all of the secrets that we have created.\"\"\""},{"line_number":85,"context_line":"        slist \u003d []"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        for entity in self.created_entities:"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_5105ac78","line":84,"updated":"2015-02-02 17:47:28.000000000","message":":param for client","commit_id":"61ac764b2af44865a60991306f258ec3209bfe46"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"12c0c4e68e3794468770429d751c2b14de05d23e","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        return resp"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def delete_all_created_secrets(self, client):"},{"line_number":84,"context_line":"        \"\"\"Delete all of the secrets that we have created.\"\"\""},{"line_number":85,"context_line":"        slist \u003d []"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        for entity in self.created_entities:"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_57bd9c67","line":84,"in_reply_to":"da86d52c_5105ac78","updated":"2015-02-02 18:24:14.000000000","message":"Done","commit_id":"61ac764b2af44865a60991306f258ec3209bfe46"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"19371e9db6f5e6ea6f53d3a5a2185937f983aac6","unresolved":false,"context_lines":[{"line_number":88,"context_line":"            slist.append(entity)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        for secret_ref in slist:"},{"line_number":91,"context_line":"            self.delete_secret(client, secret_ref)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_512ccc02","line":91,"updated":"2015-02-02 17:47:28.000000000","message":"should be within try/except - see previous patchset comment","commit_id":"61ac764b2af44865a60991306f258ec3209bfe46"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"12c0c4e68e3794468770429d751c2b14de05d23e","unresolved":false,"context_lines":[{"line_number":88,"context_line":"            slist.append(entity)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        for secret_ref in slist:"},{"line_number":91,"context_line":"            self.delete_secret(client, secret_ref)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_97455472","line":91,"in_reply_to":"da86d52c_512ccc02","updated":"2015-02-02 18:24:14.000000000","message":"This is a place holder for the future delete all secrets clean up. This was placed on hold to make sure we got the smoke tests through. We will need to determine the preferred clean up method for the client tests.","commit_id":"61ac764b2af44865a60991306f258ec3209bfe46"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"38762184b1681ea275e67e7897c38077061a7d85","unresolved":false,"context_lines":[{"line_number":72,"context_line":"            If unsuccessful a string with the error will be returned."},{"line_number":73,"context_line":"        \"\"\""},{"line_number":74,"context_line":"        secret \u003d client.secrets.get(secret_ref)"},{"line_number":75,"context_line":"        resp \u003d secret.delete()"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        if not expected_fail:"},{"line_number":78,"context_line":"            self.created_entities.remove(secret_ref)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_e54968d1","line":75,"updated":"2015-02-03 01:58:05.000000000","message":"why wait to put try/except here?  its necessary and better get it now so we don\u0027t forget about it.  If theres not a good reason to omit then I say lets put it in now.","commit_id":"76350ce272d579b00b22d04cbf9ac88d358784fd"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"77ed95fbb4a1afdb91a64cc346525b96e7dd97fa","unresolved":false,"context_lines":[{"line_number":72,"context_line":"            If unsuccessful a string with the error will be returned."},{"line_number":73,"context_line":"        \"\"\""},{"line_number":74,"context_line":"        secret \u003d client.secrets.get(secret_ref)"},{"line_number":75,"context_line":"        resp \u003d secret.delete()"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        if not expected_fail:"},{"line_number":78,"context_line":"            self.created_entities.remove(secret_ref)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_9c7619a3","line":75,"in_reply_to":"da86d52c_e54968d1","updated":"2015-02-03 21:37:02.000000000","message":"Will address exceptions in a follow-on CR.","commit_id":"76350ce272d579b00b22d04cbf9ac88d358784fd"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"9db76d9a48e08c632336b84b7ef9b7c66fad1f9f","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    def create_secret(self, secret):"},{"line_number":23,"context_line":"        \"\"\"Creating a secret in the client only creates the Secret object."},{"line_number":24,"context_line":"        The secret is not saved to the database until a store is called."},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"        :param secret: A barbican client secret object"},{"line_number":27,"context_line":"        :return: The ref to the created secret"}],"source_content_type":"text/x-python","patch_set":8,"id":"da86d52c_4f84bd5d","line":24,"updated":"2015-02-04 17:52:07.000000000","message":"this name and docstring is confusing since the whole barbican create vs store is confusing.  I would call this method \"store_secret\" since that\u0027s what it is doing.","commit_id":"5cd43075f802b5439be5b87393f95633a643c0b5"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"9db76d9a48e08c632336b84b7ef9b7c66fad1f9f","unresolved":false,"context_lines":[{"line_number":40,"context_line":"            :param client: barbican client object"},{"line_number":41,"context_line":"            :param secret_ref: A secret reference"},{"line_number":42,"context_line":"            :param payload_content_type: The secrets content type"},{"line_number":43,"context_line":"            :param payload_content_encoding: The secrets encoding"},{"line_number":44,"context_line":"            :return: A barbican secret object with all meta and payload"},{"line_number":45,"context_line":"                information"},{"line_number":46,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":8,"id":"da86d52c_efc2d183","line":43,"updated":"2015-02-04 17:52:07.000000000","message":"don\u0027t need the content encoding :param","commit_id":"5cd43075f802b5439be5b87393f95633a643c0b5"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"9db76d9a48e08c632336b84b7ef9b7c66fad1f9f","unresolved":false,"context_lines":[{"line_number":42,"context_line":"            :param payload_content_type: The secrets content type"},{"line_number":43,"context_line":"            :param payload_content_encoding: The secrets encoding"},{"line_number":44,"context_line":"            :return: A barbican secret object with all meta and payload"},{"line_number":45,"context_line":"                information"},{"line_number":46,"context_line":"        \"\"\""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        return client.secrets.get(secret_ref,"}],"source_content_type":"text/x-python","patch_set":8,"id":"da86d52c_8f56b5cc","line":45,"updated":"2015-02-04 17:52:07.000000000","message":"add :raises for exception if it can\u0027t be found","commit_id":"5cd43075f802b5439be5b87393f95633a643c0b5"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"9db76d9a48e08c632336b84b7ef9b7c66fad1f9f","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        :param client: barbican client object"},{"line_number":68,"context_line":"        :param secret_ref: HATEOS ref of the secret to be deleted"},{"line_number":69,"context_line":"        :param expected_fail: If test is expected to fail the deletion"},{"line_number":70,"context_line":"        :return: If delete is successful nothing will be returned."},{"line_number":71,"context_line":"            If unsuccessful a string with the error will be returned."},{"line_number":72,"context_line":"        \"\"\""},{"line_number":73,"context_line":"        secret \u003d client.secrets.get(secret_ref)"}],"source_content_type":"text/x-python","patch_set":8,"id":"da86d52c_0fa8051f","line":70,"updated":"2015-02-04 17:52:07.000000000","message":"don\u0027t need the \"if unsuccessful...\"","commit_id":"5cd43075f802b5439be5b87393f95633a643c0b5"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"9db76d9a48e08c632336b84b7ef9b7c66fad1f9f","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        :param secret_ref: HATEOS ref of the secret to be deleted"},{"line_number":69,"context_line":"        :param expected_fail: If test is expected to fail the deletion"},{"line_number":70,"context_line":"        :return: If delete is successful nothing will be returned."},{"line_number":71,"context_line":"            If unsuccessful a string with the error will be returned."},{"line_number":72,"context_line":"        \"\"\""},{"line_number":73,"context_line":"        secret \u003d client.secrets.get(secret_ref)"},{"line_number":74,"context_line":"        resp \u003d secret.delete()"}],"source_content_type":"text/x-python","patch_set":8,"id":"da86d52c_6fda614d","line":71,"updated":"2015-02-04 17:52:07.000000000","message":"lets say :raises exception if the get or delete fails.  Then in follow-on CRs, the tests will use assert_raises to check for the expected exception.","commit_id":"5cd43075f802b5439be5b87393f95633a643c0b5"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"5374e588b461a8bf41e201c66d932544c6fb01e0","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from functionaltests.client.v1.behaviors import base_behaviors"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class SecretBehaviors(base_behaviors.BaseBehaviors):"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    def create_secret(self, data):"},{"line_number":23,"context_line":"        \"\"\"Creates a Barbican client secret object."}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_0aaab370","line":20,"updated":"2015-02-11 16:13:02.000000000","message":"It\u0027s not clear to me what the advantage of these helper methods is, as opposed to calling the methods on the client directly?","commit_id":"6b8fac66b5aeb8d97e271432f7bee170d5a7fc37"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"16e77488c94aa1a5ac8d7191323df253f6a70d27","unresolved":false,"context_lines":[{"line_number":20,"context_line":"class SecretBehaviors(base_behaviors.BaseBehaviors):"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    def create_secret(self, data):"},{"line_number":23,"context_line":"        \"\"\"Creates a Barbican client secret object."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"        This does not store the object."},{"line_number":26,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_3b86bcdb","line":23,"updated":"2015-02-05 19:06:18.000000000","message":":param for data :return for the object","commit_id":"6b8fac66b5aeb8d97e271432f7bee170d5a7fc37"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"8b74f0eddebb2d98126710b9771fccbab106cf8c","unresolved":false,"context_lines":[{"line_number":20,"context_line":"class SecretBehaviors(base_behaviors.BaseBehaviors):"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    def create_secret(self, data):"},{"line_number":23,"context_line":"        \"\"\"Creates a Barbican client secret object."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"        This does not store the object."},{"line_number":26,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_292acd7e","line":23,"in_reply_to":"da86d52c_3b86bcdb","updated":"2015-02-06 16:34:53.000000000","message":"i say lets go ahead and add the documentation info here. Otherwise it would have to be a separate story and it may not be done. Just a suggestion.","commit_id":"6b8fac66b5aeb8d97e271432f7bee170d5a7fc37"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"16e77488c94aa1a5ac8d7191323df253f6a70d27","unresolved":false,"context_lines":[{"line_number":22,"context_line":"    def create_secret(self, data):"},{"line_number":23,"context_line":"        \"\"\"Creates a Barbican client secret object."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"        This does not store the object."},{"line_number":26,"context_line":"        \"\"\""},{"line_number":27,"context_line":"        return self.client.secrets.create(**data)"},{"line_number":28,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_9b76c804","line":25,"updated":"2015-02-05 19:06:18.000000000","message":"...in the database.","commit_id":"6b8fac66b5aeb8d97e271432f7bee170d5a7fc37"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"16e77488c94aa1a5ac8d7191323df253f6a70d27","unresolved":false,"context_lines":[{"line_number":27,"context_line":"        return self.client.secrets.create(**data)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def store_secret(self, secret):"},{"line_number":30,"context_line":"        \"\"\"Stores a secret."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"        Creating a secret in the client only creates the Secret object."},{"line_number":33,"context_line":"        The secret is not saved to the database until a store is called."}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_7bd914f2","line":30,"updated":"2015-02-05 19:06:18.000000000","message":"...object in the barbican datastore.","commit_id":"6b8fac66b5aeb8d97e271432f7bee170d5a7fc37"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"98fbda15f7947a2d9320211030d2d133d427fd69","unresolved":false,"context_lines":[{"line_number":45,"context_line":"            self.created_entities.append(resp)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        return resp"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def get_secret(self, secret_ref, payload_content_type\u003dNone):"},{"line_number":50,"context_line":"        \"\"\"Retrieves a secret and its payload."},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"da86d52c_0f7349b5","line":48,"updated":"2015-02-06 17:36:01.000000000","message":"extra blank line","commit_id":"39364cb1d61120f1bd4fe03b138ca872efa2288a"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"42b2c52064c77c8b4c847a6ad22f6f61b46c6172","unresolved":false,"context_lines":[{"line_number":45,"context_line":"            self.created_entities.append(resp)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        return resp"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def get_secret(self, secret_ref, payload_content_type\u003dNone):"},{"line_number":50,"context_line":"        \"\"\"Retrieves a secret and its payload."},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"da86d52c_7df71ff6","line":48,"in_reply_to":"da86d52c_0f7349b5","updated":"2015-02-06 18:40:33.000000000","message":"Not a a real blank line.","commit_id":"39364cb1d61120f1bd4fe03b138ca872efa2288a"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"200a9e11012ecfb0391370bfe9063971c7461060","unresolved":false,"context_lines":[{"line_number":45,"context_line":"            self.created_entities.append(resp)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        return resp"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def get_secret(self, secret_ref, payload_content_type\u003dNone):"},{"line_number":50,"context_line":"        \"\"\"Retrieves a secret and its payload."},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"da86d52c_9d705375","line":48,"in_reply_to":"da86d52c_7df71ff6","updated":"2015-02-06 18:51:04.000000000","message":"Now another extra not real blank line...odd usability for sure.","commit_id":"39364cb1d61120f1bd4fe03b138ca872efa2288a"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"b500235220b75a1664a127863db3d799b2cf45c0","unresolved":false,"context_lines":[{"line_number":45,"context_line":"            self.created_entities.append(resp)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        return resp"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def get_secret(self, secret_ref, payload_content_type\u003dNone):"},{"line_number":50,"context_line":"        \"\"\"Retrieves a secret and its payload."},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"da86d52c_18bb9176","line":48,"in_reply_to":"da86d52c_9d705375","updated":"2015-02-06 20:09:16.000000000","message":"Yeah seem to have a lot of blank lines showing up for some people but its not in my code and in my view the return resp is on 47, single blank line and then 49 has the next function.","commit_id":"39364cb1d61120f1bd4fe03b138ca872efa2288a"}],"functionaltests/client/v1/smoke/test_secrets.py":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2014 Rackspace, Inc."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":"# you may not use this file except in compliance with the License."}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_e60ff72c","line":1,"updated":"2015-01-31 04:29:27.000000000","message":"2015","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    def setUp(self):"},{"line_number":53,"context_line":"        super(SecretsTestCase, self).setUp()"},{"line_number":54,"context_line":"        self.behaviors \u003d secret_behaviors.SecretBehaviors(self.barbicanclient)"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    def tearDown(self):"},{"line_number":57,"context_line":"        super(SecretsTestCase, self).tearDown()"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_26310fed","line":54,"updated":"2015-01-31 04:29:27.000000000","message":"where do we get barbicanclient from?","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        get_resp \u003d self.behaviors.get_secret("},{"line_number":134,"context_line":"            test_client,"},{"line_number":135,"context_line":"            secret_ref,"},{"line_number":136,"context_line":"            payload_content_type\u003dtest_model.payload_content_type)"},{"line_number":137,"context_line":"        self.assertEqual(get_resp.payload, test_model.payload)"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    @testcase.attr(\u0027positive\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_e63d37bd","line":136,"updated":"2015-01-31 04:29:27.000000000","message":"content encoding?","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"17459278e3f5b82eb6e518df49bb7bd22dd3ce7b","unresolved":false,"context_lines":[{"line_number":140,"context_line":"    def test_secrets_get_defaults_multiple_secrets(self):"},{"line_number":141,"context_line":"        \"\"\"Covers getting a list of secrets."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        Creates 11 secrets then returns a list of 2 secrets"},{"line_number":144,"context_line":"        \"\"\""},{"line_number":145,"context_line":"        test_client \u003d self.barbicanclient"},{"line_number":146,"context_line":"        limit \u003d 5"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_86571b02","line":143,"updated":"2015-01-31 04:29:27.000000000","message":"5 secrets not 2","commit_id":"9d5bd893a8bd97613d1c586abed086eecd1250a1"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"19371e9db6f5e6ea6f53d3a5a2185937f983aac6","unresolved":false,"context_lines":[{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    def setUp(self):"},{"line_number":53,"context_line":"        super(SecretsTestCase, self).setUp()"},{"line_number":54,"context_line":"        self.behaviors \u003d secret_behaviors.SecretBehaviors(self.barbicanclient)"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    def tearDown(self):"},{"line_number":57,"context_line":"        super(SecretsTestCase, self).tearDown()"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_d126fc15","line":54,"updated":"2015-02-02 17:47:28.000000000","message":"where is barbicanclient set?","commit_id":"61ac764b2af44865a60991306f258ec3209bfe46"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"12c0c4e68e3794468770429d751c2b14de05d23e","unresolved":false,"context_lines":[{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    def setUp(self):"},{"line_number":53,"context_line":"        super(SecretsTestCase, self).setUp()"},{"line_number":54,"context_line":"        self.behaviors \u003d secret_behaviors.SecretBehaviors(self.barbicanclient)"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    def tearDown(self):"},{"line_number":57,"context_line":"        super(SecretsTestCase, self).tearDown()"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_97d2b4d0","line":54,"in_reply_to":"da86d52c_d126fc15","updated":"2015-02-02 18:24:14.000000000","message":"This is set in the base test case.","commit_id":"61ac764b2af44865a60991306f258ec3209bfe46"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"19371e9db6f5e6ea6f53d3a5a2185937f983aac6","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        get_resp \u003d self.behaviors.get_secret("},{"line_number":134,"context_line":"            test_client,"},{"line_number":135,"context_line":"            secret_ref,"},{"line_number":136,"context_line":"            payload_content_type\u003dtest_model.payload_content_type)"},{"line_number":137,"context_line":"        self.assertEqual(get_resp.payload, test_model.payload)"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    @testcase.attr(\u0027positive\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_112174fb","line":136,"updated":"2015-02-02 17:47:28.000000000","message":"content encoding?","commit_id":"61ac764b2af44865a60991306f258ec3209bfe46"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"12c0c4e68e3794468770429d751c2b14de05d23e","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        get_resp \u003d self.behaviors.get_secret("},{"line_number":134,"context_line":"            test_client,"},{"line_number":135,"context_line":"            secret_ref,"},{"line_number":136,"context_line":"            payload_content_type\u003dtest_model.payload_content_type)"},{"line_number":137,"context_line":"        self.assertEqual(get_resp.payload, test_model.payload)"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    @testcase.attr(\u0027positive\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_57c83c22","line":136,"in_reply_to":"da86d52c_112174fb","updated":"2015-02-02 18:24:14.000000000","message":"Content encoding is not currently used for retrieving secrets","commit_id":"61ac764b2af44865a60991306f258ec3209bfe46"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"f3bdc92bb3bb5f6850773dba1006e6f3f347e09c","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    @testcase.attr(\u0027positive\u0027)"},{"line_number":60,"context_line":"    def test_create_secret_defaults(self):"},{"line_number":61,"context_line":"        test_client \u003d self.barbicanclient"},{"line_number":62,"context_line":"        test_model \u003d test_client.secrets.create(**secret_create_defaults_data)"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"        secret_ref \u003d self.behaviors.create_secret(test_model)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_e9806848","line":61,"updated":"2015-02-02 23:11:09.000000000","message":"no need to reassign self.barbicanclient again. just use self.barbicanclient each time since it is being inherited from the base test case.","commit_id":"76350ce272d579b00b22d04cbf9ac88d358784fd"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"2cd2e0b1a5ea6d3c6a1b1d4e94132b2cad82af8a","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    @testcase.attr(\u0027positive\u0027)"},{"line_number":60,"context_line":"    def test_create_secret_defaults(self):"},{"line_number":61,"context_line":"        test_client \u003d self.barbicanclient"},{"line_number":62,"context_line":"        test_model \u003d test_client.secrets.create(**secret_create_defaults_data)"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"        secret_ref \u003d self.behaviors.create_secret(test_model)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_b55f5440","line":61,"in_reply_to":"da86d52c_e9806848","updated":"2015-02-04 15:57:58.000000000","message":"Done","commit_id":"76350ce272d579b00b22d04cbf9ac88d358784fd"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"f3bdc92bb3bb5f6850773dba1006e6f3f347e09c","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        \"\"\"Covers creating a secret without an expiration.\"\"\""},{"line_number":70,"context_line":"        test_client \u003d self.barbicanclient"},{"line_number":71,"context_line":"        test_model \u003d test_client.secrets.create(**secret_create_defaults_data)"},{"line_number":72,"context_line":"        test_model.expiration \u003d None"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        secret_ref \u003d self.behaviors.create_secret(test_model)"},{"line_number":75,"context_line":"        self.assertIsNotNone(secret_ref)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_e913080b","line":72,"updated":"2015-02-02 23:11:09.000000000","message":"is the expiration already set to none from line 39?","commit_id":"76350ce272d579b00b22d04cbf9ac88d358784fd"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"2cd2e0b1a5ea6d3c6a1b1d4e94132b2cad82af8a","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        \"\"\"Covers creating a secret without an expiration.\"\"\""},{"line_number":70,"context_line":"        test_client \u003d self.barbicanclient"},{"line_number":71,"context_line":"        test_model \u003d test_client.secrets.create(**secret_create_defaults_data)"},{"line_number":72,"context_line":"        test_model.expiration \u003d None"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        secret_ref \u003d self.behaviors.create_secret(test_model)"},{"line_number":75,"context_line":"        self.assertIsNotNone(secret_ref)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_75107c59","line":72,"in_reply_to":"da86d52c_e913080b","updated":"2015-02-04 15:57:58.000000000","message":"This test uses the default data so the expiration from line 23 is used.","commit_id":"76350ce272d579b00b22d04cbf9ac88d358784fd"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"f3bdc92bb3bb5f6850773dba1006e6f3f347e09c","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    @testcase.attr(\u0027positive\u0027)"},{"line_number":86,"context_line":"    def test_secret_get_defaults_metadata_w_valid_name(self, name):"},{"line_number":87,"context_line":"        \"\"\"Covers getting and checking a secret\u0027s metadata.\"\"\""},{"line_number":88,"context_line":"        test_client \u003d self.barbicanclient"},{"line_number":89,"context_line":"        test_model \u003d test_client.secrets.create(**secret_create_defaults_data)"},{"line_number":90,"context_line":"        test_model.name \u003d name"},{"line_number":91,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_c9e804b7","line":88,"updated":"2015-02-02 23:11:09.000000000","message":"these same 4 lines are used over and over again? could we pull them out into a separate function perhaps?","commit_id":"76350ce272d579b00b22d04cbf9ac88d358784fd"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"2cd2e0b1a5ea6d3c6a1b1d4e94132b2cad82af8a","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    @testcase.attr(\u0027positive\u0027)"},{"line_number":86,"context_line":"    def test_secret_get_defaults_metadata_w_valid_name(self, name):"},{"line_number":87,"context_line":"        \"\"\"Covers getting and checking a secret\u0027s metadata.\"\"\""},{"line_number":88,"context_line":"        test_client \u003d self.barbicanclient"},{"line_number":89,"context_line":"        test_model \u003d test_client.secrets.create(**secret_create_defaults_data)"},{"line_number":90,"context_line":"        test_model.name \u003d name"},{"line_number":91,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_985d257c","line":88,"in_reply_to":"da86d52c_c9e804b7","updated":"2015-02-04 15:57:58.000000000","message":"I removed the test_client line, the rest of the lines can differ between tests and the model needs to be created and isolated in each test with a different set of data and then in some cases have data overridden.","commit_id":"76350ce272d579b00b22d04cbf9ac88d358784fd"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"9db76d9a48e08c632336b84b7ef9b7c66fad1f9f","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        super(SecretsTestCase, self).tearDown()"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    @testcase.attr(\u0027positive\u0027)"},{"line_number":60,"context_line":"    def test_create_secret_defaults(self):"},{"line_number":61,"context_line":"        test_model \u003d self.barbicanclient.secrets.create("},{"line_number":62,"context_line":"            **secret_create_defaults_data)"},{"line_number":63,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"da86d52c_eadb9f79","line":60,"updated":"2015-02-04 17:52:07.000000000","message":"no docstring","commit_id":"5cd43075f802b5439be5b87393f95633a643c0b5"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"9db76d9a48e08c632336b84b7ef9b7c66fad1f9f","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        secret_ref \u003d self.behaviors.create_secret(test_model)"},{"line_number":75,"context_line":"        self.assertIsNotNone(secret_ref)"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    @utils.parameterized_dataset({"},{"line_number":78,"context_line":"        \u0027alphanumeric\u0027: [\u00271f34ds\u0027],"},{"line_number":79,"context_line":"        \u0027punctuation\u0027: [\u0027~!@#$%^\u0026*()_+`-\u003d{}[]|:;\u003c\u003e,.?\u0027],"},{"line_number":80,"context_line":"        \u0027uuid\u0027: [\u002754262d9d-4bc7-4821-8df0-dc2ca8e112bb\u0027],"}],"source_content_type":"text/x-python","patch_set":8,"id":"da86d52c_ef5c914d","line":77,"updated":"2015-02-04 17:52:07.000000000","message":"seems like a lot for smoke-level testing - is this what we had in functionals?","commit_id":"5cd43075f802b5439be5b87393f95633a643c0b5"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"9db76d9a48e08c632336b84b7ef9b7c66fad1f9f","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        Creates 11 secrets then returns a list of 5 secrets"},{"line_number":148,"context_line":"        \"\"\""},{"line_number":149,"context_line":"        limit \u003d 5"},{"line_number":150,"context_line":"        offset \u003d 5"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"        for i in range(0, 11):"},{"line_number":153,"context_line":"            test_model \u003d self.barbicanclient.secrets.create("}],"source_content_type":"text/x-python","patch_set":8,"id":"da86d52c_4a766ba5","line":150,"updated":"2015-02-04 17:52:07.000000000","message":"should use a variable total\u003d11","commit_id":"5cd43075f802b5439be5b87393f95633a643c0b5"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"9db76d9a48e08c632336b84b7ef9b7c66fad1f9f","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        limit \u003d 5"},{"line_number":150,"context_line":"        offset \u003d 5"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"        for i in range(0, 11):"},{"line_number":153,"context_line":"            test_model \u003d self.barbicanclient.secrets.create("},{"line_number":154,"context_line":"                **secret_create_defaults_data)"},{"line_number":155,"context_line":"            self.behaviors.create_secret(test_model)"}],"source_content_type":"text/x-python","patch_set":8,"id":"da86d52c_6a2def94","line":152,"updated":"2015-02-04 17:52:07.000000000","message":"should use xrange - more efficient (even though we\u0027re not doing a zillion its good habit to get into)\n\nalso use total.\n\nshould be:\nfor i in xrange(total):","commit_id":"5cd43075f802b5439be5b87393f95633a643c0b5"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"9db76d9a48e08c632336b84b7ef9b7c66fad1f9f","unresolved":false,"context_lines":[{"line_number":157,"context_line":"        secret_list \u003d self.behaviors.get_secrets(self.barbicanclient,"},{"line_number":158,"context_line":"                                                 limit\u003dlimit,"},{"line_number":159,"context_line":"                                                 offset\u003doffset)"},{"line_number":160,"context_line":"        self.assertEqual(len(secret_list), 5)"}],"source_content_type":"text/x-python","patch_set":8,"id":"da86d52c_0a49d35f","line":160,"updated":"2015-02-04 17:52:07.000000000","message":"rather than 5 should say limit.","commit_id":"5cd43075f802b5439be5b87393f95633a643c0b5"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"5374e588b461a8bf41e201c66d932544c6fb01e0","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from functionaltests.client.v1.behaviors import secret_behaviors"},{"line_number":18,"context_line":"from functionaltests import utils"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"secret_create_defaults_data \u003d {"},{"line_number":21,"context_line":"    \"name\": \"AES key\","},{"line_number":22,"context_line":"    \"expiration\": \"2018-02-28T19:14:44.180394\","},{"line_number":23,"context_line":"    \"algorithm\": \"aes\","}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_ca26db15","line":20,"updated":"2015-02-11 16:13:02.000000000","message":"Seems like these module level data objects should be moved inside the class that uses them.","commit_id":"6b8fac66b5aeb8d97e271432f7bee170d5a7fc37"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"200a9e11012ecfb0391370bfe9063971c7461060","unresolved":false,"context_lines":[{"line_number":32,"context_line":"# but will be omitted in the final request to the server."},{"line_number":33,"context_line":"#"},{"line_number":34,"context_line":"# secret_create_nones_data is effectively an empty json request to the server."},{"line_number":35,"context_line":"# Barbican client will not allow none data in the payload."},{"line_number":36,"context_line":"secret_create_nones_data \u003d {"},{"line_number":37,"context_line":"    \"name\": None,"},{"line_number":38,"context_line":"    \"expiration\": None,"}],"source_content_type":"text/x-python","patch_set":14,"id":"da86d52c_bdc5173f","line":35,"updated":"2015-02-06 18:51:04.000000000","message":"This docstring threw me a bit. At first I didn\u0027t think it was needed, but I like it now. However, I\u0027d suggest moving line #34 as the first line in the doc block, as that is what the purpose of the dict below is. LInes #31, 32 and 35 are describing how it is that this dict is actually an empty request one even though it has non-empty data.\n\nI would also suggest changing the name of this to something like:\nsecret_create_empty_request_data\nto make things more obvious as to its purpose.","commit_id":"39364cb1d61120f1bd4fe03b138ca872efa2288a"},{"author":{"_account_id":13510,"name":"Thomas Dinkjian","email":"thomas.dinkjian@rackspace.com","username":"tdink"},"change_message_id":"b500235220b75a1664a127863db3d799b2cf45c0","unresolved":false,"context_lines":[{"line_number":32,"context_line":"# but will be omitted in the final request to the server."},{"line_number":33,"context_line":"#"},{"line_number":34,"context_line":"# secret_create_nones_data is effectively an empty json request to the server."},{"line_number":35,"context_line":"# Barbican client will not allow none data in the payload."},{"line_number":36,"context_line":"secret_create_nones_data \u003d {"},{"line_number":37,"context_line":"    \"name\": None,"},{"line_number":38,"context_line":"    \"expiration\": None,"}],"source_content_type":"text/x-python","patch_set":14,"id":"da86d52c_f8f79d57","line":35,"in_reply_to":"da86d52c_bdc5173f","updated":"2015-02-06 20:09:16.000000000","message":"I will actually be removing this comment completely. In the client version we cannot send a full none\u0027s data through because we must have the payload information specified. In the api call all information including the payload is set to none and it is effectively an empty json. For the client it is just an easy way to set all the non payload information to none.","commit_id":"39364cb1d61120f1bd4fe03b138ca872efa2288a"}]}
