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:
@@ -128,7 +128,7 @@ class TestListStrategy(api_base.FunctionalTest):
|
||||
self.context, id=idx,
|
||||
uuid=utils.generate_uuid(),
|
||||
name='STRATEGY_{0}'.format(idx))
|
||||
cfg.CONF.set_override('max_limit', 3, 'api', enforce_type=True)
|
||||
cfg.CONF.set_override('max_limit', 3, 'api')
|
||||
response = self.get_json('/strategies')
|
||||
self.assertEqual(3, len(response['strategies']))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user