Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Fix the test failures for tier-1-pytest-alltests-tier1-2 for n… #7370

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions src/tests/multihost/alltests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,16 +438,11 @@ def test_0008_1636002(multihost, backupsssdconf):
# Try ssh after socket activation is configured
# Result does not matter we just need to trigger the PAM stack
with pytest.raises(Exception):
check_login_client(multihost, user, 'Secret123')

# Print pam log for debug purposes
multihost.client[0].run_command(
'cat /var/log/sssd/sssd_pam.log', raiseonerr=False)
check_login_client(multihost, user, 'Secret1234')
aborah-sudo marked this conversation as resolved.
Show resolved Hide resolved

# Download sssd pam log
log_str = multihost.client[0].get_file_contents(
"/var/log/sssd/sssd_pam.log"). \
decode('utf-8')
f"/var/log/sssd/sssd_{domain_name}.log").decode('utf-8')

# Disable socket activation
multihost.client[0].run_command(
Expand Down
10 changes: 2 additions & 8 deletions src/tests/multihost/alltests/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def exceute_cmd(multihost, command):
return cmd


@pytest.mark.usefixtures('default_sssd')
@pytest.mark.usefixtures('setup_sssd')
@pytest.mark.services
class TestServices(object):
""" SSSD sanity services """
Expand Down Expand Up @@ -182,12 +182,6 @@ def test_0006_bz1909755(self, multihost, backupsssdconf):
2. Should succeed
3. Should succeed
"""
tools = sssdTools(multihost.client[0])
sssd_params = {'domains': 'LOCAL'}
tools.sssd_conf('sssd', sssd_params)
domain_section = 'domain/LOCAL'
domain_params = {'id_provider': 'files'}
tools.sssd_conf(domain_section, domain_params)
multihost.client[0].service_sssd('restart')
proces_id = int(exceute_cmd(multihost,
"pidof sssd").stdout_text.split()[0])
Expand Down Expand Up @@ -215,7 +209,7 @@ def test_0007_bz971435(self, multihost, backupsssdconf):
"""
# port bash to pytest
tools = sssdTools(multihost.client[0])
sssd_params = {'debug_level': '9', 'enable_files_domain': 'true'}
sssd_params = {'debug_level': '9'}
tools.sssd_conf('sssd', sssd_params)
multihost.client[0].run_command('echo "PIZZA=YUMMY" > /etc/sysconfig/sssd', raiseonerr=False)
multihost.client[0].service_sssd('restart')
Expand Down
Loading