diff options
author | Milan KubĂk <mkubik@redhat.com> | 2016-02-02 11:34:26 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-02-11 14:13:56 +0100 |
commit | 87ee451c7d9b311192893b2a2c82d8d757281fa6 (patch) | |
tree | 05268197967a66c3bffcc9e1453d1d6ae586d0fd /ipatests/test_xmlrpc/test_caacl_plugin.py | |
parent | 2ce8921fe69ed58871f8e33e3899ad80dcc28c0e (diff) | |
download | freeipa-87ee451c7d9b311192893b2a2c82d8d757281fa6.tar.gz freeipa-87ee451c7d9b311192893b2a2c82d8d757281fa6.tar.xz freeipa-87ee451c7d9b311192893b2a2c82d8d757281fa6.zip |
ipatests: Add missing certificate profile fixture
https://fedorahosted.org/freeipa/ticket/5630
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc/test_caacl_plugin.py')
-rw-r--r-- | ipatests/test_xmlrpc/test_caacl_plugin.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ipatests/test_xmlrpc/test_caacl_plugin.py b/ipatests/test_xmlrpc/test_caacl_plugin.py index 85c7072a0..f20b02b29 100644 --- a/ipatests/test_xmlrpc/test_caacl_plugin.py +++ b/ipatests/test_xmlrpc/test_caacl_plugin.py @@ -11,12 +11,21 @@ import pytest from ipalib import errors from ipatests.test_xmlrpc.xmlrpc_test import XMLRPC_test -# reuse the fixture +from ipatests.test_xmlrpc.tracker.certprofile_plugin import CertprofileTracker from ipatests.test_xmlrpc.tracker.caacl_plugin import CAACLTracker from ipatests.test_xmlrpc.tracker.stageuser_plugin import StageUserTracker @pytest.fixture(scope='class') +def default_profile(request): + name = 'caIPAserviceCert' + desc = u'Standard profile for network services' + tracker = CertprofileTracker(name, store=True, desc=desc) + tracker.track_create() + return tracker + + +@pytest.fixture(scope='class') def default_acl(request): name = u'hosts_services_caIPAserviceCert' tracker = CAACLTracker(name, service_category=u'all', host_category=u'all') |