#8070 Test failure in test_integration/test_replica_promotion.py::TestHiddenReplicaPromotion::()::test_hidden_replica_install
Closed: fixed by frenaud. Opened by frenaud.

The test test_integration/test_replica_promotion.py::TestHiddenReplicaPromotion::()::test_hidden_replica_install randomly fails in nightly_f29 (link).

The test is checking that a given IP address is not in the DNS records for the domain. When we are unlucky, we may come up with the following situation:
- IP address that is unexpected: 192.168.121.25
- IP address that is found for the DNS record: 192.168.121.254

As 192.168.121.25 is a substring of 192.168.121.254, the test wrongly considers that the unexpected address was found.
Extract of the log:

            for host in hosts_unexpected:
                value = host.hostname if rtype == 'SRV' else host.ip
>               assert value not in txt
E               AssertionError: assert '192.168.121.25' not in 'ipa-ca.ipa.test. 1 IN A 192.168.121.254'
E                 '192.168.121.25' is contained here:
E                   ipa-ca.ipa.test. 1 IN A 192.168.121.254
E                 ?                         ++++++++++++++

Metadata Update from @frenaud:
- Issue assigned to frenaud

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/3742

master:

  • 121971a51e6a652f3bc0c8c481a361954bab886e ipatests: fix test_replica_promotion.py::TestHiddenReplicaPromotion

ipa-4-8:

  • b24feb41658042d540a5c823ac032712c3e1bc07 ipatests: fix test_replica_promotion.py::TestHiddenReplicaPromotion

ipa-4-7:

  • 548b697fbdc9a851ce22745a477f938c5816bf43 ipatests: fix test_replica_promotion.py::TestHiddenReplicaPromotion

ipa-4-6:

  • a5228a7fb94fdcb16ec4571677af5b5ec33979d2 ipatests: fix test_replica_promotion.py::TestHiddenReplicaPromotion

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

Metadata Update from @frenaud:
- Issue set to the milestone: FreeIPA 4.6.7

Metadata