mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Relax message check in test_create_host_with_ip
On Travis CI, the DNS update in test case test_create_host_with_ip may fail with different error messages. Relax the error message check and just check that the test case is hitting a DNS update failure. This fixes a flaky test case on CI. Closes: https://pagure.io/freeipa/issue/7447 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
parent
75f7b7b5e6
commit
69599560c1
@ -649,10 +649,11 @@ class TestHostNoNameserversForRevZone(XMLRPC_test):
|
||||
result = command(ip_address=ipv4_in_missingrevzone_ip)
|
||||
msg = result['messages'][0]
|
||||
assert msg['code'] == messages.FailedToAddHostDNSRecords.errno
|
||||
expected_msg = ("The host was added but the DNS update failed "
|
||||
"with: All nameservers failed to answer the query "
|
||||
"for DNS reverse zone {}").format(missingrevzone)
|
||||
assert msg['message'] == expected_msg
|
||||
expected = "The host was added but the DNS update failed"
|
||||
# Either one of:
|
||||
# All nameservers failed to answer the query for DNS reverse zone
|
||||
# DNS reverse zone ... is not managed by this server
|
||||
assert expected in msg['message']
|
||||
# Make sure the host is added
|
||||
host4.run_command('host_show', host4.fqdn)
|
||||
finally:
|
||||
|
Loading…
Reference in New Issue
Block a user