summaryrefslogtreecommitdiffstats
path: root/ipatests
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2015-10-27 17:21:17 +0530
committerMartin Basti <mbasti@redhat.com>2015-10-29 13:41:41 +0100
commitc60cec4fa7adf004d383b68b78f6fd51d5cecb21 (patch)
treef3b0039fb2b17cae5e7dc62ad0528d1cecc6ae45 /ipatests
parent82fd4250b9b4f408174edec7c7f070dc9fc73ab0 (diff)
downloadfreeipa-c60cec4fa7adf004d383b68b78f6fd51d5cecb21.tar.gz
freeipa-c60cec4fa7adf004d383b68b78f6fd51d5cecb21.tar.xz
freeipa-c60cec4fa7adf004d383b68b78f6fd51d5cecb21.zip
Added user friendly error message for dnszone enable and disable
Added try-except block in dns plugin in order to provide user friendly message to end user. https://fedorahosted.org/freeipa/ticket/4811 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipatests')
-rw-r--r--ipatests/test_xmlrpc/test_dns_plugin.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/ipatests/test_xmlrpc/test_dns_plugin.py b/ipatests/test_xmlrpc/test_dns_plugin.py
index f0b8edaa1..e5d1374d0 100644
--- a/ipatests/test_xmlrpc/test_dns_plugin.py
+++ b/ipatests/test_xmlrpc/test_dns_plugin.py
@@ -4319,7 +4319,9 @@ class test_forward_zones(Declarative):
dict(
desc='Try to disable non-existent forward zone',
command=('dnsforwardzone_disable', [nonexistent_fwzone], {}),
- expected=errors.NotFound(reason="no such entry")
+ expected=errors.NotFound(
+ reason=u'%s: DNS forward zone not found' % nonexistent_fwzone
+ )
),
@@ -4364,7 +4366,9 @@ class test_forward_zones(Declarative):
dict(
desc='Try to enable non-existent forward zone',
command=('dnsforwardzone_enable', [nonexistent_fwzone], {}),
- expected=errors.NotFound(reason="no such entry")
+ expected=errors.NotFound(
+ reason=u'%s: DNS forward zone not found' % nonexistent_fwzone
+ )
),
]