)]}'
{"glance/api/policy.py":[{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"05c1d3cd21dfd09af0748830b5f3e76174541281","unresolved":true,"context_lines":[{"line_number":59,"context_line":"        # warning again."},{"line_number":60,"context_line":"        _ENFORCER.suppress_default_change_warnings \u003d True"},{"line_number":61,"context_line":"        if suppress_deprecation_warnings:"},{"line_number":62,"context_line":"            _ENFORCER.suppress_deprecation_warnings \u003d True"},{"line_number":63,"context_line":"        self.register_defaults(policies.list_rules())"},{"line_number":64,"context_line":"        if CONF.enforce_secure_rbac and CONF.oslo_policy.enforce_new_defaults:"},{"line_number":65,"context_line":"            LOG.warning(_LW("}],"source_content_type":"text/x-python","patch_set":1,"id":"a323f8dd_c97c66bf","line":62,"updated":"2021-08-18 15:51:57.000000000","message":"Isn\u0027t there something in the tox unit/functional environment that we could use to detect whether or not we should default these off?\n\nI mean, this is fine for now I guess, but it would be nice to avoid having to always pass these in, if we know we\u0027re running in a test.","commit_id":"33c9c2ec08f3bb5d794541b9204cafb5676e4b43"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"41a8b37ebd91c62c9e099ff90ac814c5b5ee846a","unresolved":true,"context_lines":[{"line_number":59,"context_line":"        # warning again."},{"line_number":60,"context_line":"        _ENFORCER.suppress_default_change_warnings \u003d True"},{"line_number":61,"context_line":"        if suppress_deprecation_warnings:"},{"line_number":62,"context_line":"            _ENFORCER.suppress_deprecation_warnings \u003d True"},{"line_number":63,"context_line":"        self.register_defaults(policies.list_rules())"},{"line_number":64,"context_line":"        if CONF.enforce_secure_rbac and CONF.oslo_policy.enforce_new_defaults:"},{"line_number":65,"context_line":"            LOG.warning(_LW("}],"source_content_type":"text/x-python","patch_set":1,"id":"158d94af_73a2be6e","line":62,"in_reply_to":"1d1b3f3c_63aa82ee","updated":"2021-08-18 16:53:42.000000000","message":"Well, I was thinking something like \"setenv \u003d OS_IN_TEST\u003dTrue\" in tox.ini and then check os.env right here.\n\nBut yeah, for later.","commit_id":"33c9c2ec08f3bb5d794541b9204cafb5676e4b43"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"d8d2c529031b3018b7108415bfba1390a0084cb8","unresolved":true,"context_lines":[{"line_number":59,"context_line":"        # warning again."},{"line_number":60,"context_line":"        _ENFORCER.suppress_default_change_warnings \u003d True"},{"line_number":61,"context_line":"        if suppress_deprecation_warnings:"},{"line_number":62,"context_line":"            _ENFORCER.suppress_deprecation_warnings \u003d True"},{"line_number":63,"context_line":"        self.register_defaults(policies.list_rules())"},{"line_number":64,"context_line":"        if CONF.enforce_secure_rbac and CONF.oslo_policy.enforce_new_defaults:"},{"line_number":65,"context_line":"            LOG.warning(_LW("}],"source_content_type":"text/x-python","patch_set":1,"id":"1d1b3f3c_63aa82ee","line":62,"in_reply_to":"a323f8dd_c97c66bf","updated":"2021-08-18 15:59:18.000000000","message":"i have not checked on this yet or how to detect if they are coming from test what we can do is start using policy fixture in glance where we can init the enforcer at one place and disable it from there instead of disabling it from almost all the tests.","commit_id":"33c9c2ec08f3bb5d794541b9204cafb5676e4b43"}]}
