summaryrefslogtreecommitdiffstats
path: root/tests/test_xmlrpc
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:50:54 +0200
commit7c054377e33ab650706a8928f9ce12f40aaebcfc (patch)
tree6d7a611eebd7debcdcad69abfc425f14341b4cf4 /tests/test_xmlrpc
parente4e5bd0595f511703db95e194a15069d449bcdbd (diff)
downloadfreeipa.git-7c054377e33ab650706a8928f9ce12f40aaebcfc.tar.gz
freeipa.git-7c054377e33ab650706a8928f9ce12f40aaebcfc.tar.xz
freeipa.git-7c054377e33ab650706a8928f9ce12f40aaebcfc.zip
Update DNS zone allow-query validation test
localhost and localnets ACIs are now allowed. Update the respective unit test.
Diffstat (limited to 'tests/test_xmlrpc')
-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 e5c8a7c0..e8c0b241 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(