Trust tests for Posix support are failing with Assertion Error None
Error Message AssertionError: assert None + where None = <function search at 0x7f9d120c2488>('ipaRangeType: ipa-ad-trust-posix', ' dn: cn=DOM-171-108.ABC.IDM.LAB.ENG.BRQ.REDHAT.COM_id_range,cn=ranges,cn=etc,dc=dom-102,dc=abc,dc=idm,dc=lab,dc=eng,...22883006-3429755228\n iparangetype: ipa-ad-trust\n objectclass: ipaIDrange\n objectclass: ipatrustedaddomainrange\n', <RegexFlag.IGNORECASE: 2>) + where <function search at 0x7f9d120c2488> = re.search + and ' dn: cn=DOM-171-108.ABC.IDM.LAB.ENG.BRQ.REDHAT.COM_id_range,cn=ranges,cn=etc,dc=dom-102,dc=abc,dc=idm,dc=lab,dc=eng,...22883006-3429755228\n iparangetype: ipa-ad-trust\n objectclass: ipaIDrange\n objectclass: ipatrustedaddomainrange\n' = <pytest_multihost.transport.SSHCommand object at 0x7f9d0135cbe0>.stdout_text + and <RegexFlag.IGNORECASE: 2> = re.IGNORECASE Stacktrace self = <ipatests.test_integration.test_trust.TestPosixADTrust object at 0x7f9d01369240> def test_range_properties_in_posix_trust(self): # Check the properties of the created range range_name = self.ad_domain.upper() + '_id_range' result = self.master.run_command(['ipa', 'idrange-show', range_name, '--all', '--raw']) # Check the range type and size iparangetype_regex = r'ipaRangeType: ipa-ad-trust-posix' iparangesize_regex = r'ipaIDRangeSize: 200000' > assert re.search(iparangetype_regex, result.stdout_text, re.IGNORECASE) E AssertionError: assert None E + where None = <function search at 0x7f9d120c2488>('ipaRangeType: ipa-ad-trust-posix', ' dn: cn=DOM-171-108.ABC.IDM.LAB.ENG.BRQ.REDHAT.COM_id_range,cn=ranges,cn=etc,dc=dom-102,dc=abc,dc=idm,dc=lab,dc=eng,...22883006-3429755228\n iparangetype: ipa-ad-trust\n objectclass: ipaIDrange\n objectclass: ipatrustedaddomainrange\n', <RegexFlag.IGNORECASE: 2>) E + where <function search at 0x7f9d120c2488> = re.search E + and ' dn: cn=DOM-171-108.ABC.IDM.LAB.ENG.BRQ.REDHAT.COM_id_range,cn=ranges,cn=etc,dc=dom-102,dc=abc,dc=idm,dc=lab,dc=eng,...22883006-3429755228\n iparangetype: ipa-ad-trust\n objectclass: ipaIDrange\n objectclass: ipatrustedaddomainrange\n' = <pytest_multihost.transport.SSHCommand object at 0x7f9d0135cbe0>.stdout_text E + and <RegexFlag.IGNORECASE: 2> = re.IGNORECASE /usr/lib/python3.6/site-packages/ipatests/test_integration/test_trust.py:224: AssertionError
The reason is test relaying on auto-detection of trust type, Windows Server 2016 doesn't have support for MFU/NIS (SFU (Services for Unix)) , so auto detection is not working
In that case need to pass extra arguments to the trust-add command, such as --range-type="ipa-ad-trust-posix" to enforce a particular range type.
Metadata Update from @gkaihoro: - Issue assigned to gkaihoro
Metadata Update from @gkaihoro: - Issue tagged with: test-failure
master:
ipa-4-6:
ipa-4-5:
Metadata Update from @cheimes: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.