Merge "test: make enforce_type=True in CONF.set_override"
This commit is contained in:
commit
691a5f4c7b
@ -313,7 +313,8 @@ class CentralServiceTestCase(CentralBasic):
|
||||
self.assertTrue(designate.central.service.storage.get_storage.called)
|
||||
|
||||
def test__is_valid_ttl(self):
|
||||
self.CONF.set_override('min_ttl', 10, 'service:central')
|
||||
self.CONF.set_override('min_ttl', 10, 'service:central',
|
||||
enforce_type=True)
|
||||
self.service._is_valid_ttl(self.context, 20)
|
||||
|
||||
# policy.check() not to raise: the user is allowed to create low TTLs
|
||||
|
Loading…
Reference in New Issue
Block a user