summaryrefslogtreecommitdiffstats
path: root/src/tests/multihost/basic
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-20 15:22:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-20 15:22:35 +0000
commit5d14aabf1d1d96dd8f6ec594ee65863ddbfc087a (patch)
treee2579d97e9db101bab6d2512206b2911d91f7c35 /src/tests/multihost/basic
parentAdding debian version 2.9.4-2. (diff)
downloadsssd-5d14aabf1d1d96dd8f6ec594ee65863ddbfc087a.tar.xz
sssd-5d14aabf1d1d96dd8f6ec594ee65863ddbfc087a.zip
Merging upstream version 2.9.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tests/multihost/basic')
-rw-r--r--src/tests/multihost/basic/test_kcm.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/tests/multihost/basic/test_kcm.py b/src/tests/multihost/basic/test_kcm.py
index 8f527f6..d1c15bc 100644
--- a/src/tests/multihost/basic/test_kcm.py
+++ b/src/tests/multihost/basic/test_kcm.py
@@ -8,14 +8,17 @@
"""
import os
import re
+
import pytest
from pexpect import pxssh
from utils_config import set_param
+
from sssd.testlib.common.utils import sssdTools
class TestSanityKCM(object):
""" KCM Sanity Test cases """
+
def _kcm_service_op(self, multihost, svc_op):
systemd_kcm_op = 'systemctl %s sssd-kcm' % (svc_op)
multihost.master[0].run_command(systemd_kcm_op)
@@ -39,7 +42,7 @@ class TestSanityKCM(object):
try:
multihost.master[0].transport.get_file(kcm_log_file,
local_kcm_log_file)
- except FileNotFoundError:
+ except (FileNotFoundError, OSError):
return 0
nlines = sum(1 for line in open(local_kcm_log_file))
@@ -51,6 +54,7 @@ class TestSanityKCM(object):
'rm -f /var/lib/sss/secrets/secrets.ldb')
self._restart_kcm(multihost)
+ @pytest.mark.converted('test_kcm.py', 'test_kcm__kinit_kcm_krb5ccname')
@pytest.mark.usefixtures("enable_kcm")
def test_kinit_kcm(self, multihost):
"""
@@ -70,6 +74,7 @@ class TestSanityKCM(object):
assert cmd2.returncode == 0, "klist failed!"
assert 'Ticket cache: KCM:14583103' in cmd2.stdout_text
+ @pytest.mark.converted('test_kcm.py', 'test_kcm_ssh_login_creates_kerberos_ticket')
@staticmethod
@pytest.mark.usefixtures("enable_kcm")
def test_ssh_login_kcm(multihost):
@@ -85,6 +90,7 @@ class TestSanityKCM(object):
'journalctl -u sssd -n 50 --no-pager')
assert ssh0, "Authentication Failed as user foo4"
+ @pytest.mark.converted('test_kcm.py', 'test_kcm__debug_log_enabled')
@pytest.mark.usefixtures("enable_kcm")
def test_kcm_debug_level_set(self, multihost):
"""
@@ -133,6 +139,7 @@ class TestSanityKCM(object):
log_lines_debug = self._kcm_log_length(multihost)
assert log_lines_debug > log_lines_pre + 100
+ @pytest.mark.converted('test_kcm.py', 'test_kcm__kdestroy_nocache')
@staticmethod
@pytest.mark.usefixtures("enable_kcm")
def test_kdestroy_retval(multihost):
@@ -191,6 +198,7 @@ class TestSanityKCM(object):
assert 'KCM:14583103' in klist, "kinit did not work!"
assert 'KCM:14583109' in ssh_output, "Ticket not forwarded!"
+ @pytest.mark.converted('test_kcm.py', 'test_kcm__display_correct_kvno')
@staticmethod
@pytest.mark.usefixtures("enable_kcm")
def test_kvno_display(multihost):
@@ -216,6 +224,7 @@ class TestSanityKCM(object):
else:
pytest.fail("kvno display was improper")
+ @pytest.mark.converted('test_kcm.py', 'test_kcm__configure_max_uid_ccaches_with_different_values')
@pytest.mark.usefixtures("enable_kcm", "create_many_user_principals")
def test_kcm_peruid_quota(self, multihost):
"""
@@ -268,6 +277,7 @@ class TestSanityKCM(object):
multihost.master[0].run_command(
'su -l foo3 -c "kdestroy -A"', raiseonerr=False)
+ @pytest.mark.converted('test_kcm.py', 'test_kcm__configure_max_uid_ccaches_with_different_values')
@pytest.mark.usefixtures("enable_kcm", "create_many_user_principals")
def test_kcm_peruid_quota_increase(self, multihost):
"""
@@ -310,6 +320,7 @@ class TestSanityKCM(object):
multihost.master[0].run_command(
f'su -l {user} -c "kdestroy -A"', raiseonerr=False)
+ @pytest.mark.converted('test_kcm.py', 'test_kcm__configure_max_uid_ccaches_with_different_values')
@pytest.mark.usefixtures("enable_kcm")
def test_kcm_payload_low_quota(self, multihost):
"""