ipatests: add xmlrpc test for user|host-find --certificate

There were no xmlrpc tests for ipa user-find --certificate
or ipa host-find --certificate.
The commit adds tests for these commands.

Related to https://pagure.io/freeipa/issue/7770

Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Florence Blanc-Renaud authored and Rob Crittenden committed 2018-11-27 17:20:35 -05:00
1 parent 372c2fc990
commit d2fa2ecb4b
2 files changed
+36

No files matched your search

+5
View File
@@ -251,6 +251,11 @@ class TestCRUD(XMLRPC_test):
valid_not_after=fuzzy_date,
))
host.retrieve()
# test host-find with --certificate
command = host.make_find_command(
fqdn=host.fqdn, usercertificate=host_cert)
res = command()['result']
assert len(res) == 1
def test_try_rename(self, host):
host.ensure_exists()