)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"fec9d6a71725d855a3cc41b2b11fb6688accbafe","unresolved":false,"context_lines":[{"line_number":12,"context_line":"infrastructure code will be useful for other work."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I93ad6b630424795be9d3d4d2b599a7100c4568f9"},{"line_number":15,"context_line":"Implements: blueprint certificate-order-api"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1a6ced46_a93bb536","line":15,"updated":"2015-03-24 20:18:17.000000000","message":"Is this a registered blueprint?  Nothing comes up when I click the link :(","commit_id":"ec3a79669331b26c1f43750f0bca3d802d5d25ae"}],"barbican/api/controllers/orders.py":[{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"8716a6000b378b34173879842203d824e1e61b01","unresolved":false,"context_lines":[{"line_number":198,"context_line":"        if order_type \u003d\u003d models.OrderType.CERTIFICATE:"},{"line_number":199,"context_line":"            validators.validate_ca_id(project.id, body.get(\u0027meta\u0027))"},{"line_number":200,"context_line":"            validators.validate_refs_in_order(project.id, body.get(\u0027meta\u0027))"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"        new_order \u003d models.Order()"},{"line_number":203,"context_line":"        new_order.meta \u003d body.get(\u0027meta\u0027)"},{"line_number":204,"context_line":"        new_order.type \u003d order_type"}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_70ab4b1e","line":201,"updated":"2015-03-31 14:35:35.000000000","message":"pass in project.id or project.external_id ?","commit_id":"735fca20bb255e545fe4b9fed6c60c29b0271595"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"a56119f3320f5bd2ede1f0bfb8087c89ca112e54","unresolved":false,"context_lines":[{"line_number":198,"context_line":"        if order_type \u003d\u003d models.OrderType.CERTIFICATE:"},{"line_number":199,"context_line":"            validators.validate_ca_id(project.id, body.get(\u0027meta\u0027))"},{"line_number":200,"context_line":"            validators.validate_refs_in_order(project.id, body.get(\u0027meta\u0027))"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"        new_order \u003d models.Order()"},{"line_number":203,"context_line":"        new_order.meta \u003d body.get(\u0027meta\u0027)"},{"line_number":204,"context_line":"        new_order.type \u003d order_type"}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_cc4a65ac","line":201,"in_reply_to":"da9b358b_70ab4b1e","updated":"2015-04-01 04:17:22.000000000","message":"Done","commit_id":"735fca20bb255e545fe4b9fed6c60c29b0271595"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"8f8b00969ac0209a5f988891b3166b72359f1206","unresolved":false,"context_lines":[{"line_number":202,"context_line":""},{"line_number":203,"context_line":"        if order_type \u003d\u003d models.OrderType.CERTIFICATE:"},{"line_number":204,"context_line":"            validators.validate_ca_id(project.id, body.get(\u0027meta\u0027))"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"        if request_type \u003d\u003d \u0027stored-key\u0027:"},{"line_number":207,"context_line":"            container_ref \u003d order_meta.get(\u0027container_ref\u0027)"},{"line_number":208,"context_line":"            validators.validate_stored_key_rsa_container(external_project_id,"}],"source_content_type":"text/x-python","patch_set":4,"id":"baa041b7_c68196fd","line":205,"updated":"2015-04-01 14:19:49.000000000","message":"Lets move the conditional below under if order_type \u003d\u003d CERTIFICATE","commit_id":"aab2515a3d7dd7f24745a87391eaef60ac45cc84"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"0ec438a1dacf0db6e0cb4c0ce58058f24bc233d6","unresolved":false,"context_lines":[{"line_number":202,"context_line":""},{"line_number":203,"context_line":"        if order_type \u003d\u003d models.OrderType.CERTIFICATE:"},{"line_number":204,"context_line":"            validators.validate_ca_id(project.id, body.get(\u0027meta\u0027))"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"        if request_type \u003d\u003d \u0027stored-key\u0027:"},{"line_number":207,"context_line":"            container_ref \u003d order_meta.get(\u0027container_ref\u0027)"},{"line_number":208,"context_line":"            validators.validate_stored_key_rsa_container(external_project_id,"}],"source_content_type":"text/x-python","patch_set":4,"id":"baa041b7_26e282a0","line":205,"in_reply_to":"baa041b7_c68196fd","updated":"2015-04-02 06:00:57.000000000","message":"Done","commit_id":"aab2515a3d7dd7f24745a87391eaef60ac45cc84"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7ee38ef05de3ae505defd4a7d3706499072d5bb3","unresolved":false,"context_lines":[{"line_number":202,"context_line":""},{"line_number":203,"context_line":"        if order_type \u003d\u003d models.OrderType.CERTIFICATE:"},{"line_number":204,"context_line":"            validators.validate_ca_id(project.id, body.get(\u0027meta\u0027))"},{"line_number":205,"context_line":"            if request_type \u003d\u003d \u0027stored-key\u0027:"},{"line_number":206,"context_line":"                container_ref \u003d order_meta.get(\u0027container_ref\u0027)"},{"line_number":207,"context_line":"                validators.validate_stored_key_rsa_container("},{"line_number":208,"context_line":"                    external_project_id,"}],"source_content_type":"text/x-python","patch_set":7,"id":"9aa53dc9_28480f5b","line":205,"updated":"2015-04-06 13:32:37.000000000","message":"My preference is to keep the logic in the controller modules as brief as possible. So I was hoping we could do all validation in the line #194 validator call above, as I think this section will get larger and larger as we beef up validation for all the certificate order types. \n\nWhat do others think though?","commit_id":"ebe09dbda0f50859f8dca941f11d324cca55fa5b"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"0c05c5b7b37d942f252a63975ea6f44ef137ab3f","unresolved":false,"context_lines":[{"line_number":202,"context_line":""},{"line_number":203,"context_line":"        if order_type \u003d\u003d models.OrderType.CERTIFICATE:"},{"line_number":204,"context_line":"            validators.validate_ca_id(project.id, body.get(\u0027meta\u0027))"},{"line_number":205,"context_line":"            if request_type \u003d\u003d \u0027stored-key\u0027:"},{"line_number":206,"context_line":"                container_ref \u003d order_meta.get(\u0027container_ref\u0027)"},{"line_number":207,"context_line":"                validators.validate_stored_key_rsa_container("},{"line_number":208,"context_line":"                    external_project_id,"}],"source_content_type":"text/x-python","patch_set":7,"id":"9aa53dc9_e81c6779","line":205,"in_reply_to":"9aa53dc9_28480f5b","updated":"2015-04-06 13:51:51.000000000","message":"The problem is that you need the external_project_id in order to check access to the container and its secrets.  As far as I can tell, this information is not passed to the validators in the call above.","commit_id":"ebe09dbda0f50859f8dca941f11d324cca55fa5b"}],"barbican/common/exception.py":[{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":131,"context_line":"    client_message \u003d message"},{"line_number":132,"context_line":"    status_code \u003d 400"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"class BadAuthStrategy(BarbicanException):"},{"line_number":136,"context_line":"    message \u003d u._(\"Incorrect auth strategy, expected \\\"%(expected)s\\\" but \""},{"line_number":137,"context_line":"                  \"received \\\"%(received)s\\\"\")"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_9c8e14cf","line":134,"updated":"2015-03-25 15:29:38.000000000","message":"I\u0027m not sure if you did the staging on top of my CR correctly.  These changes (being in the antecedent CR) should not show up here.  Hopefully, by the time you do this again, that CR would have merged.","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e868094275ce5c36b6fb5eec6d08b60b35cc1ce2","unresolved":false,"context_lines":[{"line_number":131,"context_line":"    client_message \u003d message"},{"line_number":132,"context_line":"    status_code \u003d 400"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"class BadAuthStrategy(BarbicanException):"},{"line_number":136,"context_line":"    message \u003d u._(\"Incorrect auth strategy, expected \\\"%(expected)s\\\" but \""},{"line_number":137,"context_line":"                  \"received \\\"%(received)s\\\"\")"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa963961_20ab541f","line":134,"in_reply_to":"1a6ced46_9c8e14cf","updated":"2015-03-31 13:55:49.000000000","message":"Done","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"}],"barbican/common/hrefs.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7ee38ef05de3ae505defd4a7d3706499072d5bb3","unresolved":false,"context_lines":[{"line_number":161,"context_line":"    :param container_ref: HTTP reference of container"},{"line_number":162,"context_line":"    :return: a string containing the ID of the container"},{"line_number":163,"context_line":"    \"\"\""},{"line_number":164,"context_line":"    container_id \u003d container_ref.rsplit(\u0027/\u0027, 1)[1]"},{"line_number":165,"context_line":"    return container_id"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9aa53dc9_88dddb72","line":164,"updated":"2015-04-06 13:32:37.000000000","message":"Perhaps [-1] instead to grab that very last split?","commit_id":"ebe09dbda0f50859f8dca941f11d324cca55fa5b"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"bf0cf3218a38eea3fa09e941acef023fa83f04f5","unresolved":false,"context_lines":[{"line_number":161,"context_line":"    :param container_ref: HTTP reference of container"},{"line_number":162,"context_line":"    :return: a string containing the ID of the container"},{"line_number":163,"context_line":"    \"\"\""},{"line_number":164,"context_line":"    container_id \u003d container_ref.rsplit(\u0027/\u0027, 1)[1]"},{"line_number":165,"context_line":"    return container_id"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9aa53dc9_890026ac","line":164,"in_reply_to":"9aa53dc9_88dddb72","updated":"2015-04-07 04:07:19.000000000","message":"I tested with this change, and some unit and functional tests fail.  By choosing [1], instead of [-1], a subtle error check for a malformed container_ref is done.  If a ref has no \u0027/\u0027, then the existing code throws an exception.  If I change this to [-1], then the code will not catch this form of bad ref.","commit_id":"ebe09dbda0f50859f8dca941f11d324cca55fa5b"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7ee38ef05de3ae505defd4a7d3706499072d5bb3","unresolved":false,"context_lines":[{"line_number":172,"context_line":""},{"line_number":173,"context_line":"    :param secret_ref: HTTP reference of secret"},{"line_number":174,"context_line":"    :return: a string containing the ID of the secret"},{"line_number":175,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":7,"id":"9aa53dc9_8896fb92","line":175,"updated":"2015-04-06 13:32:37.000000000","message":"I\u0027m surprised a \u0027pass\u0027 wasn\u0027t needed here?","commit_id":"ebe09dbda0f50859f8dca941f11d324cca55fa5b"}],"barbican/common/utils.py":[{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"8716a6000b378b34173879842203d824e1e61b01","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"da9b358b_d038d73f","line":146,"updated":"2015-03-31 14:35:35.000000000","message":"We need to do this kind of thing for lots of different resources -- containers, secrets etc.  So this really ought to be a generic function.  Of course, we could (and probably should) be more explicit and make sure that sure that the reference is valid for this server too.\n\nie. on hostA, we should raise an exception if the reference is https://hostB/v1/containers/foo\n\nI would be ok with adding a TODO for that here, and adding that as a separate CR.\n\nThe hrefs module seems like a more natural place for this kind of function.  That function has explicit constructors for hrefs in order to make sure that the prefix is correct, so there could be a way of reusing whats in there to deconstruct an href.","commit_id":"735fca20bb255e545fe4b9fed6c60c29b0271595"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"0ec438a1dacf0db6e0cb4c0ce58058f24bc233d6","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"baa041b7_2335b745","updated":"2015-04-02 06:00:57.000000000","message":"Done","commit_id":"aab2515a3d7dd7f24745a87391eaef60ac45cc84"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"8f8b00969ac0209a5f988891b3166b72359f1206","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"baa041b7_86a38e9e","line":146,"updated":"2015-04-01 14:19:49.000000000","message":"See my comments from previous patch.  This is probably better under hrefs.py.  Also note comments on checking the prefix and/or making this function more generic.","commit_id":"aab2515a3d7dd7f24745a87391eaef60ac45cc84"}],"barbican/common/validators.py":[{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"fec9d6a71725d855a3cc41b2b11fb6688accbafe","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            reason \u003d u._(\"Container Not Found\")"},{"line_number":106,"context_line":"            raise exception.InvalidContainer(reason\u003dreason)"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # Is additional validation useful?"},{"line_number":109,"context_line":"        # container_validator \u003d ContainerValidator()"},{"line_number":110,"context_line":"        # try:"},{"line_number":111,"context_line":"        #     container_validator.validate(container_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6ced46_843b40d0","line":108,"updated":"2015-03-24 20:18:17.000000000","message":"I think additional validation is always useful!","commit_id":"ec3a79669331b26c1f43750f0bca3d802d5d25ae"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"fec9d6a71725d855a3cc41b2b11fb6688accbafe","unresolved":false,"context_lines":[{"line_number":108,"context_line":"        # Is additional validation useful?"},{"line_number":109,"context_line":"        # container_validator \u003d ContainerValidator()"},{"line_number":110,"context_line":"        # try:"},{"line_number":111,"context_line":"        #     container_validator.validate(container_id)"},{"line_number":112,"context_line":"        # except:"},{"line_number":113,"context_line":"        #     reason \u003d u._(\"Bad Container ID %s\" % (container_id))"},{"line_number":114,"context_line":"        #     raise exception.InvalidContainer(reason\u003dreason)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6ced46_89cfd97e","line":111,"updated":"2015-03-24 20:18:17.000000000","message":"Doesn\u0027t the ContainerValidator take json?","commit_id":"ec3a79669331b26c1f43750f0bca3d802d5d25ae"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":86,"context_line":"        project_id\u003dproject_id)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"def validate_refs_in_order(project_id, order_meta):"},{"line_number":90,"context_line":"        container_ref \u003d order_meta.get(\u0027container_ref\u0027)"},{"line_number":91,"context_line":"        if not container_ref:"},{"line_number":92,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_df06be1c","line":89,"updated":"2015-03-25 15:29:38.000000000","message":"Its possible, though unlikely, that a custom cert request could have a \"container_ref\" field.  The more correct check is to check the order type - and that should probably be done in the controller.\n\nThis validation should only be done on \"stored_key\" requests, which should have failed validation by now if the container_ref was absent.","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"85f14e372ad600ecd78f3c84c48df1d998ca2af6","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            return"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        try:"},{"line_number":95,"context_line":"            container_id \u003d container_ref.rsplit(\u0027/\u0027, 1)[1]"},{"line_number":96,"context_line":"        except Exception:"},{"line_number":97,"context_line":"            reason \u003d u._(\"Bad Container Reference {ref}\").format("},{"line_number":98,"context_line":"                ref\u003dcontainer_ref"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_ad8ac118","line":95,"updated":"2015-03-25 13:40:18.000000000","message":"maybe switching the 1 to -1 would make it more explicit that you\u0027re trying to access the last element, which would be the container id.","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e868094275ce5c36b6fb5eec6d08b60b35cc1ce2","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            return"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        try:"},{"line_number":95,"context_line":"            container_id \u003d container_ref.rsplit(\u0027/\u0027, 1)[1]"},{"line_number":96,"context_line":"        except Exception:"},{"line_number":97,"context_line":"            reason \u003d u._(\"Bad Container Reference {ref}\").format("},{"line_number":98,"context_line":"                ref\u003dcontainer_ref"}],"source_content_type":"text/x-python","patch_set":2,"id":"da9b358b_831a4c16","line":95,"in_reply_to":"1a6ced46_5f256e07","updated":"2015-03-31 13:55:49.000000000","message":"Done","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e868094275ce5c36b6fb5eec6d08b60b35cc1ce2","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            return"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        try:"},{"line_number":95,"context_line":"            container_id \u003d container_ref.rsplit(\u0027/\u0027, 1)[1]"},{"line_number":96,"context_line":"        except Exception:"},{"line_number":97,"context_line":"            reason \u003d u._(\"Bad Container Reference {ref}\").format("},{"line_number":98,"context_line":"                ref\u003dcontainer_ref"}],"source_content_type":"text/x-python","patch_set":2,"id":"da9b358b_c3e73411","line":95,"in_reply_to":"1a6ced46_ad8ac118","updated":"2015-03-31 13:55:49.000000000","message":"I moved this code to a utility function and added a comment to make it more explicit.","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            return"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        try:"},{"line_number":95,"context_line":"            container_id \u003d container_ref.rsplit(\u0027/\u0027, 1)[1]"},{"line_number":96,"context_line":"        except Exception:"},{"line_number":97,"context_line":"            reason \u003d u._(\"Bad Container Reference {ref}\").format("},{"line_number":98,"context_line":"                ref\u003dcontainer_ref"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_5f256e07","line":95,"in_reply_to":"1a6ced46_ad8ac118","updated":"2015-03-25 15:29:38.000000000","message":"we really need a utility function to do this. I cry a little every time I see this.  Maybe something in hrefs.  In particular, there was recently a bug to ensure that when constructing an href, the first part actually referred to the barbican server.  Seems like we ought to do the same kind of check when we deconstruct an href too.","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":108,"context_line":"            raise exception.InvalidContainer(reason\u003dreason)"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        # TODO(dave) Additional validation when ACL patch has landed"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":114,"context_line":"class ValidatorBase(object):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_b2ebf911","line":111,"updated":"2015-03-25 15:29:38.000000000","message":"Maybe add in the note that the above query will change to a non-project based validation once the ACL patch lands.","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e868094275ce5c36b6fb5eec6d08b60b35cc1ce2","unresolved":false,"context_lines":[{"line_number":108,"context_line":"            raise exception.InvalidContainer(reason\u003dreason)"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        # TODO(dave) Additional validation when ACL patch has landed"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":114,"context_line":"class ValidatorBase(object):"}],"source_content_type":"text/x-python","patch_set":2,"id":"da9b358b_631748ee","line":111,"in_reply_to":"1a6ced46_b2ebf911","updated":"2015-03-31 13:55:49.000000000","message":"Done","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":476,"context_line":"        subject_dn \u003d self._get_required_metadata_value("},{"line_number":477,"context_line":"            certificate_meta, \"subject_dn\")"},{"line_number":478,"context_line":"        self._validate_subject_dn_data(subject_dn)"},{"line_number":479,"context_line":"        self._validate_certificate_container(container_ref)"},{"line_number":480,"context_line":""},{"line_number":481,"context_line":"        extensions \u003d certificate_meta.get(\"extensions\", None)"},{"line_number":482,"context_line":"        if extensions:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_52f805c3","line":479,"updated":"2015-03-25 15:29:38.000000000","message":"lets rename this to _validate_private_key_container() or something similar, because you are validating an rsa container - not a cert container.","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e868094275ce5c36b6fb5eec6d08b60b35cc1ce2","unresolved":false,"context_lines":[{"line_number":476,"context_line":"        subject_dn \u003d self._get_required_metadata_value("},{"line_number":477,"context_line":"            certificate_meta, \"subject_dn\")"},{"line_number":478,"context_line":"        self._validate_subject_dn_data(subject_dn)"},{"line_number":479,"context_line":"        self._validate_certificate_container(container_ref)"},{"line_number":480,"context_line":""},{"line_number":481,"context_line":"        extensions \u003d certificate_meta.get(\"extensions\", None)"},{"line_number":482,"context_line":"        if extensions:"}],"source_content_type":"text/x-python","patch_set":2,"id":"da9b358b_23d82053","line":479,"in_reply_to":"1a6ced46_52f805c3","updated":"2015-03-31 13:55:49.000000000","message":"Done","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"85f14e372ad600ecd78f3c84c48df1d998ca2af6","unresolved":false,"context_lines":[{"line_number":526,"context_line":"        \"\"\"Confirm container_ref parses.\"\"\""},{"line_number":527,"context_line":""},{"line_number":528,"context_line":"        try:"},{"line_number":529,"context_line":"            container_ref.rsplit(\u0027/\u0027, 1)[1]"},{"line_number":530,"context_line":"        except Exception:"},{"line_number":531,"context_line":"            reason \u003d u._(\"Bad Container Reference {ref}\").format("},{"line_number":532,"context_line":"                ref\u003dcontainer_ref"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_6d744936","line":529,"updated":"2015-03-25 13:40:18.000000000","message":"same as above","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e868094275ce5c36b6fb5eec6d08b60b35cc1ce2","unresolved":false,"context_lines":[{"line_number":526,"context_line":"        \"\"\"Confirm container_ref parses.\"\"\""},{"line_number":527,"context_line":""},{"line_number":528,"context_line":"        try:"},{"line_number":529,"context_line":"            container_ref.rsplit(\u0027/\u0027, 1)[1]"},{"line_number":530,"context_line":"        except Exception:"},{"line_number":531,"context_line":"            reason \u003d u._(\"Bad Container Reference {ref}\").format("},{"line_number":532,"context_line":"                ref\u003dcontainer_ref"}],"source_content_type":"text/x-python","patch_set":2,"id":"da9b358b_e3e11800","line":529,"in_reply_to":"1a6ced46_6d744936","updated":"2015-03-31 13:55:49.000000000","message":"I moved this code to a utility function and added a comment to make it more explicit.","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":526,"context_line":"        \"\"\"Confirm container_ref parses.\"\"\""},{"line_number":527,"context_line":""},{"line_number":528,"context_line":"        try:"},{"line_number":529,"context_line":"            container_ref.rsplit(\u0027/\u0027, 1)[1]"},{"line_number":530,"context_line":"        except Exception:"},{"line_number":531,"context_line":"            reason \u003d u._(\"Bad Container Reference {ref}\").format("},{"line_number":532,"context_line":"                ref\u003dcontainer_ref"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_72e50137","line":529,"in_reply_to":"1a6ced46_6d744936","updated":"2015-03-25 15:29:38.000000000","message":"ditto as above too.","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e868094275ce5c36b6fb5eec6d08b60b35cc1ce2","unresolved":false,"context_lines":[{"line_number":526,"context_line":"        \"\"\"Confirm container_ref parses.\"\"\""},{"line_number":527,"context_line":""},{"line_number":528,"context_line":"        try:"},{"line_number":529,"context_line":"            container_ref.rsplit(\u0027/\u0027, 1)[1]"},{"line_number":530,"context_line":"        except Exception:"},{"line_number":531,"context_line":"            reason \u003d u._(\"Bad Container Reference {ref}\").format("},{"line_number":532,"context_line":"                ref\u003dcontainer_ref"}],"source_content_type":"text/x-python","patch_set":2,"id":"da9b358b_03dd1c42","line":529,"in_reply_to":"1a6ced46_72e50137","updated":"2015-03-31 13:55:49.000000000","message":"Done","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":532,"context_line":"                ref\u003dcontainer_ref"},{"line_number":533,"context_line":"            )"},{"line_number":534,"context_line":"            raise exception.InvalidContainer(reason\u003dreason)"},{"line_number":535,"context_line":""},{"line_number":536,"context_line":"    def _validate_subject_dn_data(self, subject_dn):"},{"line_number":537,"context_line":"        \"\"\"Confirm that the subject_dn contains valid data"},{"line_number":538,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_d2bdd5b8","line":535,"updated":"2015-03-25 15:29:38.000000000","message":"I\u0027m a little confused though.  It seems like we\u0027re doing the same validation twice?  And where is the check for the container type?","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"8716a6000b378b34173879842203d824e1e61b01","unresolved":false,"context_lines":[{"line_number":524,"context_line":"        If parsing fails, raise InvalidCMCData"},{"line_number":525,"context_line":"        \"\"\""},{"line_number":526,"context_line":"        pass"},{"line_number":527,"context_line":""},{"line_number":528,"context_line":"    def _validate_rsa_container(self, container_ref):"},{"line_number":529,"context_line":"        \"\"\"Confirm container_ref parses.\"\"\""},{"line_number":530,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_7330f501","line":527,"updated":"2015-03-31 14:35:35.000000000","message":"This CR has two validation functions -- validate_refs_in_container() and _validate_rsa_container().\n\nWe really want only one validation function.  Given that we will need the project to determine access, lets do this.\n\n1. We will keep validate_refs_in_container() but will rename it validate_stored_key_rsa_container().  This function should only be called for stored_key requests.  You can either check that condition in the controller or do a check for that at the beginning of the validator.\n\n2. validate_stored_key_rsa_container() should:\n  a) check that a container ref exists\n  b) check that the container exists\n  c) check the container type -- it must be \"rsa\"\n  d) check access to the container, and access to the secrets\n     We can assume that the format of the container is valid \n     -- correct secrets etc. because a separate validator\n    for rsa containers will have run when the \"rsa\"\n    container was created.","commit_id":"735fca20bb255e545fe4b9fed6c60c29b0271595"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"a56119f3320f5bd2ede1f0bfb8087c89ca112e54","unresolved":false,"context_lines":[{"line_number":524,"context_line":"        If parsing fails, raise InvalidCMCData"},{"line_number":525,"context_line":"        \"\"\""},{"line_number":526,"context_line":"        pass"},{"line_number":527,"context_line":""},{"line_number":528,"context_line":"    def _validate_rsa_container(self, container_ref):"},{"line_number":529,"context_line":"        \"\"\"Confirm container_ref parses.\"\"\""},{"line_number":530,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_7d9f85b4","line":527,"in_reply_to":"da9b358b_7330f501","updated":"2015-04-01 04:17:22.000000000","message":"Done","commit_id":"735fca20bb255e545fe4b9fed6c60c29b0271595"}],"barbican/tests/common/test_validators.py":[{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"8f8b00969ac0209a5f988891b3166b72359f1206","unresolved":false,"context_lines":[{"line_number":27,"context_line":"VALID_FULL_CMC \u003d \"valid CMC\""},{"line_number":28,"context_line":"GOOD_CONTAINER_REF \u003d \u0027https://localhost/v1/containers/good_container_ref\u0027"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"def get_symmetric_key_req():"},{"line_number":32,"context_line":"    return {\u0027name\u0027: \u0027mysymmetrickey\u0027,"},{"line_number":33,"context_line":"            \u0027payload_content_type\u0027: \u0027application/octet-stream\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"baa041b7_464906d0","line":30,"updated":"2015-04-01 14:19:49.000000000","message":"Your CR is failing coverage, probably because you have no bad container ref unit tests.  Please make sure coverage passes.","commit_id":"aab2515a3d7dd7f24745a87391eaef60ac45cc84"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"0ec438a1dacf0db6e0cb4c0ce58058f24bc233d6","unresolved":false,"context_lines":[{"line_number":27,"context_line":"VALID_FULL_CMC \u003d \"valid CMC\""},{"line_number":28,"context_line":"GOOD_CONTAINER_REF \u003d \u0027https://localhost/v1/containers/good_container_ref\u0027"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"def get_symmetric_key_req():"},{"line_number":32,"context_line":"    return {\u0027name\u0027: \u0027mysymmetrickey\u0027,"},{"line_number":33,"context_line":"            \u0027payload_content_type\u0027: \u0027application/octet-stream\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"baa041b7_632bbfec","line":30,"in_reply_to":"baa041b7_464906d0","updated":"2015-04-02 06:00:57.000000000","message":"Done","commit_id":"aab2515a3d7dd7f24745a87391eaef60ac45cc84"}],"functionaltests/api/v1/functional/test_certificate_orders.py":[{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"fec9d6a71725d855a3cc41b2b11fb6688accbafe","unresolved":false,"context_lines":[{"line_number":80,"context_line":"    }"},{"line_number":81,"context_line":"}"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"create_container_rsa_data \u003d {"},{"line_number":84,"context_line":"    \"name\": \"rsacontainer\","},{"line_number":85,"context_line":"    \"type\": \"rsa\","},{"line_number":86,"context_line":"    \"secret_refs\": ["}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6ced46_89035941","line":83,"updated":"2015-03-24 20:18:17.000000000","message":"should this be order_container_rsa_data ?","commit_id":"ec3a79669331b26c1f43750f0bca3d802d5d25ae"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"fec9d6a71725d855a3cc41b2b11fb6688accbafe","unresolved":false,"context_lines":[{"line_number":187,"context_line":"        test_model.secret_refs \u003d [pub_key_ref, priv_key_ref]"},{"line_number":188,"context_line":"        resp, container_ref \u003d self.container_behaviors.create_container(test_model)"},{"line_number":189,"context_line":"        self.assertEqual(resp.status_code, 201)"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"    def get_dogtag_ca_id(self):"},{"line_number":192,"context_line":"        # TODO(alee) implement this to get the right ca_id"},{"line_number":193,"context_line":"        return \"dummy_ca_id\""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6ced46_890d1941","line":190,"updated":"2015-03-24 20:18:17.000000000","message":"Good tests!  We need more asymmetric key tests.  I\u0027m a little confused about why they\u0027re in test_certificate_orders, though.","commit_id":"ec3a79669331b26c1f43750f0bca3d802d5d25ae"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"fec9d6a71725d855a3cc41b2b11fb6688accbafe","unresolved":false,"context_lines":[{"line_number":444,"context_line":"        self.assertEqual(400, create_resp.status_code)"},{"line_number":445,"context_line":"        self.confirm_error_message("},{"line_number":446,"context_line":"            create_resp,"},{"line_number":447,"context_line":"            \"Invalid container: Bad Container Reference invalid\""},{"line_number":448,"context_line":"        )"},{"line_number":449,"context_line":""},{"line_number":450,"context_line":"    @testtools.testcase.attr(\u0027negative\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6ced46_69253daa","line":447,"updated":"2015-03-24 20:18:17.000000000","message":"Should be \"Invalid container: Bad Container Reference\"","commit_id":"ec3a79669331b26c1f43750f0bca3d802d5d25ae"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"fec9d6a71725d855a3cc41b2b11fb6688accbafe","unresolved":false,"context_lines":[{"line_number":486,"context_line":"        self.confirm_error_message("},{"line_number":487,"context_line":"            create_resp,"},{"line_number":488,"context_line":"            \"Invalid container: Bad Container Reference\""},{"line_number":489,"context_line":"            \" valid_non_asymmetric_container_ref\""},{"line_number":490,"context_line":"        )"},{"line_number":491,"context_line":""},{"line_number":492,"context_line":"    @testtools.testcase.attr(\u0027negative\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6ced46_29526513","line":489,"updated":"2015-03-24 20:18:17.000000000","message":"Should be just \"Invalid container: Bad Container Reference\"","commit_id":"ec3a79669331b26c1f43750f0bca3d802d5d25ae"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"fec9d6a71725d855a3cc41b2b11fb6688accbafe","unresolved":false,"context_lines":[{"line_number":548,"context_line":"        )"},{"line_number":549,"context_line":""},{"line_number":550,"context_line":"    @testtools.testcase.attr(\u0027positive\u0027)"},{"line_number":551,"context_line":"    @testtools.skip"},{"line_number":552,"context_line":"    def test_create_stored_key_order_with_extensions(self):"},{"line_number":553,"context_line":"        # TODO(alee) - Figure out how we want to handle this."},{"line_number":554,"context_line":"        test_model \u003d order_models.OrderModel(**self.stored_key_data)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6ced46_a95ad54d","line":551,"updated":"2015-03-24 20:18:17.000000000","message":"Why\u0027s this one getting skipped?","commit_id":"ec3a79669331b26c1f43750f0bca3d802d5d25ae"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":11,"context_line":"# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or"},{"line_number":12,"context_line":"# implied."},{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":"import copy"},{"line_number":16,"context_line":"import json"},{"line_number":17,"context_line":"import time"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_d28075c2","line":14,"updated":"2015-03-25 15:29:38.000000000","message":"Ok - same comment as before.  Looks like many of the changes in the antecedent CR are in here too.","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e868094275ce5c36b6fb5eec6d08b60b35cc1ce2","unresolved":false,"context_lines":[{"line_number":11,"context_line":"# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or"},{"line_number":12,"context_line":"# implied."},{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":"import copy"},{"line_number":16,"context_line":"import json"},{"line_number":17,"context_line":"import time"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa963961_5b976d90","line":14,"in_reply_to":"1a6ced46_d28075c2","updated":"2015-03-31 13:55:49.000000000","message":"Done","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    def create_asymmetric_key_container(self):"},{"line_number":150,"context_line":"        secret_model \u003d secret_models.SecretModel(**get_private_key_req())"},{"line_number":151,"context_line":"        secret_model.secret_type \u003d \"private\""},{"line_number":152,"context_line":"        resp, secret_ref_priv \u003d self.secret_behaviors.create_secret(secret_model)"},{"line_number":153,"context_line":"        self.assertEqual(201, resp.status_code)"},{"line_number":154,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_9546e74d","line":151,"updated":"2015-03-25 15:29:38.000000000","message":"Lets use the defined constants here -- SecretType.PRIVATE etc,","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e868094275ce5c36b6fb5eec6d08b60b35cc1ce2","unresolved":false,"context_lines":[{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    def create_asymmetric_key_container(self):"},{"line_number":150,"context_line":"        secret_model \u003d secret_models.SecretModel(**get_private_key_req())"},{"line_number":151,"context_line":"        secret_model.secret_type \u003d \"private\""},{"line_number":152,"context_line":"        resp, secret_ref_priv \u003d self.secret_behaviors.create_secret(secret_model)"},{"line_number":153,"context_line":"        self.assertEqual(201, resp.status_code)"},{"line_number":154,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"fa963961_5be88de2","line":151,"in_reply_to":"1a6ced46_9546e74d","updated":"2015-03-31 13:55:49.000000000","message":"Done","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":153,"context_line":"        self.assertEqual(201, resp.status_code)"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"        secret_model \u003d secret_models.SecretModel(**get_public_key_req())"},{"line_number":156,"context_line":"        secret_model.secret_type \u003d \"public\""},{"line_number":157,"context_line":"        resp, secret_ref_pub \u003d self.secret_behaviors.create_secret(secret_model)"},{"line_number":158,"context_line":"        self.assertEqual(201, resp.status_code)"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_955d0718","line":156,"updated":"2015-03-25 15:29:38.000000000","message":"ditto","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e868094275ce5c36b6fb5eec6d08b60b35cc1ce2","unresolved":false,"context_lines":[{"line_number":153,"context_line":"        self.assertEqual(201, resp.status_code)"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"        secret_model \u003d secret_models.SecretModel(**get_public_key_req())"},{"line_number":156,"context_line":"        secret_model.secret_type \u003d \"public\""},{"line_number":157,"context_line":"        resp, secret_ref_pub \u003d self.secret_behaviors.create_secret(secret_model)"},{"line_number":158,"context_line":"        self.assertEqual(201, resp.status_code)"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"fa963961_3be5c908","line":156,"in_reply_to":"1a6ced46_955d0718","updated":"2015-03-31 13:55:49.000000000","message":"Done","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        resp, container_ref \u003d self.container_behaviors.create_container(test_model)"},{"line_number":178,"context_line":"        self.assertEqual(resp.status_code, 201)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"        return container_ref"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"    def create_asymmetric_key_container_with_secrets_not_found(self):"},{"line_number":183,"context_line":"        \"\"\"Container validators won\u0027t let this happen\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_95fee7ac","line":180,"updated":"2015-03-25 15:29:38.000000000","message":"I\u0027m confused - if the validators won\u0027t allow this to happen, does the above code work?\n\nIf not, we should probably remove this function and the corresponding tests.","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":186,"context_line":"        test_model \u003d container_models.ContainerModel(**create_container_rsa_data)"},{"line_number":187,"context_line":"        test_model.secret_refs \u003d [pub_key_ref, priv_key_ref]"},{"line_number":188,"context_line":"        resp, container_ref \u003d self.container_behaviors.create_container(test_model)"},{"line_number":189,"context_line":"        self.assertEqual(resp.status_code, 201)"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"    def get_dogtag_ca_id(self):"},{"line_number":192,"context_line":"        # TODO(alee) implement this to get the right ca_id"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_f5247b61","line":189,"updated":"2015-03-25 15:29:38.000000000","message":"Ditto for above","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":444,"context_line":"            create_resp,"},{"line_number":445,"context_line":"            \"Invalid container: Bad Container Reference invalid\""},{"line_number":446,"context_line":"        )"},{"line_number":447,"context_line":""},{"line_number":448,"context_line":"    @testtools.testcase.attr(\u0027negative\u0027)"},{"line_number":449,"context_line":"    def test_create_stored_key_order_with_not_found_container_ref(self):"},{"line_number":450,"context_line":"        test_model \u003d order_models.OrderModel(**self.stored_key_data)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_3541b3a9","line":447,"updated":"2015-03-25 15:29:38.000000000","message":"great!","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e868094275ce5c36b6fb5eec6d08b60b35cc1ce2","unresolved":false,"context_lines":[{"line_number":444,"context_line":"            create_resp,"},{"line_number":445,"context_line":"            \"Invalid container: Bad Container Reference invalid\""},{"line_number":446,"context_line":"        )"},{"line_number":447,"context_line":""},{"line_number":448,"context_line":"    @testtools.testcase.attr(\u0027negative\u0027)"},{"line_number":449,"context_line":"    def test_create_stored_key_order_with_not_found_container_ref(self):"},{"line_number":450,"context_line":"        test_model \u003d order_models.OrderModel(**self.stored_key_data)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa963961_dbba5de1","line":447,"in_reply_to":"1a6ced46_3541b3a9","updated":"2015-03-31 13:55:49.000000000","message":"Done","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":457,"context_line":"            \"Order creation issue seen - \""},{"line_number":458,"context_line":"            \"Invalid container: Container Not Found.\""},{"line_number":459,"context_line":"        )"},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"    @testtools.testcase.attr(\u0027negative\u0027)"},{"line_number":462,"context_line":"    @testtools.skip(\"broken till exceptions fixed\")"},{"line_number":463,"context_line":"    def test_create_stored_key_order_with_missing_container_ref(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_95ed07ba","line":460,"updated":"2015-03-25 15:29:38.000000000","message":"great!","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e868094275ce5c36b6fb5eec6d08b60b35cc1ce2","unresolved":false,"context_lines":[{"line_number":457,"context_line":"            \"Order creation issue seen - \""},{"line_number":458,"context_line":"            \"Invalid container: Container Not Found.\""},{"line_number":459,"context_line":"        )"},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"    @testtools.testcase.attr(\u0027negative\u0027)"},{"line_number":462,"context_line":"    @testtools.skip(\"broken till exceptions fixed\")"},{"line_number":463,"context_line":"    def test_create_stored_key_order_with_missing_container_ref(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa963961_bbbf99cf","line":460,"in_reply_to":"1a6ced46_95ed07ba","updated":"2015-03-31 13:55:49.000000000","message":"Done","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":477,"context_line":"    def test_create_stored_key_order_with_invalid_container_type(self):"},{"line_number":478,"context_line":"        test_model \u003d order_models.OrderModel(**self.stored_key_data)"},{"line_number":479,"context_line":"        test_model.meta[\u0027container_ref\u0027] \u003d (self.create_generic_container())"},{"line_number":480,"context_line":""},{"line_number":481,"context_line":"        create_resp, order_ref \u003d self.behaviors.create_order(test_model)"},{"line_number":482,"context_line":"        self.assertEqual(400, create_resp.status_code)"},{"line_number":483,"context_line":"        self.confirm_error_message("}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_95a50749","line":480,"updated":"2015-03-25 15:29:38.000000000","message":"We\u0027re not quite there on this one.  self.create_generic_container() is not defined, and I don\u0027t see the validation code that confirms that the container is an RSA container.","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":495,"context_line":""},{"line_number":496,"context_line":"        create_resp, order_ref \u003d self.behaviors.create_order(test_model)"},{"line_number":497,"context_line":"        self.assertEqual(400, create_resp.status_code)"},{"line_number":498,"context_line":"        # confirm error message"},{"line_number":499,"context_line":""},{"line_number":500,"context_line":"    @testtools.testcase.attr(\u0027negative\u0027)"},{"line_number":501,"context_line":"    @testtools.skip(\"container validator won\u0027t let this happen\")"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_703979d6","line":498,"updated":"2015-03-25 15:29:38.000000000","message":"lets remove this test then.","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":510,"context_line":"            create_resp,"},{"line_number":511,"context_line":"            \"foo\""},{"line_number":512,"context_line":"        )"},{"line_number":513,"context_line":""},{"line_number":514,"context_line":"    @testtools.testcase.attr(\u0027negative\u0027)"},{"line_number":515,"context_line":"    def test_create_stored_key_order_with_container_secrets_inaccessible(self):"},{"line_number":516,"context_line":"        # TODO(alee) Not sure how to do this"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_7556cb2b","line":513,"updated":"2015-03-25 15:29:38.000000000","message":"lets remove this test then","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98fbfffeff8565aa5361c33881f9d9aca777f13","unresolved":false,"context_lines":[{"line_number":544,"context_line":""},{"line_number":545,"context_line":"    @testtools.testcase.attr(\u0027positive\u0027)"},{"line_number":546,"context_line":"    @testtools.skip(\"alee - this test is failing now\")"},{"line_number":547,"context_line":"    def test_create_stored_key_order_with_extensions(self):"},{"line_number":548,"context_line":"        # TODO(alee) - Figure out how we want to handle this."},{"line_number":549,"context_line":"        test_model \u003d order_models.OrderModel(**self.stored_key_data)"},{"line_number":550,"context_line":"        test_model.meta[\u0027container_ref\u0027] \u003d ("}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_d0014d06","line":547,"updated":"2015-03-25 15:29:38.000000000","message":"change this skip message to \"broken until we figure out how to handle extensions\"","commit_id":"bffb5f206f0a647ebced2c387e789a1c40539bd4"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"8716a6000b378b34173879842203d824e1e61b01","unresolved":false,"context_lines":[{"line_number":235,"context_line":"    def confirm_error_message(self, resp, message):"},{"line_number":236,"context_line":"        resp_dict \u003d json.loads(resp.content)"},{"line_number":237,"context_line":"        self.assertEqual(message, resp_dict[\u0027description\u0027])"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"    def confirm_error_message(self, resp, message):"},{"line_number":240,"context_line":"        resp_dict \u003d json.loads(resp.content)"},{"line_number":241,"context_line":"        self.assertEqual(message, resp_dict[\u0027description\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_b369ddc0","line":238,"updated":"2015-03-31 14:35:35.000000000","message":"Merge artifact?  This is a duplicate declaration.","commit_id":"735fca20bb255e545fe4b9fed6c60c29b0271595"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"a56119f3320f5bd2ede1f0bfb8087c89ca112e54","unresolved":false,"context_lines":[{"line_number":235,"context_line":"    def confirm_error_message(self, resp, message):"},{"line_number":236,"context_line":"        resp_dict \u003d json.loads(resp.content)"},{"line_number":237,"context_line":"        self.assertEqual(message, resp_dict[\u0027description\u0027])"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"    def confirm_error_message(self, resp, message):"},{"line_number":240,"context_line":"        resp_dict \u003d json.loads(resp.content)"},{"line_number":241,"context_line":"        self.assertEqual(message, resp_dict[\u0027description\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_9dea490e","line":238,"in_reply_to":"da9b358b_b369ddc0","updated":"2015-04-01 04:17:22.000000000","message":"Done","commit_id":"735fca20bb255e545fe4b9fed6c60c29b0271595"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"8716a6000b378b34173879842203d824e1e61b01","unresolved":false,"context_lines":[{"line_number":569,"context_line":"        )"},{"line_number":570,"context_line":""},{"line_number":571,"context_line":"    @testtools.testcase.attr(\u0027positive\u0027)"},{"line_number":572,"context_line":"    @testtools.skip(\"broken until we figure out how to handle extensions\")"},{"line_number":573,"context_line":"    def test_create_stored_key_order_with_extensions(self):"},{"line_number":574,"context_line":"        # TODO(alee) - Figure out how we want to handle this."},{"line_number":575,"context_line":"        test_model \u003d order_models.OrderModel(**self.stored_key_data)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_139f69b5","line":572,"updated":"2015-03-31 14:35:35.000000000","message":"merge artifact?","commit_id":"735fca20bb255e545fe4b9fed6c60c29b0271595"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"a56119f3320f5bd2ede1f0bfb8087c89ca112e54","unresolved":false,"context_lines":[{"line_number":569,"context_line":"        )"},{"line_number":570,"context_line":""},{"line_number":571,"context_line":"    @testtools.testcase.attr(\u0027positive\u0027)"},{"line_number":572,"context_line":"    @testtools.skip(\"broken until we figure out how to handle extensions\")"},{"line_number":573,"context_line":"    def test_create_stored_key_order_with_extensions(self):"},{"line_number":574,"context_line":"        # TODO(alee) - Figure out how we want to handle this."},{"line_number":575,"context_line":"        test_model \u003d order_models.OrderModel(**self.stored_key_data)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_9d2da948","line":572,"in_reply_to":"da9b358b_139f69b5","updated":"2015-04-01 04:17:22.000000000","message":"Done","commit_id":"735fca20bb255e545fe4b9fed6c60c29b0271595"}]}
