tests: Stageuser-{add,remove}-cert

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

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
David Kupka 2017-01-25 12:43:32 +01:00 committed by Martin Basti
parent 7b68cc5b08
commit c5c98af99d

View File

@ -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'