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: Remove pytest assertion about exception #7850

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 1 addition & 3 deletions src/tests/system/tests/test_sssctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import pytest
from pytest_mh.conn import ProcessError
from pytest_mh.conn.ssh import SSHAuthenticationError
from sssd_test_framework.roles.client import Client
from sssd_test_framework.roles.ipa import IPA
from sssd_test_framework.roles.ldap import LDAP
Expand Down Expand Up @@ -741,8 +740,7 @@ def test_sssctl__analyze_child_logs(client: Client, ipa: IPA):
client.sssd.start()
time.sleep(5)

with pytest.raises(SSHAuthenticationError):
client.ssh("user1", "Wrong").connect()
client.ssh("user1", "Wrong").connect()
result = client.sssctl.analyze_request("show --pam --child 1")
assert "Preauthentication failed" in result.stdout, "'Preauthentication failed' was not found!"

Expand Down