Merge "test: make enforce_type=True in CONF.set_override"

This commit is contained in:
Jenkins 2016-01-26 16:40:04 +00:00 committed by Gerrit Code Review
commit 691a5f4c7b

View File

@ -313,7 +313,8 @@ class CentralServiceTestCase(CentralBasic):
self.assertTrue(designate.central.service.storage.get_storage.called) self.assertTrue(designate.central.service.storage.get_storage.called)
def test__is_valid_ttl(self): 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) self.service._is_valid_ttl(self.context, 20)
# policy.check() not to raise: the user is allowed to create low TTLs # policy.check() not to raise: the user is allowed to create low TTLs