summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc
diff options
context:
space:
mode:
authorPetr Spacek <pspacek@redhat.com>2016-08-12 19:49:33 +0200
committerMartin Basti <mbasti@redhat.com>2016-08-30 10:45:12 +0200
commiteabe248957f75a1dd3b8d3d330740d929f9e42d9 (patch)
tree675c502eea795cd40328029ee7132388d700f56f /ipatests/test_xmlrpc
parent8f1ba05c26921fb787c3eb1bb846a13e06e424ff (diff)
downloadfreeipa-eabe248957f75a1dd3b8d3d330740d929f9e42d9.tar.gz
freeipa-eabe248957f75a1dd3b8d3d330740d929f9e42d9.tar.xz
freeipa-eabe248957f75a1dd3b8d3d330740d929f9e42d9.zip
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>
Diffstat (limited to 'ipatests/test_xmlrpc')
-rw-r--r--ipatests/test_xmlrpc/test_dns_plugin.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/ipatests/test_xmlrpc/test_dns_plugin.py b/ipatests/test_xmlrpc/test_dns_plugin.py
index 456417eb6..a02b4a918 100644
--- a/ipatests/test_xmlrpc/test_dns_plugin.py
+++ b/ipatests/test_xmlrpc/test_dns_plugin.py
@@ -3444,15 +3444,7 @@ class test_forward_zones(Declarative):
expected={
'value': fwzone2_dnsname,
'summary': None,
- u'messages': (
- {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'messages': ({u'message': lambda x: x.startswith(
u"DNS server %s: query '%s SOA':" %
(forwarder1, fwzone2)),
u'code': 13006,