dirsrvtests/suites/acct_usability_plugin/acct_usability_test.py | 85 +++
dirsrvtests/suites/acctpolicy_plugin/acctpolicy_test.py | 85 +++
dirsrvtests/suites/acl/acl_test.py | 85 +++
dirsrvtests/suites/attr_encryption/attr_encrypt_test.py | 85 +++
dirsrvtests/suites/attr_uniqueness_plugin/attr_uniqueness_test.py | 237 ++++++++++
dirsrvtests/suites/automember_plugin/automember_test.py | 85 +++
dirsrvtests/suites/chaining_plugin/chaining_test.py | 85 +++
dirsrvtests/suites/collation_plugin/collatation_test.py | 85 +++
dirsrvtests/suites/cos_plugin/cos_test.py | 85 +++
dirsrvtests/suites/deref_plugin/deref_test.py | 85 +++
dirsrvtests/suites/disk_monitoring/disk_monitor_test.py | 85 +++
dirsrvtests/suites/distrib_plugin/distrib_test.py | 85 +++
dirsrvtests/suites/dna_plugin/dna_test.py | 85 +++
dirsrvtests/suites/ds_logs/ds_logs_test.py | 85 +++
dirsrvtests/suites/get_effective_rights/ger_test.py | 85 +++
dirsrvtests/suites/ldapi/ldapi_test.py | 85 +++
dirsrvtests/suites/linkedattrs_plugin/linked_attrs_test.py | 85 +++
dirsrvtests/suites/mapping_tree/mapping_tree_test.py | 85 +++
dirsrvtests/suites/memberof_plugin/memberof_test.py | 85 +++
dirsrvtests/suites/mep_plugin/mep_test.py | 85 +++
dirsrvtests/suites/monitor/monitor_test.py | 85 +++
dirsrvtests/suites/paged_results/paged_results_test.py | 85 +++
dirsrvtests/suites/pam_passthru_plugin/pam_test.py | 85 +++
dirsrvtests/suites/passthru_plugin/passthru_test.py | 85 +++
dirsrvtests/suites/posix_winsync_plugin/posix_winsync_test.py | 85 +++
dirsrvtests/suites/psearch/psearch_test.py | 85 +++
dirsrvtests/suites/referint_plugin/referint_test.py | 85 +++
dirsrvtests/suites/replsync_plugin/repl_sync_test.py | 85 +++
dirsrvtests/suites/resource_limits/res_limits_test.py | 85 +++
dirsrvtests/suites/retrocl_plugin/retrocl_test.py | 85 +++
dirsrvtests/suites/reverpwd_plugin/reverpwd_test.py | 85 +++
dirsrvtests/suites/roles_plugin/roles_test.py | 85 +++
dirsrvtests/suites/sasl/sasl_test.py | 85 +++
dirsrvtests/suites/schema_reload_plugin/schema_reload_test.py | 85 +++
dirsrvtests/suites/snmp/snmp_test.py | 85 +++
dirsrvtests/suites/ssl/ssl_test.py | 85 +++
dirsrvtests/suites/syntax_plugin/syntax_test.py | 85 +++
dirsrvtests/suites/usn_plugin/usn_test.py | 85 +++
dirsrvtests/suites/views_plugin/views_test.py | 85 +++
dirsrvtests/suites/vlv/vlv_test.py | 85 +++
dirsrvtests/suites/whoami_plugin/whoami_test.py | 85 +++
41 files changed, 3637 insertions(+)
New commits:
commit 20888a606b1eabf79723f247542a17c87dcf354d
Author: Mark Reynolds <mreynolds(a)redhat.com>
Date: Wed Feb 18 17:32:05 2015 -0500
Ticket 48003 - add template scripts
Description: Add template scripts for most plugins/common features
https://fedorahosted.org/389/ticket/48003
Reviewed by: nhosoi(Thanks!)
(cherry picked from commit 6dcc12ca1444889769be3341e180b236727ac857)
diff --git a/dirsrvtests/suites/acct_usability_plugin/acct_usability_test.py
b/dirsrvtests/suites/acct_usability_plugin/acct_usability_test.py
new file mode 100644
index 0000000..17e878d
--- /dev/null
+++ b/dirsrvtests/suites/acct_usability_plugin/acct_usability_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_acct_usability_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_acct_usability_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_acct_usability_final(topology):
+ topology.standalone.delete()
+ log.info('acct_usability test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_acct_usability_init(topo)
+ test_acct_usability_(topo)
+ test_acct_usability_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/acctpolicy_plugin/acctpolicy_test.py
b/dirsrvtests/suites/acctpolicy_plugin/acctpolicy_test.py
new file mode 100644
index 0000000..d58f6ce
--- /dev/null
+++ b/dirsrvtests/suites/acctpolicy_plugin/acctpolicy_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_acctpolicy_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_acctpolicy_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_acctpolicy_final(topology):
+ topology.standalone.delete()
+ log.info('acctpolicy test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_acctpolicy_init(topo)
+ test_acctpolicy_(topo)
+ test_acctpolicy_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/acl/acl_test.py b/dirsrvtests/suites/acl/acl_test.py
new file mode 100644
index 0000000..74bd6c8
--- /dev/null
+++ b/dirsrvtests/suites/acl/acl_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_acl_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_acl_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_acl_final(topology):
+ topology.standalone.delete()
+ log.info('acl test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_acl_init(topo)
+ test_acl_(topo)
+ test_acl_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/attr_encryption/attr_encrypt_test.py
b/dirsrvtests/suites/attr_encryption/attr_encrypt_test.py
new file mode 100644
index 0000000..661d157
--- /dev/null
+++ b/dirsrvtests/suites/attr_encryption/attr_encrypt_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_attr_encrypt_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_attr_encrypt_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_attr_encrypt_final(topology):
+ topology.standalone.delete()
+ log.info('attr_encrypt test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_attr_encrypt_init(topo)
+ test_attr_encrypt_(topo)
+ test_attr_encrypt_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/attr_uniqueness_plugin/attr_uniqueness_test.py
b/dirsrvtests/suites/attr_uniqueness_plugin/attr_uniqueness_test.py
new file mode 100644
index 0000000..2872ede
--- /dev/null
+++ b/dirsrvtests/suites/attr_uniqueness_plugin/attr_uniqueness_test.py
@@ -0,0 +1,237 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_attr_uniqueness_init(topology):
+ '''
+ Enable dynamic plugins - makes things easier
+ '''
+ try:
+ topology.standalone.modify_s(DN_CONFIG, [(ldap.MOD_REPLACE,
'nsslapd-dynamic-plugins', 'on')])
+ except ldap.LDAPError, e:
+ ldap.fatal('Failed to enable dynamic plugin!' +
e.message['desc'])
+ assert False
+
+
+def test_attr_uniqueness(topology):
+ log.info('Running test_attr_uniqueness...')
+
+ #
+ # Configure plugin
+ #
+ try:
+ topology.standalone.modify_s('cn=' + PLUGIN_ATTR_UNIQUENESS +
',cn=plugins,cn=config',
+ [(ldap.MOD_REPLACE, 'uniqueness-attribute-name',
'uid')])
+
+ except ldap.LDAPError, e:
+ log.fatal('test_attr_uniqueness: Failed to configure plugin for
"uid": error ' + e.message['desc'])
+ assert False
+
+ # Add an entry
+ try:
+ topology.standalone.add_s(Entry((USER1_DN, {'objectclass': "top
extensibleObject".split(),
+ 'sn': '1',
+ 'cn': 'user 1',
+ 'uid': 'user1',
+ 'mail': 'user1(a)example.com',
+ 'mailAlternateAddress':
'user1(a)alt.example.com',
+ 'userpassword': 'password'})))
+ except ldap.LDAPError, e:
+ log.fatal('test_attr_uniqueness: Failed to add test user' + USER1_DN +
': error ' + e.message['desc'])
+ assert False
+
+ # Add an entry with a duplicate "uid"
+ try:
+ topology.standalone.add_s(Entry((USER2_DN, {'objectclass': "top
extensibleObject".split(),
+ 'sn': '2',
+ 'cn': 'user 2',
+ 'uid': 'user2',
+ 'uid': 'user1',
+ 'userpassword': 'password'})))
+ except ldap.CONSTRAINT_VIOLATION:
+ pass
+ else:
+ log.fatal('test_attr_uniqueness: Adding of 2nd entry(uid) incorrectly
succeeded')
+ assert False
+
+ #
+ # Change config to use "mail" instead of "uid"
+ #
+ try:
+ topology.standalone.modify_s('cn=' + PLUGIN_ATTR_UNIQUENESS +
',cn=plugins,cn=config',
+ [(ldap.MOD_REPLACE, 'uniqueness-attribute-name',
'mail')])
+
+ except ldap.LDAPError, e:
+ log.fatal('test_attr_uniqueness: Failed to configure plugin for
"mail": error ' + e.message['desc'])
+ assert False
+
+ #
+ # Test plugin - Add an entry, that has a duplicate "mail" value
+ #
+ try:
+ topology.standalone.add_s(Entry((USER2_DN, {'objectclass': "top
extensibleObject".split(),
+ 'sn': '2',
+ 'cn': 'user 2',
+ 'uid': 'user2',
+ 'mail': 'user1(a)example.com',
+ 'userpassword': 'password'})))
+ except ldap.CONSTRAINT_VIOLATION:
+ pass
+ else:
+ log.fatal('test_attr_uniqueness: Adding of 2nd entry(mail) incorrectly
succeeded')
+ assert False
+
+ #
+ # Reconfigure plugin for mail and mailAlternateAddress
+ #
+ try:
+ topology.standalone.modify_s('cn=' + PLUGIN_ATTR_UNIQUENESS +
',cn=plugins,cn=config',
+ [(ldap.MOD_REPLACE, 'uniqueness-attribute-name',
'mail'),
+ (ldap.MOD_ADD, 'uniqueness-attribute-name',
+ 'mailAlternateAddress')])
+ except ldap.LDAPError, e:
+ log.error('test_attr_uniqueness: Failed to reconfigure plugin for "mail
mailAlternateAddress": error ' +
+ e.message['desc'])
+ assert False
+
+ #
+ # Test plugin - Add an entry, that has a duplicate "mail" value
+ #
+ try:
+ topology.standalone.add_s(Entry((USER2_DN, {'objectclass': "top
extensibleObject".split(),
+ 'sn': '2',
+ 'cn': 'user 2',
+ 'uid': 'user2',
+ 'mail': 'user1(a)example.com',
+ 'userpassword': 'password'})))
+ except ldap.CONSTRAINT_VIOLATION:
+ pass
+ else:
+ log.error('test_attr_uniqueness: Adding of 3rd entry(mail) incorrectly
succeeded')
+ assert False
+
+ #
+ # Test plugin - Add an entry, that has a duplicate "mailAlternateAddress"
value
+ #
+ try:
+ topology.standalone.add_s(Entry((USER2_DN, {'objectclass': "top
extensibleObject".split(),
+ 'sn': '2',
+ 'cn': 'user 2',
+ 'uid': 'user2',
+ 'mailAlternateAddress':
'user1(a)alt.example.com',
+ 'userpassword': 'password'})))
+ except ldap.CONSTRAINT_VIOLATION:
+ pass
+ else:
+ log.error('test_attr_uniqueness: Adding of 4th entry(mailAlternateAddress)
incorrectly succeeded')
+ assert False
+
+ #
+ # Test plugin - Add an entry, that has a duplicate "mail" value conflicting
mailAlternateAddress
+ #
+ try:
+ topology.standalone.add_s(Entry((USER2_DN, {'objectclass': "top
extensibleObject".split(),
+ 'sn': '2',
+ 'cn': 'user 2',
+ 'uid': 'user2',
+ 'mail': 'user1(a)alt.example.com',
+ 'userpassword': 'password'})))
+ except ldap.CONSTRAINT_VIOLATION:
+ pass
+ else:
+ log.error('test_attr_uniqueness: Adding of 5th entry(mailAlternateAddress)
incorrectly succeeded')
+ assert False
+
+ #
+ # Test plugin - Add an entry, that has a duplicate "mailAlternateAddress"
conflicting mail
+ #
+ try:
+ topology.standalone.add_s(Entry((USER2_DN, {'objectclass': "top
extensibleObject".split(),
+ 'sn': '2',
+ 'cn': 'user 2',
+ 'uid': 'user2',
+ 'mailAlternateAddress':
'user1(a)example.com',
+ 'userpassword': 'password'})))
+ except ldap.CONSTRAINT_VIOLATION:
+ pass
+ else:
+ log.error('test_attr_uniqueness: Adding of 6th entry(mail) incorrectly
succeeded')
+ assert False
+
+ #
+ # Cleanup
+ #
+ try:
+ topology.standalone.delete_s(USER1_DN)
+ except ldap.LDAPError, e:
+ log.fatal('test_attr_uniqueness: Failed to delete test entry: ' +
e.message['desc'])
+ assert False
+
+ log.info('test_attr_uniqueness: PASS\n')
+
+
+def test_attr_uniqueness_final(topology):
+ topology.standalone.delete()
+ log.info('attr_uniqueness test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_attr_uniqueness_init(topo)
+ test_attr_uniqueness(topo)
+ test_attr_uniqueness_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/automember_plugin/automember_test.py
b/dirsrvtests/suites/automember_plugin/automember_test.py
new file mode 100644
index 0000000..d34ed83
--- /dev/null
+++ b/dirsrvtests/suites/automember_plugin/automember_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_automember_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_automember_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_automember_final(topology):
+ topology.standalone.delete()
+ log.info('automember test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_automember_init(topo)
+ test_automember_(topo)
+ test_automember_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/chaining_plugin/chaining_test.py
b/dirsrvtests/suites/chaining_plugin/chaining_test.py
new file mode 100644
index 0000000..0380e60
--- /dev/null
+++ b/dirsrvtests/suites/chaining_plugin/chaining_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_chaining_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_chaining_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_chaining_final(topology):
+ topology.standalone.delete()
+ log.info('chaining test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_chaining_init(topo)
+ test_chaining_(topo)
+ test_chaining_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/collation_plugin/collatation_test.py
b/dirsrvtests/suites/collation_plugin/collatation_test.py
new file mode 100644
index 0000000..1f48285
--- /dev/null
+++ b/dirsrvtests/suites/collation_plugin/collatation_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_collatation_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_collatation_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_collatation_final(topology):
+ topology.standalone.delete()
+ log.info('collatation test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_collatation_init(topo)
+ test_collatation_(topo)
+ test_collatation_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/cos_plugin/cos_test.py
b/dirsrvtests/suites/cos_plugin/cos_test.py
new file mode 100644
index 0000000..6c87b7b
--- /dev/null
+++ b/dirsrvtests/suites/cos_plugin/cos_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_cos_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_cos_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_cos_final(topology):
+ topology.standalone.delete()
+ log.info('cos test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_cos_init(topo)
+ test_cos_(topo)
+ test_cos_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/deref_plugin/deref_test.py
b/dirsrvtests/suites/deref_plugin/deref_test.py
new file mode 100644
index 0000000..968a9a4
--- /dev/null
+++ b/dirsrvtests/suites/deref_plugin/deref_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_deref_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_deref_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_deref_final(topology):
+ topology.standalone.delete()
+ log.info('deref test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_deref_init(topo)
+ test_deref_(topo)
+ test_deref_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/disk_monitoring/disk_monitor_test.py
b/dirsrvtests/suites/disk_monitoring/disk_monitor_test.py
new file mode 100644
index 0000000..0518b0b
--- /dev/null
+++ b/dirsrvtests/suites/disk_monitoring/disk_monitor_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_disk_monitor_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_disk_monitor_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_disk_monitor_final(topology):
+ topology.standalone.delete()
+ log.info('disk_monitor test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_disk_monitor_init(topo)
+ test_disk_monitor_(topo)
+ test_disk_monitor_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/distrib_plugin/distrib_test.py
b/dirsrvtests/suites/distrib_plugin/distrib_test.py
new file mode 100644
index 0000000..5b0fc6a
--- /dev/null
+++ b/dirsrvtests/suites/distrib_plugin/distrib_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_distrib_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_distrib_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_distrib_final(topology):
+ topology.standalone.delete()
+ log.info('distrib test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_distrib_init(topo)
+ test_distrib_(topo)
+ test_distrib_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/dna_plugin/dna_test.py
b/dirsrvtests/suites/dna_plugin/dna_test.py
new file mode 100644
index 0000000..41ca67d
--- /dev/null
+++ b/dirsrvtests/suites/dna_plugin/dna_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_dna_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_dna_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_dna_final(topology):
+ topology.standalone.delete()
+ log.info('dna test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_dna_init(topo)
+ test_dna_(topo)
+ test_dna_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/ds_logs/ds_logs_test.py
b/dirsrvtests/suites/ds_logs/ds_logs_test.py
new file mode 100644
index 0000000..39f2c48
--- /dev/null
+++ b/dirsrvtests/suites/ds_logs/ds_logs_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_ds_logs_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_ds_logs_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_ds_logs_final(topology):
+ topology.standalone.delete()
+ log.info('ds_logs test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_ds_logs_init(topo)
+ test_ds_logs_(topo)
+ test_ds_logs_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/get_effective_rights/ger_test.py
b/dirsrvtests/suites/get_effective_rights/ger_test.py
new file mode 100644
index 0000000..679d146
--- /dev/null
+++ b/dirsrvtests/suites/get_effective_rights/ger_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_ger_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_ger_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_ger_final(topology):
+ topology.standalone.delete()
+ log.info('ger test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_ger_init(topo)
+ test_ger_(topo)
+ test_ger_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/ldapi/ldapi_test.py
b/dirsrvtests/suites/ldapi/ldapi_test.py
new file mode 100644
index 0000000..2523798
--- /dev/null
+++ b/dirsrvtests/suites/ldapi/ldapi_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_ldapi_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_ldapi_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_ldapi_final(topology):
+ topology.standalone.delete()
+ log.info('ldapi test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_ldapi_init(topo)
+ test_ldapi_(topo)
+ test_ldapi_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/linkedattrs_plugin/linked_attrs_test.py
b/dirsrvtests/suites/linkedattrs_plugin/linked_attrs_test.py
new file mode 100644
index 0000000..29c3ae1
--- /dev/null
+++ b/dirsrvtests/suites/linkedattrs_plugin/linked_attrs_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_linked_attrs_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_linked_attrs_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_linked_attrs_final(topology):
+ topology.standalone.delete()
+ log.info('linked_attrs test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_linked_attrs_init(topo)
+ test_linked_attrs_(topo)
+ test_linked_attrs_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/mapping_tree/mapping_tree_test.py
b/dirsrvtests/suites/mapping_tree/mapping_tree_test.py
new file mode 100644
index 0000000..43801b4
--- /dev/null
+++ b/dirsrvtests/suites/mapping_tree/mapping_tree_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_mapping_tree_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_mapping_tree_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_mapping_tree_final(topology):
+ topology.standalone.delete()
+ log.info('mapping_tree test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_mapping_tree_init(topo)
+ test_mapping_tree_(topo)
+ test_mapping_tree_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/memberof_plugin/memberof_test.py
b/dirsrvtests/suites/memberof_plugin/memberof_test.py
new file mode 100644
index 0000000..fd55b99
--- /dev/null
+++ b/dirsrvtests/suites/memberof_plugin/memberof_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_memberof_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_memberof_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_memberof_final(topology):
+ topology.standalone.delete()
+ log.info('memberof test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_memberof_init(topo)
+ test_memberof_(topo)
+ test_memberof_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/mep_plugin/mep_test.py
b/dirsrvtests/suites/mep_plugin/mep_test.py
new file mode 100644
index 0000000..7818199
--- /dev/null
+++ b/dirsrvtests/suites/mep_plugin/mep_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_mep_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_mep_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_mep_final(topology):
+ topology.standalone.delete()
+ log.info('mep test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_mep_init(topo)
+ test_mep_(topo)
+ test_mep_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/monitor/monitor_test.py
b/dirsrvtests/suites/monitor/monitor_test.py
new file mode 100644
index 0000000..abb53c2
--- /dev/null
+++ b/dirsrvtests/suites/monitor/monitor_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_monitor_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_monitor_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_monitor_final(topology):
+ topology.standalone.delete()
+ log.info('monitor test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_monitor_init(topo)
+ test_monitor_(topo)
+ test_monitor_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/paged_results/paged_results_test.py
b/dirsrvtests/suites/paged_results/paged_results_test.py
new file mode 100644
index 0000000..4974904
--- /dev/null
+++ b/dirsrvtests/suites/paged_results/paged_results_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_paged_results_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_paged_results_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_paged_results_final(topology):
+ topology.standalone.delete()
+ log.info('paged_results test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_paged_results_init(topo)
+ test_paged_results_(topo)
+ test_paged_results_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/pam_passthru_plugin/pam_test.py
b/dirsrvtests/suites/pam_passthru_plugin/pam_test.py
new file mode 100644
index 0000000..44f2105
--- /dev/null
+++ b/dirsrvtests/suites/pam_passthru_plugin/pam_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_pam_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_pam_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_pam_final(topology):
+ topology.standalone.delete()
+ log.info('pam test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_pam_init(topo)
+ test_pam_(topo)
+ test_pam_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/passthru_plugin/passthru_test.py
b/dirsrvtests/suites/passthru_plugin/passthru_test.py
new file mode 100644
index 0000000..19a83aa
--- /dev/null
+++ b/dirsrvtests/suites/passthru_plugin/passthru_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_passthru_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_passthru_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_passthru_final(topology):
+ topology.standalone.delete()
+ log.info('passthru test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_passthru_init(topo)
+ test_passthru_(topo)
+ test_passthru_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/posix_winsync_plugin/posix_winsync_test.py
b/dirsrvtests/suites/posix_winsync_plugin/posix_winsync_test.py
new file mode 100644
index 0000000..c50422d
--- /dev/null
+++ b/dirsrvtests/suites/posix_winsync_plugin/posix_winsync_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_posix_winsync_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_posix_winsync_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_posix_winsync_final(topology):
+ topology.standalone.delete()
+ log.info('posix_winsync test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_posix_winsync_init(topo)
+ test_posix_winsync_(topo)
+ test_posix_winsync_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/psearch/psearch_test.py
b/dirsrvtests/suites/psearch/psearch_test.py
new file mode 100644
index 0000000..56a284e
--- /dev/null
+++ b/dirsrvtests/suites/psearch/psearch_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_psearch_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_psearch_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_psearch_final(topology):
+ topology.standalone.delete()
+ log.info('psearch test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_psearch_init(topo)
+ test_psearch_(topo)
+ test_psearch_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/referint_plugin/referint_test.py
b/dirsrvtests/suites/referint_plugin/referint_test.py
new file mode 100644
index 0000000..b2ded39
--- /dev/null
+++ b/dirsrvtests/suites/referint_plugin/referint_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_referint_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_referint_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_referint_final(topology):
+ topology.standalone.delete()
+ log.info('referint test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_referint_init(topo)
+ test_referint_(topo)
+ test_referint_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/replsync_plugin/repl_sync_test.py
b/dirsrvtests/suites/replsync_plugin/repl_sync_test.py
new file mode 100644
index 0000000..2856be5
--- /dev/null
+++ b/dirsrvtests/suites/replsync_plugin/repl_sync_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_repl_sync_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_repl_sync_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_repl_sync_final(topology):
+ topology.standalone.delete()
+ log.info('repl_sync test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_repl_sync_init(topo)
+ test_repl_sync_(topo)
+ test_repl_sync_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/resource_limits/res_limits_test.py
b/dirsrvtests/suites/resource_limits/res_limits_test.py
new file mode 100644
index 0000000..4e114ee
--- /dev/null
+++ b/dirsrvtests/suites/resource_limits/res_limits_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_res_limits_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_res_limits_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_res_limits_final(topology):
+ topology.standalone.delete()
+ log.info('res_limits test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_res_limits_init(topo)
+ test_res_limits_(topo)
+ test_res_limits_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/retrocl_plugin/retrocl_test.py
b/dirsrvtests/suites/retrocl_plugin/retrocl_test.py
new file mode 100644
index 0000000..7f23884
--- /dev/null
+++ b/dirsrvtests/suites/retrocl_plugin/retrocl_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_retrocl_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_retrocl_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_retrocl_final(topology):
+ topology.standalone.delete()
+ log.info('retrocl test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_retrocl_init(topo)
+ test_retrocl_(topo)
+ test_retrocl_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/reverpwd_plugin/reverpwd_test.py
b/dirsrvtests/suites/reverpwd_plugin/reverpwd_test.py
new file mode 100644
index 0000000..a6738cb
--- /dev/null
+++ b/dirsrvtests/suites/reverpwd_plugin/reverpwd_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_reverpwd_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_reverpwd_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_reverpwd_final(topology):
+ topology.standalone.delete()
+ log.info('reverpwd test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_reverpwd_init(topo)
+ test_reverpwd_(topo)
+ test_reverpwd_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/roles_plugin/roles_test.py
b/dirsrvtests/suites/roles_plugin/roles_test.py
new file mode 100644
index 0000000..a20505b
--- /dev/null
+++ b/dirsrvtests/suites/roles_plugin/roles_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_roles_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_roles_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_roles_final(topology):
+ topology.standalone.delete()
+ log.info('roles test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_roles_init(topo)
+ test_roles_(topo)
+ test_roles_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/sasl/sasl_test.py b/dirsrvtests/suites/sasl/sasl_test.py
new file mode 100644
index 0000000..f9f17c7
--- /dev/null
+++ b/dirsrvtests/suites/sasl/sasl_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_sasl_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_sasl_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_sasl_final(topology):
+ topology.standalone.delete()
+ log.info('sasl test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_sasl_init(topo)
+ test_sasl_(topo)
+ test_sasl_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/schema_reload_plugin/schema_reload_test.py
b/dirsrvtests/suites/schema_reload_plugin/schema_reload_test.py
new file mode 100644
index 0000000..3e5966b
--- /dev/null
+++ b/dirsrvtests/suites/schema_reload_plugin/schema_reload_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_schema_reload_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_schema_reload_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_schema_reload_final(topology):
+ topology.standalone.delete()
+ log.info('schema_reload test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_schema_reload_init(topo)
+ test_schema_reload_(topo)
+ test_schema_reload_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/snmp/snmp_test.py b/dirsrvtests/suites/snmp/snmp_test.py
new file mode 100644
index 0000000..4954e73
--- /dev/null
+++ b/dirsrvtests/suites/snmp/snmp_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_snmp_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_snmp_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_snmp_final(topology):
+ topology.standalone.delete()
+ log.info('snmp test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_snmp_init(topo)
+ test_snmp_(topo)
+ test_snmp_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/ssl/ssl_test.py b/dirsrvtests/suites/ssl/ssl_test.py
new file mode 100644
index 0000000..9fd7f0b
--- /dev/null
+++ b/dirsrvtests/suites/ssl/ssl_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_ssl_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_ssl_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_ssl_final(topology):
+ topology.standalone.delete()
+ log.info('ssl test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_ssl_init(topo)
+ test_ssl_(topo)
+ test_ssl_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/syntax_plugin/syntax_test.py
b/dirsrvtests/suites/syntax_plugin/syntax_test.py
new file mode 100644
index 0000000..40f7cb6
--- /dev/null
+++ b/dirsrvtests/suites/syntax_plugin/syntax_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_syntax_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_syntax_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_syntax_final(topology):
+ topology.standalone.delete()
+ log.info('syntax test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_syntax_init(topo)
+ test_syntax_(topo)
+ test_syntax_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/usn_plugin/usn_test.py
b/dirsrvtests/suites/usn_plugin/usn_test.py
new file mode 100644
index 0000000..d338446
--- /dev/null
+++ b/dirsrvtests/suites/usn_plugin/usn_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_usn_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_usn_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_usn_final(topology):
+ topology.standalone.delete()
+ log.info('usn test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_usn_init(topo)
+ test_usn_(topo)
+ test_usn_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/views_plugin/views_test.py
b/dirsrvtests/suites/views_plugin/views_test.py
new file mode 100644
index 0000000..f7b0a68
--- /dev/null
+++ b/dirsrvtests/suites/views_plugin/views_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_views_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_views_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_views_final(topology):
+ topology.standalone.delete()
+ log.info('views test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_views_init(topo)
+ test_views_(topo)
+ test_views_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/vlv/vlv_test.py b/dirsrvtests/suites/vlv/vlv_test.py
new file mode 100644
index 0000000..65fdfab
--- /dev/null
+++ b/dirsrvtests/suites/vlv/vlv_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_vlv_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_vlv_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_vlv_final(topology):
+ topology.standalone.delete()
+ log.info('vlv test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_vlv_init(topo)
+ test_vlv_(topo)
+ test_vlv_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+
diff --git a/dirsrvtests/suites/whoami_plugin/whoami_test.py
b/dirsrvtests/suites/whoami_plugin/whoami_test.py
new file mode 100644
index 0000000..cdaa6d4
--- /dev/null
+++ b/dirsrvtests/suites/whoami_plugin/whoami_test.py
@@ -0,0 +1,85 @@
+import os
+import sys
+import time
+import ldap
+import logging
+import pytest
+from lib389 import DirSrv, Entry, tools, tasks
+from lib389.tools import DirSrvTools
+from lib389._constants import *
+from lib389.properties import *
+from lib389.tasks import *
+from lib389.utils import *
+
+logging.getLogger(__name__).setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+
+installation1_prefix = None
+
+
+class TopologyStandalone(object):
+ def __init__(self, standalone):
+ standalone.open()
+ self.standalone = standalone
+
+
+(a)pytest.fixture(scope="module")
+def topology(request):
+ global installation1_prefix
+ if installation1_prefix:
+ args_instance[SER_DEPLOYED_DIR] = installation1_prefix
+
+ # Creating standalone instance ...
+ standalone = DirSrv(verbose=False)
+ args_instance[SER_HOST] = HOST_STANDALONE
+ args_instance[SER_PORT] = PORT_STANDALONE
+ args_instance[SER_SERVERID_PROP] = SERVERID_STANDALONE
+ args_instance[SER_CREATION_SUFFIX] = DEFAULT_SUFFIX
+ args_standalone = args_instance.copy()
+ standalone.allocate(args_standalone)
+ instance_standalone = standalone.exists()
+ if instance_standalone:
+ standalone.delete()
+ standalone.create()
+ standalone.open()
+
+ # Clear out the tmp dir
+ standalone.clearTmpDir(__file__)
+
+ return TopologyStandalone(standalone)
+
+
+def test_whoami_init(topology):
+ '''
+ Write any test suite initialization here(if needed)
+ '''
+
+ return
+
+
+def test_whoami_(topology):
+ '''
+ Write a single test here...
+ '''
+
+ return
+
+
+def test_whoami_final(topology):
+ topology.standalone.delete()
+ log.info('whoami test suite PASSED')
+
+
+def run_isolated():
+ global installation1_prefix
+ installation1_prefix = None
+
+ topo = topology(True)
+ test_whoami_init(topo)
+ test_whoami_(topo)
+ test_whoami_final(topo)
+
+
+if __name__ == '__main__':
+ run_isolated()
+