summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipaserver/test_ldap.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2015-06-22 10:16:34 +0000
committerJan Cholasta <jcholast@redhat.com>2015-07-01 13:05:30 +0000
commit2d1515323acb4125306817096bafab6623de0b47 (patch)
tree5f9c347978fe2c94eb0b0f3996ff7a79d3e848db /ipatests/test_ipaserver/test_ldap.py
parent481f8ddaa32795c64275438645e45d2c4bbbae26 (diff)
downloadfreeipa-2d1515323acb4125306817096bafab6623de0b47.tar.gz
freeipa-2d1515323acb4125306817096bafab6623de0b47.tar.xz
freeipa-2d1515323acb4125306817096bafab6623de0b47.zip
plugable: Load plugins only from modules imported by API
Previously all plugin modules imported from anywhere were added to the API. https://fedorahosted.org/freeipa/ticket/3090 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipatests/test_ipaserver/test_ldap.py')
-rw-r--r--ipatests/test_ipaserver/test_ldap.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipatests/test_ipaserver/test_ldap.py b/ipatests/test_ipaserver/test_ldap.py
index 8b4e50058..2c187b0c7 100644
--- a/ipatests/test_ipaserver/test_ldap.py
+++ b/ipatests/test_ipaserver/test_ldap.py
@@ -110,10 +110,10 @@ class test_ldap(object):
# we need for the test.
myapi = create_api(mode=None)
myapi.bootstrap(context='cli', in_server=True, in_tree=True)
- myapi.register(ldap2)
- myapi.register(host)
- myapi.register(service)
- myapi.register(service_show)
+ myapi.add_plugin(ldap2)
+ myapi.add_plugin(host)
+ myapi.add_plugin(service)
+ myapi.add_plugin(service_show)
myapi.finalize()
pwfile = api.env.dot_ipa + os.sep + ".dmpw"