summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc
diff options
context:
space:
mode:
authorDavid Kupka <dkupka@redhat.com>2017-01-25 12:43:32 +0100
committerMartin Basti <mbasti@redhat.com>2017-02-07 13:58:48 +0100
commitc5c98af99db53b5f9453bf70e9fd4c11e219cf3e (patch)
treed761285f9ab1e6fc85693692cada9a46ca11f433 /ipatests/test_xmlrpc
parent7b68cc5b08c5563535486d72f37b766209791dbf (diff)
downloadfreeipa-c5c98af99db53b5f9453bf70e9fd4c11e219cf3e.tar.gz
freeipa-c5c98af99db53b5f9453bf70e9fd4c11e219cf3e.tar.xz
freeipa-c5c98af99db53b5f9453bf70e9fd4c11e219cf3e.zip
tests: Stageuser-{add,remove}-cert
https://fedorahosted.org/freeipa/ticket/6623 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc')
-rw-r--r--ipatests/test_xmlrpc/test_add_remove_cert_cmd.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/ipatests/test_xmlrpc/test_add_remove_cert_cmd.py b/ipatests/test_xmlrpc/test_add_remove_cert_cmd.py
index 631d89828..d05704752 100644
--- a/ipatests/test_xmlrpc/test_add_remove_cert_cmd.py
+++ b/ipatests/test_xmlrpc/test_add_remove_cert_cmd.py
@@ -403,6 +403,25 @@ class TestCertManipCmdUser(CertManipCmdTestBase):
@pytest.mark.tier1
+class TestCertManipCmdStageuser(CertManipCmdTestBase):
+ entity_class = 'stageuser'
+ entity_pkey = u'suser'
+ entity_subject = entity_pkey
+ entity_principal = u'suser'
+ non_existent_entity = u'nonexistentstageuser'
+
+ cmd_options = dict(
+ entity_add=dict(givenname=u'Stage', sn=u'User'),
+ )
+
+ cert_add_cmd = api.Command.stageuser_add_cert
+ cert_del_cmd = api.Command.stageuser_remove_cert
+
+ cert_add_summary = u'Added certificates to stageuser "%s"'
+ cert_del_summary = u'Removed certificates from stageuser "%s"'
+
+
+@pytest.mark.tier1
class TestCertManipCmdHost(CertManipCmdTestBase):
entity_class = 'host'
entity_pkey = u'host.example.com'