Bug 2053024

Summary: [rhel-8.6] Backport latest test fixes in python3-ipatests
Product: Red Hat Enterprise Linux 8 Reporter: anuja <amore>
Component: ipaAssignee: Florence Blanc-Renaud <frenaud>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.6CC: mpolovka, rcritten, rjeffman, sumenon, tscherf
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: idm-DL1-8060020220214151443.92098735 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 14:09:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description anuja 2022-02-10 13:32:38 UTC
Description of problem:
Please backport following commits into python3-ipatests package
https://pagure.io/freeipa/c/4c54e9d6ddb72eab6f654bf3dc2d29f27498ac96?branch=ipa-4-9

Comment 2 Michal Polovka 2022-02-17 12:23:34 UTC
Checked on RHEL8.6 with python3-ipatests-4.9.8-6.module+el8.6.0+14224+4c38d4ea.noarch using test compose http://download.eng.bos.redhat.com/rhel-8/composes/RHEL-8/RHEL-8.6.0-20220216.d.0

============================= test session starts ==============================
platform linux -- Python 3.6.8, pytest-3.10.1, py-1.11.0, pluggy-1.0.0 -- /usr/libexec/platform-python
cachedir: /home/cloud-user/.pytest_cache
metadata: {'Python': '3.6.8', 'Platform': 'Linux-4.18.0-365.el8.x86_64-x86_64-with-redhat-8.6-Ootpa', 'Packages': {'pytest': '3.10.1', 'py': '1.11.0', 'pluggy': '1.0.0'}, 'Plugins': {'metadata': '1.11.0', 'html': '1.22.1', 'multihost': '3.0', 'sourceorder': '0.5'}}
rootdir: /usr/lib/python3.6/site-packages/ipatests, inifile:
plugins: metadata-1.11.0, html-1.22.1, multihost-3.0, sourceorder-0.5
collecting ... collected 7 items
...
test_integration/test_otp.py::TestOTPToken::test_check_otpd_after_idle_timeout PASSED [100%]


Content of /usr/lib/python3.6/site-packages/ipatests/test_integration/test_otp.py
from commit 4c54e9d
356             # ldapsearch will wake up slapd and force walking through
357             # the connection list, in order to spot the idle connections
358             tasks.ldapsearch_dm(self.master, "", ldap_args=[], scope="base")
from commit b36bcf4

315     def setup_otp_nsslapd(self):
316         check_services = self.master.run_command(
317             ['systemctl', 'list-units', '--state=failed']
318         )
319         assert "ipa-otpd" not in check_services.stdout_text
320         # Be sure no services are running and failed units


Requested commits are present, relevant tests are fixed, hence marking as pre-verified - tested.

Comment 7 errata-xmlrpc 2022-05-10 14:09:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (idm:client and idm:DL1 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:1884