summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2017-06-14 13:23:32 +0800
committerChangBo Guo(gcb) <eric.guo@easystack.cn>2017-06-14 13:23:32 +0800
commit4c972289008509ed08aac64a62c923d3eca2299e (patch)
treeb060a382d44d549dd944c578069947ce47380b64
parentf59ca384a22df5ea3c367f21684767d55543abc8 (diff)
Remove usage of parameter enforce_type
Oslo.config deprecated parameter enforce_type and change its default value to True in Ifa552de0a994e40388cbc9f7dbaa55700ca276b0. Remove the usage of it to avoid DeprecationWarning: "Using the 'enforce_type' argument is deprecated in version '4.0' and will be removed in version '5.0': The argument enforce_type has changed its default value to True and then will be removed completely." Related--Bug: #1517839 Change-Id: If045d76574823f29c58b39a104354abc1407cb8d
Notes
Notes (review): Code-Review+1: Kien Nguyen <KienNT@vn.fujitsu.com> Code-Review+2: Michael Johnson <johnsomor@gmail.com> Code-Review+2: German Eichberger <German.eichberger@rackspace.com> Workflow+1: German Eichberger <German.eichberger@rackspace.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Thu, 15 Jun 2017 15:07:29 +0000 Reviewed-on: https://review.openstack.org/474062 Project: openstack/neutron-lbaas Branch: refs/heads/master
-rw-r--r--neutron_lbaas/tests/unit/common/cert_manager/test_cert_manager.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/neutron_lbaas/tests/unit/common/cert_manager/test_cert_manager.py b/neutron_lbaas/tests/unit/common/cert_manager/test_cert_manager.py
index bb3ab53..0050b1e 100644
--- a/neutron_lbaas/tests/unit/common/cert_manager/test_cert_manager.py
+++ b/neutron_lbaas/tests/unit/common/cert_manager/test_cert_manager.py
@@ -31,12 +31,10 @@ class TestCertManager(base.BaseTestCase):
31 # Format: <servicename>://<region>/<resource>/<object_id> 31 # Format: <servicename>://<region>/<resource>/<object_id>
32 cfg.CONF.set_override('service_name', 32 cfg.CONF.set_override('service_name',
33 'lbaas', 33 'lbaas',
34 'service_auth', 34 'service_auth')
35 enforce_type=True)
36 cfg.CONF.set_override('region', 35 cfg.CONF.set_override('region',
37 'RegionOne', 36 'RegionOne',
38 'service_auth', 37 'service_auth')
39 enforce_type=True)
40 self.assertEqual( 38 self.assertEqual(
41 'lbaas://RegionOne/loadbalancer/LB-ID', 39 'lbaas://RegionOne/loadbalancer/LB-ID',
42 cmi.CertManager.get_service_url('LB-ID')) 40 cmi.CertManager.get_service_url('LB-ID'))