Skip to content

Commit

Permalink
DON'T MERGE: tmp commit to force config.ldb refresh for sssd_kcm
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-tikhonov committed Oct 6, 2023
1 parent ddbaa57 commit 32e70c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/intg/test_kcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def create_conf_fixture(request, contents):


def create_sssd_kcm_fixture(sock_path, krb5_conf_path, request):
subprocess.call(['sssd'])

resp_path = os.path.join(config.LIBEXEC_PATH, "sssd", "sssd_kcm")
if not os.access(resp_path, os.X_OK):
# It would be cleaner to use pytest.mark.skipif on the package level
Expand Down
3 changes: 3 additions & 0 deletions src/tests/multihost/basic/test_kcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def test_kcm_debug_level_set(self, multihost):
# Enable debugging, restart only the kcm service, make sure some
# debug messages were produced
set_param(multihost, 'kcm', 'debug_level', '9')
multihost.master[0].service_sssd('restart')
self._restart_kcm(multihost)

ssh1 = client.auth_from_client(user, 'Secret123') == 3
Expand Down Expand Up @@ -299,6 +300,7 @@ def test_kcm_peruid_quota_increase(self, multihost):
assert kinit_f.returncode != 0

set_param(multihost, 'kcm', 'max_uid_ccaches', '65')
multihost.master[0].service_sssd('restart')
self._restart_kcm(multihost)

# Now the kinit should work as we increased the limit
Expand Down Expand Up @@ -329,6 +331,7 @@ def test_kcm_payload_low_quota(self, multihost):
f'su -l {user} -c "kdestroy -A"', raiseonerr=False)

set_param(multihost, 'kcm', 'max_ccache_size', '1')
multihost.master[0].service_sssd('restart')
self._restart_kcm(multihost)

# We use kinit to exceed the maximum ccache size as it creates payload
Expand Down

0 comments on commit 32e70c6

Please sign in to comment.