)]}'
{"cinder/tests/unit/api/contrib/test_volume_type_access.py":[{"author":{"_account_id":32171,"name":"Girish Chilukuri","email":"girish.chilukuri@ibm.com","username":"GirishChilukuri"},"change_message_id":"a86f64d7c21194029da7f701c1a133b4c3e14c5e","unresolved":true,"context_lines":[{"line_number":314,"context_line":"        req \u003d fakes.HTTPRequest.blank(\u0027/v2/%s/types/%s/action\u0027 % ("},{"line_number":315,"context_line":"            fake.PROJECT_ID, fake.VOLUME_TYPE3_ID),"},{"line_number":316,"context_line":"            use_admin_context\u003dTrue)"},{"line_number":317,"context_line":"        result \u003d self.type_action_controller._addProjectAccess("},{"line_number":318,"context_line":"            req, fake.VOLUME_TYPE4_ID, body\u003dbody)"},{"line_number":319,"context_line":"        self.assertEqual(HTTPStatus.ACCEPTED, result.status_code)"},{"line_number":320,"context_line":""},{"line_number":321,"context_line":"    def test_add_project_access_with_no_admin_user(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"54a5b259_1c4f943e","line":318,"range":{"start_line":317,"start_character":8,"end_line":318,"end_character":49},"updated":"2021-02-26 05:36:37.000000000","message":"py36 job output link: https://18591ccdfb7358b3e61f-0f0c0c25612519a3a781fc7a48e209af.ssl.cf5.rackcdn.com/777574/1/check/openstack-tox-py36/b59fe1c/job-output.txt\n\nI think \"test_add_project_access\" unit test is failing here, from the logs I could see below error\n\ncinder.exception.PolicyNotAuthorized: Policy doesn\u0027t allow volume_extension:volume_type_access:addProjectAccess to be performed.\nDuring handling of the above exception, another exception occurred:\nTraceback (most recent call last):\n       File \"/home/zuul/src/opendev.org/openstack/cinder/cinder/tests/unit/api/contrib/test_volume_type_access.py\", line 318, in test_add_project_access\n       req, fake.VOLUME_TYPE4_ID, body\u003dbody)\n\n       File \"/home/zuul/src/opendev.org/openstack/cinder/cinder/api/validation/__init__.py\", line 61, in wrapper\n       return func(*args, **kwargs)\n\n       File \"/home/zuul/src/opendev.org/openstack/cinder/cinder/api/contrib/volume_type_access.py\", line 104, in _addProjectAccess\n       policy.ADD_PROJECT_POLICY)\n\n       File \"/home/zuul/src/opendev.org/openstack/cinder/cinder/api/api_utils.py\", line 165, in validate_project_and_authorize\n       raise exc.HTTPForbidden(explanation\u003dexplanation)\n\n       webob.exc.HTTPForbidden: You are not authorized to perform this operation.","commit_id":"2a34a2c617e8a9b5e98667648b32b6ba592be254"}]}
