summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc
diff options
context:
space:
mode:
authorPetr Spacek <pspacek@redhat.com>2016-05-17 17:28:36 +0200
committerMartin Basti <mbasti@redhat.com>2016-05-30 20:14:32 +0200
commit70794c7b1d001ce331d4a64c77d23abcc02c541e (patch)
tree457edeb05408201a251a165a3c871c7eeb42ccf0 /ipatests/test_xmlrpc
parentdc405005f537cf278fd6ddfe6b87060bd13d9a67 (diff)
downloadfreeipa-70794c7b1d001ce331d4a64c77d23abcc02c541e.tar.gz
freeipa-70794c7b1d001ce331d4a64c77d23abcc02c541e.tar.xz
freeipa-70794c7b1d001ce331d4a64c77d23abcc02c541e.zip
Turn verify_host_resolvable() into a wrapper around ipapython.dnsutil
The code was duplicate and less generic anyway. As a side-effect I had to re-wrap dns.exception.DNSException into a PublicError so it can be displayed to the user. DNSError is now a super class for other DNS-related errors. Errors from DNS resolver are re-raised as DNSResolverError. https://fedorahosted.org/freeipa/ticket/5710 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc')
-rw-r--r--ipatests/test_xmlrpc/test_host_plugin.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ipatests/test_xmlrpc/test_host_plugin.py b/ipatests/test_xmlrpc/test_host_plugin.py
index 4d54dac4f..d0d2be2b6 100644
--- a/ipatests/test_xmlrpc/test_host_plugin.py
+++ b/ipatests/test_xmlrpc/test_host_plugin.py
@@ -311,8 +311,7 @@ class TestCRUD(XMLRPC_test):
def test_try_add_not_in_dns(self, host):
host.ensure_missing()
command = host.make_create_command(force=False)
- with raises_exact(errors.DNSNotARecordError(
- reason=u'Host does not have corresponding DNS A/AAAA record')):
+ with raises_exact(errors.DNSNotARecordError(hostname=host)):
command()
def test_add_host_with_null_password(self, host):