summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-09-07 13:49:15 +0200
committerMartin Kosek <mkosek@redhat.com>2012-09-07 13:51:04 +0200
commit2daa2cb57a81a99f9f4ffdf6a4428dc62ca5b455 (patch)
tree6d7a611eebd7debcdcad69abfc425f14341b4cf4
parent07e0a1d9e13c04da3da27d12b461d26de4287c21 (diff)
downloadfreeipa-2daa2cb57a81a99f9f4ffdf6a4428dc62ca5b455.tar.gz
freeipa-2daa2cb57a81a99f9f4ffdf6a4428dc62ca5b455.tar.xz
freeipa-2daa2cb57a81a99f9f4ffdf6a4428dc62ca5b455.zip
Update DNS zone allow-query validation test
localhost and localnets ACIs are now allowed. Update the respective unit test.
-rw-r--r--tests/test_xmlrpc/test_dns_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_xmlrpc/test_dns_plugin.py b/tests/test_xmlrpc/test_dns_plugin.py
index e5c8a7c03..e8c0b241c 100644
--- a/tests/test_xmlrpc/test_dns_plugin.py
+++ b/tests/test_xmlrpc/test_dns_plugin.py
@@ -1038,9 +1038,9 @@ class test_dns(Declarative):
dict(
desc='Try to add invalid allow-query to zone %r' % dnszone1,
- command=('dnszone_mod', [dnszone1], {'idnsallowquery': u'localhost'}),
+ command=('dnszone_mod', [dnszone1], {'idnsallowquery': u'foo'}),
expected=errors.ValidationError(name='allow_query',
- error=u'ACL name "localhost" is not supported'),
+ error=u"failed to detect a valid IP address from u'foo'"),
),
dict(