)]}'
{"barbican/common/quota.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7d83d63dd5e7566a9b44f540914240d16d0859c4","unresolved":false,"context_lines":[{"line_number":202,"context_line":"    def enforce(self, project):"},{"line_number":203,"context_line":"        \"\"\"Enforce the quota limit for the resource"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"        :param external_project_id: ID of project requesting to create"},{"line_number":206,"context_line":"        :raises QuotaReached: exception raised if quota forbids request"},{"line_number":207,"context_line":"        :return: None"},{"line_number":208,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":7,"id":"da20952f_96304b09","line":205,"updated":"2015-09-02 14:59:00.000000000","message":"Please update the docstring per the new argument/type.","commit_id":"8fd718d32ee7a40f586448f17291f250c8025326"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"928c5e507171efc385c2a22d3babe04958c94e86","unresolved":false,"context_lines":[{"line_number":202,"context_line":"    def enforce(self, project):"},{"line_number":203,"context_line":"        \"\"\"Enforce the quota limit for the resource"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"        :param external_project_id: ID of project requesting to create"},{"line_number":206,"context_line":"        :raises QuotaReached: exception raised if quota forbids request"},{"line_number":207,"context_line":"        :return: None"},{"line_number":208,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":7,"id":"da20952f_c1591a5d","line":205,"in_reply_to":"da20952f_96304b09","updated":"2015-09-02 15:33:29.000000000","message":"Done","commit_id":"8fd718d32ee7a40f586448f17291f250c8025326"}],"functionaltests/api/v1/functional/test_quotas_enforce.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7d83d63dd5e7566a9b44f540914240d16d0859c4","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        self.set_quotas(\u0027secrets\u0027, -1)"},{"line_number":70,"context_line":"        self.create_secrets(count\u003d5)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def test_secrets_disabled(self):"},{"line_number":73,"context_line":"        self.set_quotas(\u0027secrets\u0027, 0)"},{"line_number":74,"context_line":"        self.create_secrets(expected_return\u003d403)"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"da20952f_f1c0b12c","line":72,"updated":"2015-09-02 14:59:00.000000000","message":"I thought we were annotating negative and positive tests?","commit_id":"8fd718d32ee7a40f586448f17291f250c8025326"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"928c5e507171efc385c2a22d3babe04958c94e86","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        self.set_quotas(\u0027secrets\u0027, -1)"},{"line_number":70,"context_line":"        self.create_secrets(count\u003d5)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def test_secrets_disabled(self):"},{"line_number":73,"context_line":"        self.set_quotas(\u0027secrets\u0027, 0)"},{"line_number":74,"context_line":"        self.create_secrets(expected_return\u003d403)"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"da20952f_c46368dc","line":72,"in_reply_to":"da20952f_f1c0b12c","updated":"2015-09-02 15:33:29.000000000","message":"I\u0027ve seen some marked with \u0027security\u0027 and some with \u0027negative\u0027, but I\u0027ve not seen consistent tagging or a plan for consistent tagging.  Do we need a spec to put together a plan?  I\u0027d rather not add tags now without a clear direction.","commit_id":"8fd718d32ee7a40f586448f17291f250c8025326"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7d83d63dd5e7566a9b44f540914240d16d0859c4","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        self.create_consumers(count\u003d1)"},{"line_number":133,"context_line":"        self.create_consumers(expected_return\u003d403)"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def test_consumers_limited_five(self):"},{"line_number":136,"context_line":"        self.set_quotas(\u0027consumers\u0027, 5)"},{"line_number":137,"context_line":"        self.create_consumers(count\u003d5)"},{"line_number":138,"context_line":"        self.create_consumers(expected_return\u003d403)"}],"source_content_type":"text/x-python","patch_set":7,"id":"da20952f_51e71dac","line":135,"updated":"2015-09-02 14:59:00.000000000","message":"These are missing the transport key quota, but that probably needs it own specialized tests anyway?","commit_id":"8fd718d32ee7a40f586448f17291f250c8025326"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"928c5e507171efc385c2a22d3babe04958c94e86","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        self.create_consumers(count\u003d1)"},{"line_number":133,"context_line":"        self.create_consumers(expected_return\u003d403)"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def test_consumers_limited_five(self):"},{"line_number":136,"context_line":"        self.set_quotas(\u0027consumers\u0027, 5)"},{"line_number":137,"context_line":"        self.create_consumers(count\u003d5)"},{"line_number":138,"context_line":"        self.create_consumers(expected_return\u003d403)"}],"source_content_type":"text/x-python","patch_set":7,"id":"da20952f_a4dd1472","line":135,"in_reply_to":"da20952f_51e71dac","updated":"2015-09-02 15:33:29.000000000","message":"It turned out that transport keys are not a project resource.  There is one per plugin, not some number per project.  So all mention of transport key quotas has been scrubbed from the spec, code, and docs.","commit_id":"8fd718d32ee7a40f586448f17291f250c8025326"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7d83d63dd5e7566a9b44f540914240d16d0859c4","unresolved":false,"context_lines":[{"line_number":147,"context_line":"                 \"consumers\": -1}}"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    def set_quotas(self, resource, quota):"},{"line_number":150,"context_line":"        \"\"\"Utility function qo set resource quotas\"\"\""},{"line_number":151,"context_line":"        self.quota_data[\"project_quotas\"][resource] \u003d quota"},{"line_number":152,"context_line":"        request_model \u003d quota_models.ProjectQuotaRequestModel("},{"line_number":153,"context_line":"            **self.quota_data)"}],"source_content_type":"text/x-python","patch_set":7,"id":"da20952f_d119ed23","line":150,"updated":"2015-09-02 14:59:00.000000000","message":"nit: \u0027qo\u0027 --\u003e \u0027to\u0027","commit_id":"8fd718d32ee7a40f586448f17291f250c8025326"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"928c5e507171efc385c2a22d3babe04958c94e86","unresolved":false,"context_lines":[{"line_number":147,"context_line":"                 \"consumers\": -1}}"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    def set_quotas(self, resource, quota):"},{"line_number":150,"context_line":"        \"\"\"Utility function qo set resource quotas\"\"\""},{"line_number":151,"context_line":"        self.quota_data[\"project_quotas\"][resource] \u003d quota"},{"line_number":152,"context_line":"        request_model \u003d quota_models.ProjectQuotaRequestModel("},{"line_number":153,"context_line":"            **self.quota_data)"}],"source_content_type":"text/x-python","patch_set":7,"id":"da20952f_245ee4e9","line":150,"in_reply_to":"da20952f_d119ed23","updated":"2015-09-02 15:33:29.000000000","message":"Done","commit_id":"8fd718d32ee7a40f586448f17291f250c8025326"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"33af51f2dc3f7d30c8f7753596398b8bfe847006","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        self.order_behaviors.delete_all_created_orders()"},{"line_number":66,"context_line":"        super(QuotaEnforcementTestCase, self).tearDown()"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def test_secrets_unlimited(self):"},{"line_number":69,"context_line":"        self.set_quotas(\u0027secrets\u0027, -1)"},{"line_number":70,"context_line":"        self.create_secrets(count\u003d5)"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"da20952f_7eec6029","line":68,"updated":"2015-09-02 19:21:47.000000000","message":"Looks like an opportunity for these to be data-driven tests.  Could pass in the resource name, resource creation function, number to create, and expected rc.","commit_id":"233c3bc76d947767d131d7df28414630eafe12f2"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"643c5420afe63022a72fe367e68d9b0faa2e22b6","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        self.order_behaviors.delete_all_created_orders()"},{"line_number":66,"context_line":"        super(QuotaEnforcementTestCase, self).tearDown()"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def test_secrets_unlimited(self):"},{"line_number":69,"context_line":"        self.set_quotas(\u0027secrets\u0027, -1)"},{"line_number":70,"context_line":"        self.create_secrets(count\u003d5)"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"da20952f_8f4b3c59","line":68,"in_reply_to":"da20952f_7eec6029","updated":"2015-09-02 20:53:15.000000000","message":"Are you sure?  I started writing this, but it turns out it might be more lines of code and far less readable.  I\u0027m digging the simplicity of this implementation, even if it looks repetitive from a distance.","commit_id":"233c3bc76d947767d131d7df28414630eafe12f2"}],"functionaltests/run_tests.sh":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7d83d63dd5e7566a9b44f540914240d16d0859c4","unresolved":false,"context_lines":[{"line_number":35,"context_line":"testr slowest"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"# run the tests in parallel"},{"line_number":38,"context_line":"SKIP\u003d^\\(\\?\\!\\.\\*\\(ProjectQuotasPagingTestCase\\|QuotaEnforcementTestCase\\)\\)"},{"line_number":39,"context_line":"testr init"},{"line_number":40,"context_line":"testr run $SKIP --parallel --subunit | subunit-trace --no-failure-debug -f"},{"line_number":41,"context_line":"retval\u003d$?"}],"source_content_type":"text/x-sh","patch_set":7,"id":"da20952f_71a34150","line":38,"updated":"2015-09-02 14:59:00.000000000","message":"So I guess that \u0027no_parallel\u0027 flag is ignored then (or due to the testtools/nose issue)?","commit_id":"8fd718d32ee7a40f586448f17291f250c8025326"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"928c5e507171efc385c2a22d3babe04958c94e86","unresolved":false,"context_lines":[{"line_number":35,"context_line":"testr slowest"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"# run the tests in parallel"},{"line_number":38,"context_line":"SKIP\u003d^\\(\\?\\!\\.\\*\\(ProjectQuotasPagingTestCase\\|QuotaEnforcementTestCase\\)\\)"},{"line_number":39,"context_line":"testr init"},{"line_number":40,"context_line":"testr run $SKIP --parallel --subunit | subunit-trace --no-failure-debug -f"},{"line_number":41,"context_line":"retval\u003d$?"}],"source_content_type":"text/x-sh","patch_set":7,"id":"da20952f_e408ec2a","line":38,"in_reply_to":"da20952f_71a34150","updated":"2015-09-02 15:33:29.000000000","message":"Yea, there are two open bugs related to test tools and attributes.  I\u0027ll make sure it\u0027s fixed using the attribute once all the pieces are in.","commit_id":"8fd718d32ee7a40f586448f17291f250c8025326"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"33af51f2dc3f7d30c8f7753596398b8bfe847006","unresolved":false,"context_lines":[{"line_number":35,"context_line":"testr slowest"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"# run the tests in parallel"},{"line_number":38,"context_line":"SKIP\u003d^\\(\\?\\!\\.\\*\\(ProjectQuotasPagingTestCase\\|QuotaEnforcementTestCase\\)\\)"},{"line_number":39,"context_line":"testr init"},{"line_number":40,"context_line":"testr run $SKIP --parallel --subunit | subunit-trace --no-failure-debug -f"},{"line_number":41,"context_line":"retval\u003d$?"}],"source_content_type":"text/x-sh","patch_set":11,"id":"da20952f_83fc7d3f","line":38,"updated":"2015-09-02 19:21:47.000000000","message":"once we remote nose then we should be able to use the attributes rather than a regex","commit_id":"233c3bc76d947767d131d7df28414630eafe12f2"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"643c5420afe63022a72fe367e68d9b0faa2e22b6","unresolved":false,"context_lines":[{"line_number":35,"context_line":"testr slowest"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"# run the tests in parallel"},{"line_number":38,"context_line":"SKIP\u003d^\\(\\?\\!\\.\\*\\(ProjectQuotasPagingTestCase\\|QuotaEnforcementTestCase\\)\\)"},{"line_number":39,"context_line":"testr init"},{"line_number":40,"context_line":"testr run $SKIP --parallel --subunit | subunit-trace --no-failure-debug -f"},{"line_number":41,"context_line":"retval\u003d$?"}],"source_content_type":"text/x-sh","patch_set":11,"id":"da20952f_6f9ee8b9","line":38,"in_reply_to":"da20952f_83fc7d3f","updated":"2015-09-02 20:53:15.000000000","message":"Yep.  This is the line of code that started the nose removal effort.","commit_id":"233c3bc76d947767d131d7df28414630eafe12f2"}]}
