keystone/keystone/common/rbac_enforcer
Colleen Murphy e8151070c0 Suppress policy deprecation warnings in unit tests
Since the WSGI app is reinitialized pretty much for every unit test, and
we have deprecated so many policies, we get hundreds of megabytes of
deprecation warnings in the unit test logs. This is unnecessary for unit
tests, a noisy hindrance to developers, and causes a high failure rate
in our CI due to the huge logs. This change fixes the issue for the unit
tests by adding warnings filters for DeprecationWarnings and
UserWarnings from oslo.policy and oslo.context.

This does not solve the issue that deployers see a lot of noise in their
logs. However, since production servers aren't reinitializing the WSGI
app quite so often, it's a less severe issue.

Related-bug: #1836568

Change-Id: Iaa7eae03bde7ab43a8c5a5886686f834cf7ec620
Depends-on: https://review.opendev.org/673932
2019-08-05 14:23:17 -07:00
..
__init__.py Fix keystone.common.rbac_enforcer.__init__.py exporting 2018-07-12 22:09:12 +00:00
enforcer.py Suppress policy deprecation warnings in unit tests 2019-08-05 14:23:17 -07:00
policy.py Implement base for new RBAC Enforcer 2018-06-27 22:38:06 +00:00