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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user