summaryrefslogtreecommitdiff
path: root/requirements.txt
diff options
context:
space:
mode:
authorColleen Murphy <colleen.murphy@suse.de>2019-07-31 18:28:16 -0700
committerColleen Murphy <colleen.murphy@suse.de>2019-08-05 14:23:17 -0700
commite8151070c052c2a26037cdad3ad3330899ff334b (patch)
tree879d126bdcceeeb2e66e5dbbceff38e1d66bce7c /requirements.txt
parent97d38108d624849b2facee454e9414d94fb51244 (diff)
downloadkeystone-e8151070c052c2a26037cdad3ad3330899ff334b.tar.gz
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
Diffstat (limited to 'requirements.txt')
-rw-r--r--requirements.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/requirements.txt b/requirements.txt
index b46f3cfe4..d33a94874 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -29,7 +29,7 @@ oslo.db>=4.27.0 # Apache-2.0
oslo.i18n>=3.15.3 # Apache-2.0
oslo.log>=3.44.0 # Apache-2.0
oslo.middleware>=3.31.0 # Apache-2.0
-oslo.policy>=1.43.1 # Apache-2.0
+oslo.policy>=2.3.0 # Apache-2.0
oslo.serialization!=2.19.1,>=2.18.0 # Apache-2.0
oslo.upgradecheck>=0.1.0 # Apache-2.0
oslo.utils>=3.33.0 # Apache-2.0