)]}'
{"barbican/api/controllers/cas.py":[{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"ade50a4705c52f086115d80b3129ddcb9faeb704","unresolved":false,"context_lines":[{"line_number":335,"context_line":"    def on_post(self, external_project_id, **kwargs):"},{"line_number":336,"context_line":"        LOG.debug(\u0027Start on_post for project-ID %s:...\u0027, external_project_id)"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"        # data \u003d api.load_body(pecan.request, validator\u003dself.validator)"},{"line_number":339,"context_line":"        data \u003d api.load_body(pecan.request)"},{"line_number":340,"context_line":"        project \u003d res.get_or_create_project(external_project_id)"},{"line_number":341,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_6aad2883","line":338,"updated":"2015-09-04 12:16:46.000000000","message":"Is this descriptive or leftover from a prior version? Should it be removed?","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"209956b6a97d8a27baa2321f0714d425ec898dbe","unresolved":false,"context_lines":[{"line_number":335,"context_line":"    def on_post(self, external_project_id, **kwargs):"},{"line_number":336,"context_line":"        LOG.debug(\u0027Start on_post for project-ID %s:...\u0027, external_project_id)"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"        # data \u003d api.load_body(pecan.request, validator\u003dself.validator)"},{"line_number":339,"context_line":"        data \u003d api.load_body(pecan.request)"},{"line_number":340,"context_line":"        project \u003d res.get_or_create_project(external_project_id)"},{"line_number":341,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_7921834c","line":338,"in_reply_to":"da20952f_65a8fb8c","updated":"2015-09-04 14:21:21.000000000","message":"Actually, what this points to is that we want to add a validator class for things like subject_dn, name, ca_parent_id to essentially check if they are present.\n\nThere are some functional tests that can be unskipped once this is in place.\n\nWe can readd this line in a separate CR.","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"c6e205dd246e99ef7aba0841ced69313f42d31ab","unresolved":false,"context_lines":[{"line_number":335,"context_line":"    def on_post(self, external_project_id, **kwargs):"},{"line_number":336,"context_line":"        LOG.debug(\u0027Start on_post for project-ID %s:...\u0027, external_project_id)"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"        # data \u003d api.load_body(pecan.request, validator\u003dself.validator)"},{"line_number":339,"context_line":"        data \u003d api.load_body(pecan.request)"},{"line_number":340,"context_line":"        project \u003d res.get_or_create_project(external_project_id)"},{"line_number":341,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_65a8fb8c","line":338,"in_reply_to":"da20952f_6aad2883","updated":"2015-09-04 12:23:45.000000000","message":"I\u0027ll remove it","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"ade50a4705c52f086115d80b3129ddcb9faeb704","unresolved":false,"context_lines":[{"line_number":340,"context_line":"        project \u003d res.get_or_create_project(external_project_id)"},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"        ctxt \u003d controllers._get_barbican_context(pecan.request)"},{"line_number":343,"context_line":"        if ctxt:  # in authenticated pipleline case, always use auth token user"},{"line_number":344,"context_line":"            creator_id \u003d ctxt.user"},{"line_number":345,"context_line":""},{"line_number":346,"context_line":"        # TODO(alee) Add quota enforcement"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_2aa5f0a0","line":343,"updated":"2015-09-04 12:16:46.000000000","message":"nit: pipeline","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"77f94dbcb100cbd34c633fe4b396a926fcfca18e","unresolved":false,"context_lines":[{"line_number":340,"context_line":"        project \u003d res.get_or_create_project(external_project_id)"},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"        ctxt \u003d controllers._get_barbican_context(pecan.request)"},{"line_number":343,"context_line":"        if ctxt:  # in authenticated pipleline case, always use auth token user"},{"line_number":344,"context_line":"            creator_id \u003d ctxt.user"},{"line_number":345,"context_line":""},{"line_number":346,"context_line":"        # TODO(alee) Add quota enforcement"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_c550e734","line":343,"in_reply_to":"da20952f_25976349","updated":"2015-09-04 12:31:15.000000000","message":"And actually... in the unauthenticated pipeline. I think we should still have a context. But the user is None.","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"c6e205dd246e99ef7aba0841ced69313f42d31ab","unresolved":false,"context_lines":[{"line_number":340,"context_line":"        project \u003d res.get_or_create_project(external_project_id)"},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"        ctxt \u003d controllers._get_barbican_context(pecan.request)"},{"line_number":343,"context_line":"        if ctxt:  # in authenticated pipleline case, always use auth token user"},{"line_number":344,"context_line":"            creator_id \u003d ctxt.user"},{"line_number":345,"context_line":""},{"line_number":346,"context_line":"        # TODO(alee) Add quota enforcement"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_25976349","line":343,"in_reply_to":"da20952f_2aa5f0a0","updated":"2015-09-04 12:23:45.000000000","message":"ok","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"209956b6a97d8a27baa2321f0714d425ec898dbe","unresolved":false,"context_lines":[{"line_number":340,"context_line":"        project \u003d res.get_or_create_project(external_project_id)"},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"        ctxt \u003d controllers._get_barbican_context(pecan.request)"},{"line_number":343,"context_line":"        if ctxt:  # in authenticated pipleline case, always use auth token user"},{"line_number":344,"context_line":"            creator_id \u003d ctxt.user"},{"line_number":345,"context_line":""},{"line_number":346,"context_line":"        # TODO(alee) Add quota enforcement"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_19d96757","line":343,"in_reply_to":"da20952f_c550e734","updated":"2015-09-04 14:21:21.000000000","message":"And thats OK because not all CAs are created this way.  creater_id is nullable in the db","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"}],"barbican/model/models.py":[{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"aee200f4e6f4db98215f48a616815dadca6e5550","unresolved":false,"context_lines":[{"line_number":825,"context_line":"    project_id \u003d sa.Column("},{"line_number":826,"context_line":"        sa.String(36),"},{"line_number":827,"context_line":"        sa.ForeignKey(\u0027projects.id\u0027, name\u003d\u0027cas_project_fk\u0027),"},{"line_number":828,"context_line":"        nullable\u003dTrue)"},{"line_number":829,"context_line":""},{"line_number":830,"context_line":"    ca_meta \u003d orm.relationship("},{"line_number":831,"context_line":"        \u0027CertificateAuthorityMetadatum\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"da20952f_ce811591","line":828,"updated":"2015-09-03 14:02:24.000000000","message":"While I think setting the creator_id makes sense (since we could actually subject this to the policies that we have defined) I\u0027m not sure if it makes any sense to put the parent_ca_id here. What is it going to be used for?\n\nI do recommend however to put up a CR to the spec where you specify that \"owner\" is now going to be \"project_id\" and the addition of \"creator_id\"","commit_id":"9c6c2c3b0804ad439784e2ba218605a8038f393b"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"3371430ee82fdeeba1e9e2d3ad29f5d2900c1b94","unresolved":false,"context_lines":[{"line_number":825,"context_line":"    project_id \u003d sa.Column("},{"line_number":826,"context_line":"        sa.String(36),"},{"line_number":827,"context_line":"        sa.ForeignKey(\u0027projects.id\u0027, name\u003d\u0027cas_project_fk\u0027),"},{"line_number":828,"context_line":"        nullable\u003dTrue)"},{"line_number":829,"context_line":""},{"line_number":830,"context_line":"    ca_meta \u003d orm.relationship("},{"line_number":831,"context_line":"        \u0027CertificateAuthorityMetadatum\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"da20952f_b192064a","line":828,"in_reply_to":"da20952f_ce811591","updated":"2015-09-03 14:13:18.000000000","message":"Agreed to put up a new CR on the spec.  Will do that once we have everything in a stable state - and collect all changes.\n\nThe idea behind parenmt_ca_id was that someone might want to query a CA to see which subcas have been created.  Something like GET /cas/foo/subcas\n\nBut we can add this in a later CR if that call makes sense.\nWe should remove it here.","commit_id":"9c6c2c3b0804ad439784e2ba218605a8038f393b"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"ddc74d37e9c77b27f66f54df2ff82d1197ce216a","unresolved":false,"context_lines":[{"line_number":820,"context_line":"    plugin_name \u003d sa.Column(sa.String(255), nullable\u003dFalse)"},{"line_number":821,"context_line":"    plugin_ca_id \u003d sa.Column(sa.Text, nullable\u003dFalse)"},{"line_number":822,"context_line":"    expiration \u003d sa.Column(sa.DateTime, default\u003dNone)"},{"line_number":823,"context_line":"    creator_id \u003d sa.Column(sa.String(255), nullable\u003dTrue)"},{"line_number":824,"context_line":"    project_id \u003d sa.Column("},{"line_number":825,"context_line":"        sa.String(36),"},{"line_number":826,"context_line":"        sa.ForeignKey(\u0027projects.id\u0027, name\u003d\u0027cas_project_fk\u0027),"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_c97821c7","line":823,"updated":"2015-09-03 18:34:57.000000000","message":"Do these changes to the model require a corresponding migration script?","commit_id":"a376b367da312760653b6263919c8b4d29049a16"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"785f091ad2d1e1a108cdf2708ca04ca5f226b99d","unresolved":false,"context_lines":[{"line_number":820,"context_line":"    plugin_name \u003d sa.Column(sa.String(255), nullable\u003dFalse)"},{"line_number":821,"context_line":"    plugin_ca_id \u003d sa.Column(sa.Text, nullable\u003dFalse)"},{"line_number":822,"context_line":"    expiration \u003d sa.Column(sa.DateTime, default\u003dNone)"},{"line_number":823,"context_line":"    creator_id \u003d sa.Column(sa.String(255), nullable\u003dTrue)"},{"line_number":824,"context_line":"    project_id \u003d sa.Column("},{"line_number":825,"context_line":"        sa.String(36),"},{"line_number":826,"context_line":"        sa.ForeignKey(\u0027projects.id\u0027, name\u003d\u0027cas_project_fk\u0027),"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_892c69ad","line":823,"in_reply_to":"da20952f_c97821c7","updated":"2015-09-03 18:36:34.000000000","message":"They do - and Ozz is planning to add one in a follow-on CR","commit_id":"a376b367da312760653b6263919c8b4d29049a16"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"ade50a4705c52f086115d80b3129ddcb9faeb704","unresolved":false,"context_lines":[{"line_number":861,"context_line":""},{"line_number":862,"context_line":"        creator_id \u003d parsed_ca.pop(\u0027creator_id\u0027, None)"},{"line_number":863,"context_line":"        if creator_id is not None:"},{"line_number":864,"context_line":"            self.creator_id \u003d creator_id"},{"line_number":865,"context_line":""},{"line_number":866,"context_line":"        project_id \u003d parsed_ca.pop(\u0027project_id\u0027, None)"},{"line_number":867,"context_line":"        if project_id is not None:"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_cacd5432","line":864,"updated":"2015-09-04 12:16:46.000000000","message":"Do we now need to raise a MissingArgumentError here if the creator_id isn\u0027t provided (like above)?","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"c5befef6075b5c30e30f1b20442e09410e7b526c","unresolved":false,"context_lines":[{"line_number":861,"context_line":""},{"line_number":862,"context_line":"        creator_id \u003d parsed_ca.pop(\u0027creator_id\u0027, None)"},{"line_number":863,"context_line":"        if creator_id is not None:"},{"line_number":864,"context_line":"            self.creator_id \u003d creator_id"},{"line_number":865,"context_line":""},{"line_number":866,"context_line":"        project_id \u003d parsed_ca.pop(\u0027project_id\u0027, None)"},{"line_number":867,"context_line":"        if project_id is not None:"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_65579b5a","line":864,"in_reply_to":"da20952f_25cc4369","updated":"2015-09-04 12:30:49.000000000","message":"I figured the creator_id should always be there (someone/thing has to generate the request). I wasn\u0027t sure if we wanted explicit error handling to handle that assumption.","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"209956b6a97d8a27baa2321f0714d425ec898dbe","unresolved":false,"context_lines":[{"line_number":861,"context_line":""},{"line_number":862,"context_line":"        creator_id \u003d parsed_ca.pop(\u0027creator_id\u0027, None)"},{"line_number":863,"context_line":"        if creator_id is not None:"},{"line_number":864,"context_line":"            self.creator_id \u003d creator_id"},{"line_number":865,"context_line":""},{"line_number":866,"context_line":"        project_id \u003d parsed_ca.pop(\u0027project_id\u0027, None)"},{"line_number":867,"context_line":"        if project_id is not None:"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_f9883324","line":864,"in_reply_to":"da20952f_65579b5a","updated":"2015-09-04 14:21:21.000000000","message":"CAs are either populated through being created in the POST /cas interface, or they are created by being refreshed from the CA plugins.  (A CA/ subCA might be added on the backend).\n\nIn that case, userid is None, so we need the check.  Ditto for project_id","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"c6e205dd246e99ef7aba0841ced69313f42d31ab","unresolved":false,"context_lines":[{"line_number":861,"context_line":""},{"line_number":862,"context_line":"        creator_id \u003d parsed_ca.pop(\u0027creator_id\u0027, None)"},{"line_number":863,"context_line":"        if creator_id is not None:"},{"line_number":864,"context_line":"            self.creator_id \u003d creator_id"},{"line_number":865,"context_line":""},{"line_number":866,"context_line":"        project_id \u003d parsed_ca.pop(\u0027project_id\u0027, None)"},{"line_number":867,"context_line":"        if project_id is not None:"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_25cc4369","line":864,"in_reply_to":"da20952f_cacd5432","updated":"2015-09-04 12:23:45.000000000","message":"Well... To be honest I\u0027m not so sure if the None check is even needed. I guess it was just added for consistency. But there should always be a creator_id. And that is gotten from the context.","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"036495a875611b489e2230c5e28c6cee68c3f27c","unresolved":false,"context_lines":[{"line_number":861,"context_line":""},{"line_number":862,"context_line":"        creator_id \u003d parsed_ca.pop(\u0027creator_id\u0027, None)"},{"line_number":863,"context_line":"        if creator_id is not None:"},{"line_number":864,"context_line":"            self.creator_id \u003d creator_id"},{"line_number":865,"context_line":""},{"line_number":866,"context_line":"        project_id \u003d parsed_ca.pop(\u0027project_id\u0027, None)"},{"line_number":867,"context_line":"        if project_id is not None:"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_d40df68f","line":864,"in_reply_to":"da20952f_f9883324","updated":"2015-09-04 14:44:00.000000000","message":"Ah, that makes sense. Thanks for the explanation!","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"ade50a4705c52f086115d80b3129ddcb9faeb704","unresolved":false,"context_lines":[{"line_number":865,"context_line":""},{"line_number":866,"context_line":"        project_id \u003d parsed_ca.pop(\u0027project_id\u0027, None)"},{"line_number":867,"context_line":"        if project_id is not None:"},{"line_number":868,"context_line":"            self.project_id \u003d project_id"},{"line_number":869,"context_line":""},{"line_number":870,"context_line":"        for key in parsed_ca:"},{"line_number":871,"context_line":"            meta \u003d CertificateAuthorityMetadatum(key, parsed_ca[key])"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_8ad3dcd4","line":868,"updated":"2015-09-04 12:16:46.000000000","message":"Ditto.","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"209956b6a97d8a27baa2321f0714d425ec898dbe","unresolved":false,"context_lines":[{"line_number":865,"context_line":""},{"line_number":866,"context_line":"        project_id \u003d parsed_ca.pop(\u0027project_id\u0027, None)"},{"line_number":867,"context_line":"        if project_id is not None:"},{"line_number":868,"context_line":"            self.project_id \u003d project_id"},{"line_number":869,"context_line":""},{"line_number":870,"context_line":"        for key in parsed_ca:"},{"line_number":871,"context_line":"            meta \u003d CertificateAuthorityMetadatum(key, parsed_ca[key])"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_59703f40","line":868,"in_reply_to":"da20952f_85a18f48","updated":"2015-09-04 14:21:21.000000000","message":"project_id and user_id must be nullable as mentioned above.","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"c6e205dd246e99ef7aba0841ced69313f42d31ab","unresolved":false,"context_lines":[{"line_number":865,"context_line":""},{"line_number":866,"context_line":"        project_id \u003d parsed_ca.pop(\u0027project_id\u0027, None)"},{"line_number":867,"context_line":"        if project_id is not None:"},{"line_number":868,"context_line":"            self.project_id \u003d project_id"},{"line_number":869,"context_line":""},{"line_number":870,"context_line":"        for key in parsed_ca:"},{"line_number":871,"context_line":"            meta \u003d CertificateAuthorityMetadatum(key, parsed_ca[key])"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_c5e307d8","line":868,"in_reply_to":"da20952f_8ad3dcd4","updated":"2015-09-04 12:23:45.000000000","message":"Same as above, except that this is not gotten from the context, but it\u0027s the result of finding the project from the headers.","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"c5befef6075b5c30e30f1b20442e09410e7b526c","unresolved":false,"context_lines":[{"line_number":865,"context_line":""},{"line_number":866,"context_line":"        project_id \u003d parsed_ca.pop(\u0027project_id\u0027, None)"},{"line_number":867,"context_line":"        if project_id is not None:"},{"line_number":868,"context_line":"            self.project_id \u003d project_id"},{"line_number":869,"context_line":""},{"line_number":870,"context_line":"        for key in parsed_ca:"},{"line_number":871,"context_line":"            meta \u003d CertificateAuthorityMetadatum(key, parsed_ca[key])"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_85a18f48","line":868,"in_reply_to":"da20952f_c5e307d8","updated":"2015-09-04 12:30:49.000000000","message":"Same thoughts as for creator_id. If it\u0027s more appropriate to just remove the None check, that\u0027s fine too. I just generally take a fail fast first mindset.","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"}],"barbican/plugin/interface/certificate_manager.py":[{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"aee200f4e6f4db98215f48a616815dadca6e5550","unresolved":false,"context_lines":[{"line_number":436,"context_line":"        \"\"\""},{"line_number":437,"context_line":"        return False    # pragma: no cover"},{"line_number":438,"context_line":""},{"line_number":439,"context_line":"    def create_ca(self, ca_create_dto):"},{"line_number":440,"context_line":"        \"\"\"Creates a subordinate CA upon request"},{"line_number":441,"context_line":""},{"line_number":442,"context_line":"        This call should onoy be made if a plugin returns True for"}],"source_content_type":"text/x-python","patch_set":2,"id":"da20952f_ee2ad98f","line":439,"updated":"2015-09-03 14:02:24.000000000","message":"while this works. Maybe it\u0027s worth while to already decorate this as\n\n@abc.abstractmethod\n\nand add that function (even if it would throw NotImplementedError) to our plugins. Just so we get that on the table and it\u0027s properly reflected.","commit_id":"9c6c2c3b0804ad439784e2ba218605a8038f393b"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"3371430ee82fdeeba1e9e2d3ad29f5d2900c1b94","unresolved":false,"context_lines":[{"line_number":436,"context_line":"        \"\"\""},{"line_number":437,"context_line":"        return False    # pragma: no cover"},{"line_number":438,"context_line":""},{"line_number":439,"context_line":"    def create_ca(self, ca_create_dto):"},{"line_number":440,"context_line":"        \"\"\"Creates a subordinate CA upon request"},{"line_number":441,"context_line":""},{"line_number":442,"context_line":"        This call should onoy be made if a plugin returns True for"}],"source_content_type":"text/x-python","patch_set":2,"id":"da20952f_11f97280","line":439,"in_reply_to":"da20952f_ee2ad98f","updated":"2015-09-03 14:13:18.000000000","message":"The idea behind not adding that decorator is to not force current implementers to make changes immediately.  Doing this and creating a default implementation was part of the spec.","commit_id":"9c6c2c3b0804ad439784e2ba218605a8038f393b"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"92de0386eb27d5cf0c2f86ec1254ebd30f215b82","unresolved":false,"context_lines":[{"line_number":434,"context_line":""},{"line_number":435,"context_line":"        :return: boolean, True if supported, defaults to False"},{"line_number":436,"context_line":"        \"\"\""},{"line_number":437,"context_line":"        return False    # pragma: no cover"},{"line_number":438,"context_line":""},{"line_number":439,"context_line":"    def create_ca(self, ca_create_dto):"},{"line_number":440,"context_line":"        \"\"\"Creates a subordinate CA upon request"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_eccc138b","line":437,"updated":"2015-09-03 18:44:26.000000000","message":"Why are these not expected to be tested?","commit_id":"a376b367da312760653b6263919c8b4d29049a16"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"0724ff21fc24aea7a86feac3d8132993bb0383bb","unresolved":false,"context_lines":[{"line_number":434,"context_line":""},{"line_number":435,"context_line":"        :return: boolean, True if supported, defaults to False"},{"line_number":436,"context_line":"        \"\"\""},{"line_number":437,"context_line":"        return False    # pragma: no cover"},{"line_number":438,"context_line":""},{"line_number":439,"context_line":"    def create_ca(self, ca_create_dto):"},{"line_number":440,"context_line":"        \"\"\"Creates a subordinate CA upon request"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_a30b7323","line":437,"in_reply_to":"da20952f_eccc138b","updated":"2015-09-04 09:11:44.000000000","message":"because these are interfaces. These should be tested once they get a proper implementation in the different plugins.","commit_id":"a376b367da312760653b6263919c8b4d29049a16"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"ade50a4705c52f086115d80b3129ddcb9faeb704","unresolved":false,"context_lines":[{"line_number":439,"context_line":"    def create_ca(self, ca_create_dto):"},{"line_number":440,"context_line":"        \"\"\"Creates a subordinate CA upon request"},{"line_number":441,"context_line":""},{"line_number":442,"context_line":"        This call should onoy be made if a plugin returns True for"},{"line_number":443,"context_line":"        supports_create_ca()."},{"line_number":444,"context_line":""},{"line_number":445,"context_line":"        :param ca_create_dto:"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_2a7970c8","line":442,"updated":"2015-09-04 12:16:46.000000000","message":"nit: only","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"}],"barbican/tests/model/test_models.py":[{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"ade50a4705c52f086115d80b3129ddcb9faeb704","unresolved":false,"context_lines":[{"line_number":282,"context_line":"        self.assertIsInstance(ca.expiration, datetime.datetime)"},{"line_number":283,"context_line":"        self.assertEqual(ca.created_at, ca.updated_at)"},{"line_number":284,"context_line":"        self.assertEqual(self.parsed_ca[\u0027creator_id\u0027], ca.creator_id)"},{"line_number":285,"context_line":"        self.assertEqual(self.parsed_ca[\u0027project_id\u0027], ca.project_id)"},{"line_number":286,"context_line":""},{"line_number":287,"context_line":""},{"line_number":288,"context_line":"class WhenCreatingNewProjectCertificateAuthority(utils.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_c5d6a74e","line":285,"updated":"2015-09-04 12:16:46.000000000","message":"Do we also want an assert for parent_ca_id?","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"c5befef6075b5c30e30f1b20442e09410e7b526c","unresolved":false,"context_lines":[{"line_number":282,"context_line":"        self.assertIsInstance(ca.expiration, datetime.datetime)"},{"line_number":283,"context_line":"        self.assertEqual(ca.created_at, ca.updated_at)"},{"line_number":284,"context_line":"        self.assertEqual(self.parsed_ca[\u0027creator_id\u0027], ca.creator_id)"},{"line_number":285,"context_line":"        self.assertEqual(self.parsed_ca[\u0027project_id\u0027], ca.project_id)"},{"line_number":286,"context_line":""},{"line_number":287,"context_line":""},{"line_number":288,"context_line":"class WhenCreatingNewProjectCertificateAuthority(utils.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_45aff729","line":285,"in_reply_to":"da20952f_25fa0376","updated":"2015-09-04 12:30:49.000000000","message":"Ah, gotcha. Ok.","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"209956b6a97d8a27baa2321f0714d425ec898dbe","unresolved":false,"context_lines":[{"line_number":282,"context_line":"        self.assertIsInstance(ca.expiration, datetime.datetime)"},{"line_number":283,"context_line":"        self.assertEqual(ca.created_at, ca.updated_at)"},{"line_number":284,"context_line":"        self.assertEqual(self.parsed_ca[\u0027creator_id\u0027], ca.creator_id)"},{"line_number":285,"context_line":"        self.assertEqual(self.parsed_ca[\u0027project_id\u0027], ca.project_id)"},{"line_number":286,"context_line":""},{"line_number":287,"context_line":""},{"line_number":288,"context_line":"class WhenCreatingNewProjectCertificateAuthority(utils.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_19e3a7da","line":285,"in_reply_to":"da20952f_45aff729","updated":"2015-09-04 14:21:21.000000000","message":"We may add it later.  There might be a use case for querying which subcas have been created for a given CA for instance.  But that will be a separate CR.","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"c6e205dd246e99ef7aba0841ced69313f42d31ab","unresolved":false,"context_lines":[{"line_number":282,"context_line":"        self.assertIsInstance(ca.expiration, datetime.datetime)"},{"line_number":283,"context_line":"        self.assertEqual(ca.created_at, ca.updated_at)"},{"line_number":284,"context_line":"        self.assertEqual(self.parsed_ca[\u0027creator_id\u0027], ca.creator_id)"},{"line_number":285,"context_line":"        self.assertEqual(self.parsed_ca[\u0027project_id\u0027], ca.project_id)"},{"line_number":286,"context_line":""},{"line_number":287,"context_line":""},{"line_number":288,"context_line":"class WhenCreatingNewProjectCertificateAuthority(utils.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_25fa0376","line":285,"in_reply_to":"da20952f_c5d6a74e","updated":"2015-09-04 12:23:45.000000000","message":"parent_ca_id is not part of the model","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"}],"barbican/tests/tasks/test_certificate_resources.py":[{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"ade50a4705c52f086115d80b3129ddcb9faeb704","unresolved":false,"context_lines":[{"line_number":901,"context_line":"        )"},{"line_number":902,"context_line":""},{"line_number":903,"context_line":"    def _config_cert_plugin(self):"},{"line_number":904,"context_line":"        \"\"\"Mock the certificate plugin manager.\"\"\""},{"line_number":905,"context_line":"        cert_plugin_config \u003d {"},{"line_number":906,"context_line":"            \u0027return_value.get_plugin.return_value\u0027: self.cert_plugin,"},{"line_number":907,"context_line":"            \u0027return_value.get_plugin_by_name.return_value\u0027: self.cert_plugin,"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_a50613cc","line":904,"updated":"2015-09-04 12:16:46.000000000","message":"Why not just fold this back into setUp? Is it reused anywhere else?","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"036495a875611b489e2230c5e28c6cee68c3f27c","unresolved":false,"context_lines":[{"line_number":901,"context_line":"        )"},{"line_number":902,"context_line":""},{"line_number":903,"context_line":"    def _config_cert_plugin(self):"},{"line_number":904,"context_line":"        \"\"\"Mock the certificate plugin manager.\"\"\""},{"line_number":905,"context_line":"        cert_plugin_config \u003d {"},{"line_number":906,"context_line":"            \u0027return_value.get_plugin.return_value\u0027: self.cert_plugin,"},{"line_number":907,"context_line":"            \u0027return_value.get_plugin_by_name.return_value\u0027: self.cert_plugin,"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_94d9bef5","line":904,"in_reply_to":"da20952f_59711f0b","updated":"2015-09-04 14:44:00.000000000","message":"Ok, that\u0027s fine. Just curious more than anything. :)","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"209956b6a97d8a27baa2321f0714d425ec898dbe","unresolved":false,"context_lines":[{"line_number":901,"context_line":"        )"},{"line_number":902,"context_line":""},{"line_number":903,"context_line":"    def _config_cert_plugin(self):"},{"line_number":904,"context_line":"        \"\"\"Mock the certificate plugin manager.\"\"\""},{"line_number":905,"context_line":"        cert_plugin_config \u003d {"},{"line_number":906,"context_line":"            \u0027return_value.get_plugin.return_value\u0027: self.cert_plugin,"},{"line_number":907,"context_line":"            \u0027return_value.get_plugin_by_name.return_value\u0027: self.cert_plugin,"}],"source_content_type":"text/x-python","patch_set":6,"id":"da20952f_59711f0b","line":904,"in_reply_to":"da20952f_a50613cc","updated":"2015-09-04 14:21:21.000000000","message":"It could be.  If you look at some of the other test suites though, its common to extract this logic as is done here.\n\nJust following the same trend.  I do think it makes the code easier to follow.","commit_id":"43d243518ccb4ebae913917d8ea392f7e8e8d8af"}]}
