Bug 2053025

Summary: [rhel-9.0] Backport latest test fixes in python3-ipatests
Product: Red Hat Enterprise Linux 9 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: 9.0CC: abokovoy, mpolovka, rcritten, rjeffman, tscherf
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.9.8-5.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 12:44:26 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:

Comment 2 Michal Polovka 2022-02-15 14:29:37 UTC
Pre-verified manually using RHEL9 machine with compose http://artifacts.osci.redhat.com/comp/rhel-9.0.0/43038828-3332-ipa and python3-ipatests-4.9.8-5.el9.noarch

============================= test session starts ==============================
platform linux -- Python 3.9.10, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3
cachedir: /home/cloud-user/.pytest_cache
metadata: {'Python': '3.9.10', 'Platform': 'Linux-5.14.0-56.el9.x86_64-x86_64-with-glibc2.34', 'Packages': {'pytest': '6.2.2', 'py': '1.10.0', 'pluggy': '0.13.1'}, 'Plugins': {'metadata': '1.7.0', 'multihost': '3.0', 'sourceorder': '0.5', 'html': '3.1.1'}}
rootdir: /usr/lib/python3.9/site-packages/ipatests
plugins: metadata-1.7.0, multihost-3.0, sourceorder-0.5, html-3.1.1
collecting ... collected 7 items
...
test_integration/test_otp.py::TestOTPToken::test_check_otpd_after_idle_timeout PASSED [100%]

Content of /usr/lib/python3.9/site-packages/ipatests/test_integration/test_otp.py
from commit 4c54e9d6ddb72eab6f654bf3dc2d29f27498ac96
358             tasks.ldapsearch_dm(self.master, "", ldap_args=[], scope="base")
359 
from commit b36bcf4ea5ed93baa4dc63f8e2be542d678211fb
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


Required commits are present, Therefore marking as pre-verified tested.

Comment 5 Michal Polovka 2022-02-22 14:11:51 UTC
Verified with nightly compose on RHEL9.0 machine with python3-ipatests-4.9.8-5.el9.noarch

Content of /usr/lib/python3.9/site-packages/ipatests/test_integration/test_otp.py from commit 4c54e9d6ddb72eab6f654bf3dc2d29f27498ac96:

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")
359 
 

from commit b36bcf4ea5ed93baa4dc63f8e2be542d678211fb:
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

============================= test session starts ==============================
platform linux -- Python 3.9.10, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3
cachedir: /home/cloud-user/.pytest_cache
metadata: {'Python': '3.9.10', 'Platform': 'Linux-5.14.0-58.el9.x86_64-x86_64-with-glibc2.34', 'Packages': {'pytest': '6.2.2', 'py': '1.10.0', 'pluggy': '0.13.1'}, 'Plugins': {'metadata': '1.7.0', 'multihost': '3.0', 'sourceorder': '0.5', 'html': '3.1.1'}}
rootdir: /usr/lib/python3.9/site-packages/ipatests
plugins: metadata-1.7.0, multihost-3.0, sourceorder-0.5, html-3.1.1
collecting ... collected 7 items

test_integration/test_otp.py::TestOTPToken::test_otp_auth_ind PASSED     [ 14%]
test_integration/test_otp.py::TestOTPToken::test_hopt PASSED             [ 28%]
test_integration/test_otp.py::TestOTPToken::test_totp PASSED             [ 42%]
test_integration/test_otp.py::TestOTPToken::test_otptoken_sync PASSED    [ 57%]
test_integration/test_otp.py::TestOTPToken::test_2fa_enable_single_prompt PASSED [ 71%]
test_integration/test_otp.py::TestOTPToken::test_2fa_disable_single_prompt PASSED [ 85%]
test_integration/test_otp.py::TestOTPToken::test_check_otpd_after_idle_timeout PASSED [100%]


Required commits are present, test fix is present, therefore marking as Verified. Automation is and will not be present.

Comment 7 errata-xmlrpc 2022-05-17 12:44:26 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 (new packages: ipa), 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/RHBA-2022:2387