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
This commit is contained in:
ChangBo Guo(gcb) 2017-06-14 13:23:32 +08:00
parent f59ca384a2
commit 4c97228900
1 changed files with 2 additions and 4 deletions

View File

@ -31,12 +31,10 @@ class TestCertManager(base.BaseTestCase):
# Format: <servicename>://<region>/<resource>/<object_id>
cfg.CONF.set_override('service_name',
'lbaas',
'service_auth',
enforce_type=True)
'service_auth')
cfg.CONF.set_override('region',
'RegionOne',
'service_auth',
enforce_type=True)
'service_auth')
self.assertEqual(
'lbaas://RegionOne/loadbalancer/LB-ID',
cmi.CertManager.get_service_url('LB-ID'))