Bug 2057505

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: frenaud, lmiksik, rcritten, rjeffman, sumenon, tscherf
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: idm-DL1-8060020220224175416.92098735 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2060841 (view as bug list) 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:
Bug Depends On:    
Bug Blocks: 2060841    

Description anuja 2022-02-23 14:26:26 UTC
Please backport following commits into RHEL 9 python3-ipatests package

1) https://pagure.io/freeipa/c/663cd9af681370afd1d745ff2bdb3f85aa1094cd ipatests: Tests for Autoprivate group.
2) https://pagure.io/freeipa/c/9d1f227975c895b7f6005ebfac9f4565b09d280e mark xfail for test_idoverride_with_auto_private_group[hybrid]
3) https://pagure.io/freeipa/c/3403af580d80e349170a0cf03ac99753d1b5d93a Mark xfail test_gidnumber_not_corresponding_existing_group[true,hybrid]

Thank you!

Comment 7 anuja 2022-03-01 11:26:53 UTC
Marking verified tested:
using test-compose with versions:
2022-03-01T10:23:40+0000   - arch: x86_64
2022-03-01T10:23:40+0000     epoch: null
2022-03-01T10:23:40+0000     name: ipa-server
2022-03-01T10:23:40+0000     release: 7.module+el8.6.0+14337+19b76db2
2022-03-01T10:23:40+0000     source: rpm
2022-03-01T10:23:40+0000     version: 4.9.8
python3-ipatests-4.9.8-7.module+el8.6.0+14337+19b76db2.noarch


[GCC 8.5.0 20210514 (Red Hat 8.5.0-7)]
============================= 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-369.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.6.0'}}
rootdir: /usr/lib/python3.6/site-packages/ipatests, inifile:
plugins: metadata-1.11.0, html-1.22.1, multihost-3.0, sourceorder-0.6.0
collecting ... collected 23 items

test_integration/test_trust.py::TestPosixAutoPrivateGroup::test_add_posix_trust PASSED [  4%]
...
...
test_integration/test_trust.py::TestNonPosixAutoPrivateGroup::test_nonposixuser_nondefault_primary_group[false] PASSED [100%]

---------------- generated xml file: /home/cloud-user/junit.xml ----------------
----------- generated html file: file:///home/cloud-user/report.html -----------
=========================== short test summary info ============================
XFAIL test_integration/test_trust.py::TestPosixAutoPrivateGroup::()::test_gidnumber_not_corresponding_existing_group[true]
  reason: https://github.com/SSSD/sssd/issues/5988
XFAIL test_integration/test_trust.py::TestNonPosixAutoPrivateGroup::()::test_idoverride_with_auto_private_group[hybrid]
  reason: https://github.com/SSSD/sssd/issues/5989
=================== 21 passed, 2 xfailed in 2675.30 seconds ====================

Comment 11 anuja 2022-03-07 10:29:33 UTC
Verified using nightly compose:
2022-03-07T07:38:47+0000     name: ipa-server
2022-03-07T07:38:47+0000     release: 7.module+el8.6.0+14337+19b76db2
2022-03-07T07:38:47+0000     source: rpm
2022-03-07T07:38:47+0000     version: 4.9.8
python3-ipatests-4.9.8-7.module+el8.6.0+14337+19b76db2.noarch

Test logs:
[GCC 8.5.0 20210514 (Red Hat 8.5.0-7)]
============================= 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-369.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.6.0'}}
rootdir: /usr/lib/python3.6/site-packages/ipatests, inifile:
plugins: metadata-1.11.0, html-1.22.1, multihost-3.0, sourceorder-0.6.0
collecting ... collected 23 items

test_integration/test_trust.py::TestPosixAutoPrivateGroup::test_add_posix_trust PASSED [  4%]
...
...
test_integration/test_trust.py::TestNonPosixAutoPrivateGroup::test_nonposixuser_nondefault_primary_group[false] PASSED [100%]

=========================== short test summary info ============================
XFAIL test_integration/test_trust.py::TestPosixAutoPrivateGroup::()::test_gidnumber_not_corresponding_existing_group[true]
  reason: https://github.com/SSSD/sssd/issues/5988
XFAIL test_integration/test_trust.py::TestNonPosixAutoPrivateGroup::()::test_idoverride_with_auto_private_group[hybrid]
  reason: https://github.com/SSSD/sssd/issues/5989
=================== 21 passed, 2 xfailed in 2850.84 seconds ====================

Comment 16 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