summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-12-13 11:10:28 +0100
committerMartin Kosek <mkosek@redhat.com>2013-12-13 15:08:52 +0100
commitd38748d64f5c7fb098b839b3c00a1f812d510d3b (patch)
tree48c205c3ac981bee6a732e98903e4407b3ff0a5e /ipatests/test_xmlrpc
parent7fc35ced1d83d9901f4a1bf59482c3c4666d6079 (diff)
downloadfreeipa-d38748d64f5c7fb098b839b3c00a1f812d510d3b.tar.gz
freeipa-d38748d64f5c7fb098b839b3c00a1f812d510d3b.tar.xz
freeipa-d38748d64f5c7fb098b839b3c00a1f812d510d3b.zip
Make sure SYSTEM permissions can be retreived with --all --raw
Part of the work for: https://fedorahosted.org/freeipa/ticket/4034
Diffstat (limited to 'ipatests/test_xmlrpc')
-rw-r--r--ipatests/test_xmlrpc/test_dns_plugin.py18
1 files changed, 16 insertions, 2 deletions
diff --git a/ipatests/test_xmlrpc/test_dns_plugin.py b/ipatests/test_xmlrpc/test_dns_plugin.py
index 8dbdec6ba..d301458d7 100644
--- a/ipatests/test_xmlrpc/test_dns_plugin.py
+++ b/ipatests/test_xmlrpc/test_dns_plugin.py
@@ -1349,7 +1349,6 @@ class test_dns(Declarative):
'"%s" already exists' % dnszone1_permission)
),
-
dict(
desc='Make sure the permission was created %r' % dnszone1,
command=(
@@ -1367,6 +1366,22 @@ class test_dns(Declarative):
),
),
+ dict(
+ desc='Retrieve the permission %r with --all --raw' % dnszone1,
+ command=(
+ 'permission_show', [dnszone1_permission], {}
+ ),
+ expected=dict(
+ value=dnszone1_permission,
+ summary=None,
+ result={
+ 'dn': dnszone1_permission_dn,
+ 'cn': [dnszone1_permission],
+ 'objectclass': objectclasses.system_permission,
+ 'ipapermissiontype': [u'SYSTEM'],
+ },
+ ),
+ ),
dict(
desc='Try to remove per-zone permission for unknown zone',
@@ -1374,7 +1389,6 @@ class test_dns(Declarative):
expected=errors.NotFound(reason=u'does.not.exist: DNS zone not found')
),
-
dict(
desc='Remove per-zone permission for zone %r' % dnszone1,
command=(