From 32a5359ece5b449b1cedb700d79cfa2744a288cb Mon Sep 17 00:00:00 2001 From: Mohammad Rizwan Date: Thu, 11 Jun 2020 10:44:46 +0530 Subject: [PATCH] Xfail test for sssd < 2.3.0 This fix is available in sssd 2.3.0+. On older version test will fail. Hence added xfail. Signed-off-by: Mohammad Rizwan Reviewed-By: Anuja More Reviewed-By: Florence Blanc-Renaud --- ipatests/test_integration/test_commands.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ipatests/test_integration/test_commands.py b/ipatests/test_integration/test_commands.py index 1973ba843..e2f6762ac 100644 --- a/ipatests/test_integration/test_commands.py +++ b/ipatests/test_integration/test_commands.py @@ -1192,6 +1192,11 @@ class TestIPACommand(IntegrationTest): related: https://github.com/SSSD/sssd/issues/5139 """ # try to login with wrong password + sssd_version = tasks.get_sssd_version(self.master) + if (sssd_version < tasks.parse_version('2.3.0')): + pytest.xfail('Fix is part of sssd 2.3.0 and is' + ' available from fedora32 onwards') + sshconn = paramiko.SSHClient() sshconn.set_missing_host_key_policy(paramiko.AutoAddPolicy()) since = time.strftime('%H:%M:%S')