From c5c98af99db53b5f9453bf70e9fd4c11e219cf3e Mon Sep 17 00:00:00 2001 From: David Kupka Date: Wed, 25 Jan 2017 12:43:32 +0100 Subject: [PATCH] tests: Stageuser-{add,remove}-cert https://fedorahosted.org/freeipa/ticket/6623 Reviewed-By: Martin Basti --- .../test_xmlrpc/test_add_remove_cert_cmd.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 @@ -402,6 +402,25 @@ class TestCertManipCmdUser(CertManipCmdTestBase): cls.default_caacl, **cls.cmd_options['caacl']) +@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'