#9054 [ipatests] ipa-healthcheck and URI RRs
Closed: fixed by frenaud. Opened by slev.

The support for the DNS URI RRs has been added in freeipa-healthcheck:
https://github.com/freeipa/freeipa-healthcheck/issues/222

IPA's tests should be updated to reflect this change, otherwise:

FAILED test_integration/test_ipahealthcheck.py::TestIpaHealthCheck::test_ipa_dns_systemrecords_check:
1   [2021-12-02 13:51:01]         for check in data:
1   [2021-12-02 13:51:01]             assert check["result"] == "SUCCESS"
1   [2021-12-02 13:51:01] >           assert check["kw"]["key"] in SRV_RECORDS
1   [2021-12-02 13:51:01] E           AssertionError: assert '_kerberos.ipa.test.:krb5srv:m:udp:master1.ipa.test.' in ['_ldap._tcp.ipa.test.:replica1.ipa.test.', '_ldap._tcp.ipa.test.:master1.ipa.test.', '_kerberos._tcp.ipa.test.:replic....:master1.ipa.test.', '_kerberos._udp.ipa.test.:replica1.ipa.test.', '_kerberos._udp.ipa.test.:master1.ipa.test.', ...]
1   [2021-12-02 13:51:01] 
1   [2021-12-02 13:51:01] test_integration/test_ipahealthcheck.py:729: AssertionError
FAILED test_integration/test_ipahealthcheck.py::TestIpaHealthCheckWithoutDNS::test_ipa_dns_systemrecords_check
[2021-12-02 13:28:26]         for check in data:
[2021-12-02 13:28:26]             assert check["result"] == "WARNING"
[2021-12-02 13:28:26] >           assert (
[2021-12-02 13:28:26]                 check["kw"]["msg"] == msg1
[2021-12-02 13:28:26]                 or check["kw"]["msg"] == msg2
[2021-12-02 13:28:26]                 or check["kw"]["msg"] == msg3
[2021-12-02 13:28:26]             )
[2021-12-02 13:28:26] E           AssertionError: assert ('Expected URI record missing' == 'Expected SRV record missing'
[2021-12-02 13:28:26] E             - Expected SRV record missing
[2021-12-02 13:28:26] E             ?          ^ ^
[2021-12-02 13:28:26] E             + Expected URI record missing
[2021-12-02 13:28:26] E             ?          ^ ^ or 'Expected URI record missing' == 'Got {count} ...ed {expected}'
[2021-12-02 13:28:26] E             - Got {count} ipa-ca A records, expected {expected}
[2021-12-02 13:28:26] E             + Expected URI record missing or 'Expected URI record missing' == 'Got {count} ...ed {expected}'
[2021-12-02 13:28:26] E             - Got {count} ipa-ca AAAA records, expected {expected}
[2021-12-02 13:28:26] E             + Expected URI record missing)
[2021-12-02 13:28:26] 
[2021-12-02 13:28:26] test_integration/test_ipahealthcheck.py:1518: AssertionError

Metadata Update from @slev:
- Issue assigned to slev

master:

  • 54f8733f4a01da6a681177ec9e6ee6120d65c5f2 ipatests: healthcheck: Sync the expected system RRs

ipa-4-9:

  • 86b98b86f62fae195c0f84fa9a5891166f69c786 ipatests: healthcheck: Sync the expected system RRs

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata