Tests: fix test_forward_zones in test_xmlrpc/test_dns_plugin

Class test_forward_zones in ipatests/test_xmlrpc/test_dns_plugin
was using DNS zone 'fwzone2.test.' and expected to get warning
'Forwarding policy conflicts with some automatic empty zones.'
(aka 'DNSForwardPolicyConflictWithEmptyZone').

This does not make sense because 'test.' zone is not listed in IANA registry
'Locally-Served DNS Zones':
http://www.iana.org/assignments/locally-served-dns-zones/locally-served-dns-zones.xhtml

To fix this I simply removed the warning from set of expected results.

https://fedorahosted.org/freeipa/ticket/6213

Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Petr Spacek 2016-08-12 19:49:33 +02:00 committed by Martin Basti
parent 8f1ba05c26
commit eabe248957

View File

@ -3444,15 +3444,7 @@ class test_forward_zones(Declarative):
expected={ expected={
'value': fwzone2_dnsname, 'value': fwzone2_dnsname,
'summary': None, 'summary': None,
u'messages': ( u'messages': ({u'message': lambda x: x.startswith(
{u'message': lambda x: x.startswith(
u"Forwarding policy conflicts with some "
"automatic empty zones."),
u'code': 13021,
u'type': u'warning',
u'name': u'DNSForwardPolicyConflictWithEmptyZone',
u'data': {}},
{u'message': lambda x: x.startswith(
u"DNS server %s: query '%s SOA':" % u"DNS server %s: query '%s SOA':" %
(forwarder1, fwzone2)), (forwarder1, fwzone2)),
u'code': 13006, u'code': 13006,