Test for caacl-add-service

Test for caacl-add-service: incorrect error message when service does not exists

https://fedorahosted.org/freeipa/ticket/6171

Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
gkaihoro 2016-08-29 12:09:07 +02:00 committed by Martin Basti
parent cb1cee4db8
commit 572bb55da4

View File

@ -141,6 +141,7 @@ class TestCAACLMembers(XMLRPC_test):
def test_add_invalid_value_service(self, category_acl, default_profile):
res = category_acl.add_service(service=default_profile.name, track=False)
assert len(res['failed']) == 1
assert(res['failed']['memberservice']['service'][0][0].startswith(default_profile.name))
# the same for other types