mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
ipatests: provide docstrings instead of imporperly placed comments
Related to: https://bugzilla.redhat.com/show_bug.cgi?id=1685581 Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
parent
9bcc57d9e0
commit
7c059c81ce
@ -56,9 +56,6 @@ class TestSSSDWithAdTrust(IntegrationTest):
|
||||
|
||||
cls.users['ad']['name'] = cls.users['ad']['name_tmpl'].format(
|
||||
domain=cls.ad.domain.name)
|
||||
|
||||
# Regression tests for cached_auth_timeout option
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1685581
|
||||
tasks.user_add(cls.master, cls.intermed_user)
|
||||
tasks.create_active_user(cls.master, cls.ipa_user,
|
||||
cls.ipa_user_password)
|
||||
@ -85,18 +82,34 @@ class TestSSSDWithAdTrust(IntegrationTest):
|
||||
|
||||
@pytest.mark.parametrize('user', ['ipa', 'ad'])
|
||||
def test_auth_cache_disabled_by_default(self, user):
|
||||
"""Check credentials not cached with default sssd config.
|
||||
|
||||
Regression test for cached_auth_timeout option
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=1685581
|
||||
"""
|
||||
with self.config_sssd_cache_auth(cached_auth_timeout=None):
|
||||
assert not self.is_auth_cached(self.users[user])
|
||||
assert not self.is_auth_cached(self.users[user])
|
||||
|
||||
@pytest.mark.parametrize('user', ['ipa', 'ad'])
|
||||
def test_auth_cache_disabled_with_value_0(self, user):
|
||||
"""Check credentials not cached with cached_auth_timeout=0 in sssd.conf
|
||||
|
||||
Regression test for cached_auth_timeout option
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=1685581
|
||||
"""
|
||||
with self.config_sssd_cache_auth(cached_auth_timeout=0):
|
||||
assert not self.is_auth_cached(self.users[user])
|
||||
assert not self.is_auth_cached(self.users[user])
|
||||
|
||||
@pytest.mark.parametrize('user', ['ipa', 'ad'])
|
||||
def test_auth_cache_enabled_when_configured(self, user):
|
||||
"""Check credentials are cached with cached_auth_timeout=30
|
||||
|
||||
Regression test for cached_auth_timeout option
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=1685581
|
||||
"""
|
||||
|
||||
timeout = 30
|
||||
with self.config_sssd_cache_auth(cached_auth_timeout=timeout):
|
||||
start = time.time()
|
||||
|
Loading…
Reference in New Issue
Block a user