summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguang-yee <guang.yee@hpe.com>2016-02-22 15:58:48 -0800
committerguang-yee <guang.yee@hpe.com>2016-02-22 16:00:18 -0800
commit182f4461f26f236df98a47381314c6f46809c945 (patch)
tree31f21f84aee2738b94959298ac588c74e94e77b8
parent9167afaafc216c63fdc875e737bc379400e94059 (diff)
downloadkeystonemiddleware-182f4461f26f236df98a47381314c6f46809c945.tar.gz
Disble deprecation warning check when loading auth plugins2.3.3
Change is applicable to stable/liberty branch only. Change-Id: I6f54d1fa10333935dcbca0ceb0474b643359bdd5
-rw-r--r--keystonemiddleware/tests/unit/auth_token/test_auth_token_middleware.py6
-rw-r--r--keystonemiddleware/tests/unit/auth_token/test_user_auth_plugin.py6
2 files changed, 12 insertions, 0 deletions
diff --git a/keystonemiddleware/tests/unit/auth_token/test_auth_token_middleware.py b/keystonemiddleware/tests/unit/auth_token/test_auth_token_middleware.py
index e729735..e6a495f 100644
--- a/keystonemiddleware/tests/unit/auth_token/test_auth_token_middleware.py
+++ b/keystonemiddleware/tests/unit/auth_token/test_auth_token_middleware.py
@@ -21,6 +21,7 @@ import stat
import tempfile
import time
import uuid
+import warnings
import fixtures
from keystoneclient import auth
@@ -313,6 +314,11 @@ class BaseAuthTokenMiddlewareTest(base.BaseAuthTokenTestCase):
self.response_status = None
self.response_headers = None
+ # NOTE(gyee): For this test suite and for the stable liberty branch
+ # only, we will ignore deprecated calls that keystonemiddleware makes.
+ warnings.filterwarnings('ignore', category=DeprecationWarning,
+ module='^keystonemiddleware\\.')
+
def call_middleware(self, **kwargs):
return self.call(self.middleware, **kwargs)
diff --git a/keystonemiddleware/tests/unit/auth_token/test_user_auth_plugin.py b/keystonemiddleware/tests/unit/auth_token/test_user_auth_plugin.py
index 52d2973..19d3d7a 100644
--- a/keystonemiddleware/tests/unit/auth_token/test_user_auth_plugin.py
+++ b/keystonemiddleware/tests/unit/auth_token/test_user_auth_plugin.py
@@ -11,6 +11,7 @@
# under the License.
import uuid
+import warnings
from keystoneclient import auth
from keystoneclient import fixture
@@ -29,6 +30,11 @@ class BaseUserPluginTests(object):
auth_plugin,
group='keystone_authtoken',
**kwargs):
+ # NOTE(gyee): For this test suite and for the stable liberty branch
+ # only, we will ignore deprecated calls that keystonemiddleware makes.
+ warnings.filterwarnings('ignore', category=DeprecationWarning,
+ module='^keystonemiddleware\\.')
+
opts = auth.get_plugin_class(auth_plugin).get_options()
self.cfg.register_opts(opts, group=group)