Remove usage of parameter enforce_type

Oslo.config deprecated parameter enforce_type and change
its default value to True. 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."

Change-Id: I59621664773ee5ad264e6da9b15231f30dbb9c40
Closes-Bug: #1694616
This commit is contained in:
Feng Shengqin
2017-06-01 10:11:57 +08:00
parent 590bd43a1d
commit f47fd9ac5e
13 changed files with 22 additions and 34 deletions

View File

@@ -231,8 +231,7 @@ class TestListAuditTemplate(FunctionalTestWithSetup):
self.assertIn(next_marker, response['next'])
def test_collection_links_default_limit(self):
cfg.CONF.set_override('max_limit', 3, 'api',
enforce_type=True)
cfg.CONF.set_override('max_limit', 3, 'api')
for id_ in range(5):
obj_utils.create_test_audit_template(
self.context, id=id_, uuid=utils.generate_uuid(),