This is an automated email from the git hooks/post-receive script.
firstyear pushed a commit to branch master
in repository 389-ds-base.
commit a8628e232d927521cabc72c8a6a2e1b15bcde178
Author: William Brown <firstyear(a)redhat.com>
Date: Wed Jun 28 11:31:18 2017 +1000
Ticket 49302 - fix dirsrv importst due to lib389 change
Bug Description: We previously relied on:
from lib389.utils import *
When we changed imports from utils to remove:
from lib389._constants import *
This broke the indirect import through utils *.
Fix Description: Add the correct requirements of
constants into ticket/suite tests.
https://pagure.io/389-ds-base/issue/49302
Author: wibrown
Review by: spichugi (Thank you so much!)
---
dirsrvtests/tests/suites/acl/acl_test.py | 1 +
dirsrvtests/tests/suites/basic/basic_test.py | 4 +++-
dirsrvtests/tests/suites/betxns/betxn_test.py | 2 ++
dirsrvtests/tests/suites/config/autotuning_test.py | 2 ++
dirsrvtests/tests/suites/config/config_test.py | 2 ++
dirsrvtests/tests/suites/ds_tools/logpipe_test.py | 1 +
dirsrvtests/tests/suites/dynamic_plugins/dynamic_plugins_test.py | 8 +++++++-
dirsrvtests/tests/suites/dynamic_plugins/plugin_tests.py | 9 +++++++++
dirsrvtests/tests/suites/filter/filter_test.py | 1 +
dirsrvtests/tests/suites/filter/rfc3673_all_oper_attrs_test.py | 2 ++
dirsrvtests/tests/suites/memory_leaks/range_search_test.py | 3 +++
dirsrvtests/tests/suites/paged_results/paged_results_test.py | 1 +
dirsrvtests/tests/suites/password/password_test.py | 1 +
dirsrvtests/tests/suites/password/pwdAdmin_test.py | 2 ++
dirsrvtests/tests/suites/password/pwdPolicy_attribute_test.py | 5 +++++
dirsrvtests/tests/suites/password/pwdPolicy_syntax_test.py | 1 +
dirsrvtests/tests/suites/password/pwdPolicy_warning_test.py | 4 ++++
dirsrvtests/tests/suites/password/pwd_algo_test.py | 1 +
dirsrvtests/tests/suites/password/pwp_history_test.py | 2 ++
dirsrvtests/tests/suites/plugins/accpol_test.py | 3 +++
dirsrvtests/tests/suites/plugins/attr_uniqueness_test.py | 1 +
dirsrvtests/tests/suites/plugins/dna_test.py | 2 ++
dirsrvtests/tests/suites/plugins/memberof_test.py | 1 +
dirsrvtests/tests/suites/plugins/rootdn_plugin_test.py | 2 ++
dirsrvtests/tests/suites/replication/acceptance_test.py | 6 ++++++
dirsrvtests/tests/suites/replication/cleanallruv_test.py | 9 +++++++++
dirsrvtests/tests/suites/replication/single_master_test.py | 6 ++++++
dirsrvtests/tests/suites/replication/tombstone_test.py | 1 +
.../tests/suites/replication/wait_for_async_feature_test.py | 2 ++
dirsrvtests/tests/suites/setup_ds/setup_ds_test.py | 6 +++++-
dirsrvtests/tests/tickets/ticket1347760_test.py | 2 ++
dirsrvtests/tests/tickets/ticket365_test.py | 2 ++
dirsrvtests/tests/tickets/ticket397_test.py | 2 ++
dirsrvtests/tests/tickets/ticket47384_test.py | 2 ++
dirsrvtests/tests/tickets/ticket47431_test.py | 2 ++
dirsrvtests/tests/tickets/ticket47536_test.py | 3 +++
dirsrvtests/tests/tickets/ticket47640_test.py | 2 ++
dirsrvtests/tests/tickets/ticket47669_test.py | 2 ++
dirsrvtests/tests/tickets/ticket47781_test.py | 5 +++++
dirsrvtests/tests/tickets/ticket47819_test.py | 4 ++++
dirsrvtests/tests/tickets/ticket47833_test.py | 2 ++
dirsrvtests/tests/tickets/ticket47910_test.py | 2 ++
dirsrvtests/tests/tickets/ticket47927_test.py | 2 ++
dirsrvtests/tests/tickets/ticket47931_test.py | 4 +++-
dirsrvtests/tests/tickets/ticket47950_test.py | 6 ++++++
dirsrvtests/tests/tickets/ticket47953_test.py | 2 ++
dirsrvtests/tests/tickets/ticket47963_test.py | 2 ++
dirsrvtests/tests/tickets/ticket47966_test.py | 3 +++
dirsrvtests/tests/tickets/ticket47973_test.py | 2 ++
dirsrvtests/tests/tickets/ticket47976_test.py | 2 ++
dirsrvtests/tests/tickets/ticket47980_test.py | 2 ++
dirsrvtests/tests/tickets/ticket47981_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48005_test.py | 3 +++
dirsrvtests/tests/tickets/ticket48013_test.py | 4 ++++
dirsrvtests/tests/tickets/ticket48026_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48109_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48212_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48214_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48226_test.py | 3 +++
dirsrvtests/tests/tickets/ticket48228_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48233_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48234_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48252_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48265_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48266_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48270_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48272_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48312_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48325_test.py | 5 +++++
dirsrvtests/tests/tickets/ticket48342_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48354_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48362_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48383_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48497_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48665_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48745_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48746_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48759_test.py | 3 +++
dirsrvtests/tests/tickets/ticket48784_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48798_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48808_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48844_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48891_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48893_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48896_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48906_test.py | 2 ++
dirsrvtests/tests/tickets/ticket48944_test.py | 3 +++
dirsrvtests/tests/tickets/ticket48956_test.py | 4 ++++
dirsrvtests/tests/tickets/ticket49008_test.py | 2 ++
dirsrvtests/tests/tickets/ticket49071_test.py | 2 ++
dirsrvtests/tests/tickets/ticket49072_test.py | 4 ++++
dirsrvtests/tests/tickets/ticket49073_test.py | 3 +++
dirsrvtests/tests/tickets/ticket49121_test.py | 2 ++
dirsrvtests/tests/tickets/ticket548_test.py | 2 ++
94 files changed, 242 insertions(+), 4 deletions(-)
diff --git a/dirsrvtests/tests/suites/acl/acl_test.py
b/dirsrvtests/tests/suites/acl/acl_test.py
index cd7b177..0127f0a 100644
--- a/dirsrvtests/tests/suites/acl/acl_test.py
+++ b/dirsrvtests/tests/suites/acl/acl_test.py
@@ -11,6 +11,7 @@ from ldap.controls.simple import GetEffectiveRightsControl
from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_m2
+from lib389._constants import SUFFIX, DN_SCHEMA, DN_DM, DEFAULT_SUFFIX, PASSWORD
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/suites/basic/basic_test.py
b/dirsrvtests/tests/suites/basic/basic_test.py
index f9a954a..7b77686 100644
--- a/dirsrvtests/tests/suites/basic/basic_test.py
+++ b/dirsrvtests/tests/suites/basic/basic_test.py
@@ -15,6 +15,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DN_DM, PASSWORD, PW_DM
+
log = logging.getLogger(__name__)
# Globals
@@ -469,7 +471,7 @@ def test_basic_searches(topology_st, import_example_ldif):
('(&(!(uid=r*))(ou=people))', 139),
('(&(uid=m*)(l=sunnyvale)(ou=people)(mail=*example*)(roomNumber=*))', 3),
('(&(|(uid=m*)(l=santa clara))(roomNumber=22*))', 5),
- ('(&(|(uid=m*)(l=santa
clara))(roomNumber=22*)(!(roomnumber=2254)))', 4))
+ ('(&(|(uid=m*)(l=santa
clara))(roomNumber=22*)(!(roomnumber=2254)))', 4),)
for (search_filter, search_result) in filters:
try:
diff --git a/dirsrvtests/tests/suites/betxns/betxn_test.py
b/dirsrvtests/tests/suites/betxns/betxn_test.py
index ed8acbf..289e8c5 100644
--- a/dirsrvtests/tests/suites/betxns/betxn_test.py
+++ b/dirsrvtests/tests/suites/betxns/betxn_test.py
@@ -12,6 +12,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, PLUGIN_7_BIT_CHECK, PLUGIN_ATTR_UNIQUENESS,
PLUGIN_MEMBER_OF
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/suites/config/autotuning_test.py
b/dirsrvtests/tests/suites/config/autotuning_test.py
index b5bf5db..e81270b 100644
--- a/dirsrvtests/tests/suites/config/autotuning_test.py
+++ b/dirsrvtests/tests/suites/config/autotuning_test.py
@@ -11,6 +11,8 @@ from lib389._mapped_object import DSLdapObject
from lib389.utils import *
from lib389.topologies import topology_st as topo
+from lib389._constants import DN_CONFIG_LDBM, DN_USERROOT_LDBM, DEFAULT_SUFFIX
+
DEBUGGING = os.getenv("DEBUGGING", default=False)
if DEBUGGING:
logging.getLogger(__name__).setLevel(logging.DEBUG)
diff --git a/dirsrvtests/tests/suites/config/config_test.py
b/dirsrvtests/tests/suites/config/config_test.py
index 6170eb0..78a1724 100644
--- a/dirsrvtests/tests/suites/config/config_test.py
+++ b/dirsrvtests/tests/suites/config/config_test.py
@@ -12,6 +12,8 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_m2
+from lib389._constants import DN_CONFIG, DEFAULT_SUFFIX
+
USER_DN = 'uid=test_user,%s' % DEFAULT_SUFFIX
logging.getLogger(__name__).setLevel(logging.INFO)
diff --git a/dirsrvtests/tests/suites/ds_tools/logpipe_test.py
b/dirsrvtests/tests/suites/ds_tools/logpipe_test.py
index 2614ed7..e7bc7fb 100644
--- a/dirsrvtests/tests/suites/ds_tools/logpipe_test.py
+++ b/dirsrvtests/tests/suites/ds_tools/logpipe_test.py
@@ -7,6 +7,7 @@
# --- END COPYRIGHT BLOCK ---
#
import pytest
+import subprocess
from lib389.utils import *
from lib389.topologies import topology_st as topo
diff --git a/dirsrvtests/tests/suites/dynamic_plugins/dynamic_plugins_test.py
b/dirsrvtests/tests/suites/dynamic_plugins/dynamic_plugins_test.py
index 9badcc3..234f685 100644
--- a/dirsrvtests/tests/suites/dynamic_plugins/dynamic_plugins_test.py
+++ b/dirsrvtests/tests/suites/dynamic_plugins/dynamic_plugins_test.py
@@ -20,6 +20,12 @@ from lib389.tasks import *
import plugin_tests
import stress_tests
from lib389.topologies import topology_st
+from lib389._constants import (DN_CONFIG, DEFAULT_SUFFIX, DN_LDBM, PLUGIN_ACCT_POLICY,
+ PLUGIN_MEMBER_OF, PLUGIN_LINKED_ATTRS,
PLUGIN_REFER_INTEGRITY,
+ REPLICAROLE_MASTER, REPLICAROLE_CONSUMER,
REPLICATION_BIND_DN,
+ REPLICATION_BIND_PW, REPLICATION_BIND_METHOD,
REPLICATION_TRANSPORT,
+ LOCALHOST, REPLICA_RUV_FILTER,
+ RA_NAME, RA_BINDDN, RA_BINDPW, RA_METHOD,
RA_TRANSPORT_PROT)
log = logging.getLogger(__name__)
@@ -56,7 +62,7 @@ def test_dynamic_plugins(topology_st):
"""
REPLICA_PORT = 33334
- RUV_FILTER =
'(&(nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff)(objectclass=nstombstone))'
+ RUV_FILTER = REPLICA_RUV_FILTER
master_maxcsn = 0
replica_maxcsn = 0
msg = ' (no replication)'
diff --git a/dirsrvtests/tests/suites/dynamic_plugins/plugin_tests.py
b/dirsrvtests/tests/suites/dynamic_plugins/plugin_tests.py
index 0cbc54b..f17ec53 100644
--- a/dirsrvtests/tests/suites/dynamic_plugins/plugin_tests.py
+++ b/dirsrvtests/tests/suites/dynamic_plugins/plugin_tests.py
@@ -13,8 +13,17 @@ Created on Dec 09, 2014
'''
import logging
+from lib389 import DirSrv
+
from lib389.tasks import *
+from lib389._constants import (DEFAULT_SUFFIX, PLUGIN_ACCT_USABILITY,
PLUGIN_ACCT_POLICY,
+ PLUGIN_ATTR_UNIQUENESS, PLUGIN_AUTOMEMBER, PLUGIN_DNA,
+ PLUGIN_LINKED_ATTRS, PLUGIN_MEMBER_OF,
+ PLUGIN_MANAGED_ENTRY, PLUGIN_PASSTHRU,
PLUGIN_REFER_INTEGRITY,
+ PLUGIN_RETRO_CHANGELOG, PLUGIN_ROOTDN_ACCESS, DN_DM,
PASSWORD,
+ LOCALHOST)
+
log = logging.getLogger(__name__)
USER1_DN = 'uid=user1,' + DEFAULT_SUFFIX
diff --git a/dirsrvtests/tests/suites/filter/filter_test.py
b/dirsrvtests/tests/suites/filter/filter_test.py
index 1979baf..280db68 100644
--- a/dirsrvtests/tests/suites/filter/filter_test.py
+++ b/dirsrvtests/tests/suites/filter/filter_test.py
@@ -11,6 +11,7 @@ import logging
import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import PASSWORD, DEFAULT_SUFFIX
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/suites/filter/rfc3673_all_oper_attrs_test.py
b/dirsrvtests/tests/suites/filter/rfc3673_all_oper_attrs_test.py
index 83283dd..cce7aa9 100644
--- a/dirsrvtests/tests/suites/filter/rfc3673_all_oper_attrs_test.py
+++ b/dirsrvtests/tests/suites/filter/rfc3673_all_oper_attrs_test.py
@@ -11,6 +11,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DN_DM, DEFAULT_SUFFIX, DN_CONFIG, PASSWORD
+
DN_PEOPLE = 'ou=people,%s' % DEFAULT_SUFFIX
DN_ROOT = ''
TEST_USER_NAME = 'all_attrs_test'
diff --git a/dirsrvtests/tests/suites/memory_leaks/range_search_test.py
b/dirsrvtests/tests/suites/memory_leaks/range_search_test.py
index b35d2a9..15be3c6 100644
--- a/dirsrvtests/tests/suites/memory_leaks/range_search_test.py
+++ b/dirsrvtests/tests/suites/memory_leaks/range_search_test.py
@@ -11,6 +11,9 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import (PLUGIN_RETRO_CHANGELOG, BACKEND_NAME, RETROCL_SUFFIX,
+ VALGRIND_LEAK_STR)
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/suites/paged_results/paged_results_test.py
b/dirsrvtests/tests/suites/paged_results/paged_results_test.py
index 1f2098b..6a8df4d 100644
--- a/dirsrvtests/tests/suites/paged_results/paged_results_test.py
+++ b/dirsrvtests/tests/suites/paged_results/paged_results_test.py
@@ -13,6 +13,7 @@ from ldap.controls import SimplePagedResultsControl,
GetEffectiveRightsControl
from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DN_LDBM, DN_DM, DEFAULT_SUFFIX, BACKEND_NAME, PASSWORD
from sss_control import SSSRequestControl
diff --git a/dirsrvtests/tests/suites/password/password_test.py
b/dirsrvtests/tests/suites/password/password_test.py
index e61ff7b..860192f 100644
--- a/dirsrvtests/tests/suites/password/password_test.py
+++ b/dirsrvtests/tests/suites/password/password_test.py
@@ -11,6 +11,7 @@ import logging
import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import PASSWORD, DEFAULT_SUFFIX
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/suites/password/pwdAdmin_test.py
b/dirsrvtests/tests/suites/password/pwdAdmin_test.py
index bbe77d0..b49e10d 100644
--- a/dirsrvtests/tests/suites/password/pwdAdmin_test.py
+++ b/dirsrvtests/tests/suites/password/pwdAdmin_test.py
@@ -11,6 +11,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import SUFFIX, DN_DM, PASSWORD, DEFAULT_SUFFIX
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/suites/password/pwdPolicy_attribute_test.py
b/dirsrvtests/tests/suites/password/pwdPolicy_attribute_test.py
index 4584f29..9d77c7b 100644
--- a/dirsrvtests/tests/suites/password/pwdPolicy_attribute_test.py
+++ b/dirsrvtests/tests/suites/password/pwdPolicy_attribute_test.py
@@ -11,6 +11,11 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import (DEFAULT_SUFFIX, DN_DM, PASSWORD, HOST_STANDALONE,
SERVERID_STANDALONE,
+ PORT_STANDALONE)
+
+import subprocess
+
OU_PEOPLE = 'ou=people,{}'.format(DEFAULT_SUFFIX)
TEST_USER_NAME = 'simplepaged_test'
TEST_USER_DN = 'uid={},{}'.format(TEST_USER_NAME, OU_PEOPLE)
diff --git a/dirsrvtests/tests/suites/password/pwdPolicy_syntax_test.py
b/dirsrvtests/tests/suites/password/pwdPolicy_syntax_test.py
index 93c94fb..1464233 100644
--- a/dirsrvtests/tests/suites/password/pwdPolicy_syntax_test.py
+++ b/dirsrvtests/tests/suites/password/pwdPolicy_syntax_test.py
@@ -11,6 +11,7 @@ import logging
import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, PASSWORD, DN_DM
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/suites/password/pwdPolicy_warning_test.py
b/dirsrvtests/tests/suites/password/pwdPolicy_warning_test.py
index 9c583d9..fee84b1 100644
--- a/dirsrvtests/tests/suites/password/pwdPolicy_warning_test.py
+++ b/dirsrvtests/tests/suites/password/pwdPolicy_warning_test.py
@@ -7,11 +7,15 @@
# --- END COPYRIGHT BLOCK ---
#
import pytest
+import subprocess
from ldap.controls.ppolicy import PasswordPolicyControl
from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import (DEFAULT_SUFFIX, DN_CONFIG, PASSWORD, DN_DM,
+ HOST_STANDALONE, PORT_STANDALONE, SERVERID_STANDALONE)
+
CONFIG_ATTR = 'passwordSendExpiringTime'
USER_DN = 'uid=tuser,{:s}'.format(DEFAULT_SUFFIX)
USER_PASSWD = 'secret123'
diff --git a/dirsrvtests/tests/suites/password/pwd_algo_test.py
b/dirsrvtests/tests/suites/password/pwd_algo_test.py
index 481c697..84a4485 100644
--- a/dirsrvtests/tests/suites/password/pwd_algo_test.py
+++ b/dirsrvtests/tests/suites/password/pwd_algo_test.py
@@ -10,6 +10,7 @@ import pytest
from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, HOST_STANDALONE, DN_DM, PORT_STANDALONE
USER_DN = 'uid=user,ou=People,%s' % DEFAULT_SUFFIX
diff --git a/dirsrvtests/tests/suites/password/pwp_history_test.py
b/dirsrvtests/tests/suites/password/pwp_history_test.py
index 2e3b9d5..1ec1fa0 100644
--- a/dirsrvtests/tests/suites/password/pwp_history_test.py
+++ b/dirsrvtests/tests/suites/password/pwp_history_test.py
@@ -11,6 +11,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DN_DM, DEFAULT_SUFFIX, PASSWORD
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/suites/plugins/accpol_test.py
b/dirsrvtests/tests/suites/plugins/accpol_test.py
index 773e672..681e075 100644
--- a/dirsrvtests/tests/suites/plugins/accpol_test.py
+++ b/dirsrvtests/tests/suites/plugins/accpol_test.py
@@ -7,11 +7,14 @@
# --- END COPYRIGHT BLOCK ---
#
import pytest
+import subprocess
from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
from lib389.idm.user import UserAccounts
+from lib389._constants import PLUGIN_ACCT_POLICY, DN_PLUGIN, DN_DM, PASSWORD,
DEFAULT_SUFFIX, DN_CONFIG
+
LOCL_CONF = 'cn=AccountPolicy1,ou=people,dc=example,dc=com'
TEMPL_COS = 'cn=TempltCoS,ou=people,dc=example,dc=com'
DEFIN_COS = 'cn=DefnCoS,ou=people,dc=example,dc=com'
diff --git a/dirsrvtests/tests/suites/plugins/attr_uniqueness_test.py
b/dirsrvtests/tests/suites/plugins/attr_uniqueness_test.py
index 904d1fc..7b80667 100644
--- a/dirsrvtests/tests/suites/plugins/attr_uniqueness_test.py
+++ b/dirsrvtests/tests/suites/plugins/attr_uniqueness_test.py
@@ -10,6 +10,7 @@ import pytest
from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, PLUGIN_ATTR_UNIQUENESS
USER1_DN = 'uid=user1,' + DEFAULT_SUFFIX
USER2_DN = 'uid=user2,' + DEFAULT_SUFFIX
diff --git a/dirsrvtests/tests/suites/plugins/dna_test.py
b/dirsrvtests/tests/suites/plugins/dna_test.py
index 3bd5cd7..e084cdd 100644
--- a/dirsrvtests/tests/suites/plugins/dna_test.py
+++ b/dirsrvtests/tests/suites/plugins/dna_test.py
@@ -11,6 +11,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import PLUGIN_DNA, DEFAULT_SUFFIX
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/suites/plugins/memberof_test.py
b/dirsrvtests/tests/suites/plugins/memberof_test.py
index f4bf225..4958a3c 100644
--- a/dirsrvtests/tests/suites/plugins/memberof_test.py
+++ b/dirsrvtests/tests/suites/plugins/memberof_test.py
@@ -10,6 +10,7 @@ import pytest
from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import PLUGIN_MEMBER_OF, SUFFIX
DEBUGGING = os.getenv('DEBUGGING', False)
diff --git a/dirsrvtests/tests/suites/plugins/rootdn_plugin_test.py
b/dirsrvtests/tests/suites/plugins/rootdn_plugin_test.py
index 0775b0a..a5f42ac 100644
--- a/dirsrvtests/tests/suites/plugins/rootdn_plugin_test.py
+++ b/dirsrvtests/tests/suites/plugins/rootdn_plugin_test.py
@@ -14,6 +14,8 @@ from lib389.tasks import *
from lib389.tools import DirSrvTools
from lib389.topologies import topology_st
+from lib389._constants import PLUGIN_ROOTDN_ACCESS, DN_CONFIG, DEFAULT_SUFFIX, DN_DM,
PASSWORD
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/suites/replication/acceptance_test.py
b/dirsrvtests/tests/suites/replication/acceptance_test.py
index e7f33f3..f92e874 100644
--- a/dirsrvtests/tests/suites/replication/acceptance_test.py
+++ b/dirsrvtests/tests/suites/replication/acceptance_test.py
@@ -11,6 +11,12 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_m4 as topo_m4
+from lib389._constants import (BACKEND_NAME, DEFAULT_SUFFIX, LOG_REPLICA,
REPLICA_RUV_FILTER,
+ REPLICAROLE_MASTER, REPLICATION_BIND_DN,
REPLICATION_BIND_PW,
+ REPLICATION_BIND_METHOD, REPLICATION_TRANSPORT,
defaultProperties,
+ RA_NAME, RA_BINDDN, RA_BINDPW, RA_METHOD,
RA_TRANSPORT_PROT,
+ DN_DM, PASSWORD, LOG_DEFAULT)
+
TEST_ENTRY_NAME = 'mmrepl_test'
TEST_ENTRY_DN = 'uid={},{}'.format(TEST_ENTRY_NAME, DEFAULT_SUFFIX)
NEW_SUFFIX_NAME = 'test_repl'
diff --git a/dirsrvtests/tests/suites/replication/cleanallruv_test.py
b/dirsrvtests/tests/suites/replication/cleanallruv_test.py
index f56dc41..cd7aa21 100644
--- a/dirsrvtests/tests/suites/replication/cleanallruv_test.py
+++ b/dirsrvtests/tests/suites/replication/cleanallruv_test.py
@@ -13,6 +13,15 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_m4
+from lib389._constants import (DEFAULT_SUFFIX, REPLICA_RUV_FILTER, REPLICAROLE_MASTER,
+ REPLICAID_MASTER_4, REPLICAID_MASTER_3,
REPLICAID_MASTER_2,
+ REPLICAID_MASTER_1, REPLICATION_BIND_DN,
REPLICATION_BIND_PW,
+ REPLICATION_BIND_METHOD, REPLICATION_TRANSPORT, SUFFIX,
+ RA_NAME, RA_BINDDN, RA_BINDPW, RA_METHOD,
RA_TRANSPORT_PROT,
+ defaultProperties)
+
+from lib389 import DirSrv
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/suites/replication/single_master_test.py
b/dirsrvtests/tests/suites/replication/single_master_test.py
index c1428f6..bb48001 100644
--- a/dirsrvtests/tests/suites/replication/single_master_test.py
+++ b/dirsrvtests/tests/suites/replication/single_master_test.py
@@ -12,6 +12,12 @@ from lib389.utils import *
from lib389.topologies import topology_m1c1 as topo_r # Replication
from lib389.topologies import topology_i2 as topo_nr # No replication
+from lib389._constants import (REPLICAROLE_MASTER, DEFAULT_SUFFIX, REPLICAID_MASTER_1,
+ REPLICAROLE_CONSUMER, REPLICATION_BIND_DN,
REPLICATION_BIND_PW,
+ REPLICATION_BIND_METHOD, REPLICATION_TRANSPORT,
DEFAULT_BACKUPDIR,
+ RA_NAME, RA_BINDDN, RA_BINDPW, RA_METHOD,
RA_TRANSPORT_PROT,
+ defaultProperties)
+
DEBUGGING = os.getenv("DEBUGGING", default=False)
if DEBUGGING:
logging.getLogger(__name__).setLevel(logging.DEBUG)
diff --git a/dirsrvtests/tests/suites/replication/tombstone_test.py
b/dirsrvtests/tests/suites/replication/tombstone_test.py
index 71fc084..ec232d6 100644
--- a/dirsrvtests/tests/suites/replication/tombstone_test.py
+++ b/dirsrvtests/tests/suites/replication/tombstone_test.py
@@ -11,6 +11,7 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, REPLICAROLE_MASTER, REPLICAID_MASTER_1
def test_purge_success(topology_st):
"""Verify that tombstones are created successfully
diff --git a/dirsrvtests/tests/suites/replication/wait_for_async_feature_test.py
b/dirsrvtests/tests/suites/replication/wait_for_async_feature_test.py
index cfe92ab..34ead67 100644
--- a/dirsrvtests/tests/suites/replication/wait_for_async_feature_test.py
+++ b/dirsrvtests/tests/suites/replication/wait_for_async_feature_test.py
@@ -13,6 +13,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_m2
+from lib389._constants import SUFFIX, DEFAULT_SUFFIX, LOG_REPLICA
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/suites/setup_ds/setup_ds_test.py
b/dirsrvtests/tests/suites/setup_ds/setup_ds_test.py
index 5aa1f74..687af13 100644
--- a/dirsrvtests/tests/suites/setup_ds/setup_ds_test.py
+++ b/dirsrvtests/tests/suites/setup_ds/setup_ds_test.py
@@ -1,9 +1,13 @@
import os
import pytest
-from lib389.properties import *
from lib389.tasks import *
from lib389.utils import *
+from lib389._constants import (DEFAULT_SUFFIX, LOCALHOST, SER_HOST, SER_PORT,
+ SER_SERVERID_PROP, SER_CREATION_SUFFIX,
SER_INST_SCRIPTS_ENABLED,
+ PORT_STANDALONE, args_instance)
+
+from lib389 import DirSrv
DEBUGGING = os.getenv("DEBUGGING", default=False)
if DEBUGGING:
diff --git a/dirsrvtests/tests/tickets/ticket1347760_test.py
b/dirsrvtests/tests/tickets/ticket1347760_test.py
index 3ca84da..9187cf6 100644
--- a/dirsrvtests/tests/tickets/ticket1347760_test.py
+++ b/dirsrvtests/tests/tickets/ticket1347760_test.py
@@ -14,6 +14,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DN_DM, DEFAULT_SUFFIX, PASSWORD, SERVERID_STANDALONE
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket365_test.py
b/dirsrvtests/tests/tickets/ticket365_test.py
index 639bfec..505a597 100644
--- a/dirsrvtests/tests/tickets/ticket365_test.py
+++ b/dirsrvtests/tests/tickets/ticket365_test.py
@@ -13,6 +13,8 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import DN_CONFIG, DEFAULT_SUFFIX
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket397_test.py
b/dirsrvtests/tests/tickets/ticket397_test.py
index 91a9790..bd6cb8c 100644
--- a/dirsrvtests/tests/tickets/ticket397_test.py
+++ b/dirsrvtests/tests/tickets/ticket397_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, HOST_STANDALONE, PORT_STANDALONE
+
DEBUGGING = os.getenv('DEBUGGING', False)
USER_DN = 'uid=user,ou=People,%s' % DEFAULT_SUFFIX
diff --git a/dirsrvtests/tests/tickets/ticket47384_test.py
b/dirsrvtests/tests/tickets/ticket47384_test.py
index 777aa94..da01b3d 100644
--- a/dirsrvtests/tests/tickets/ticket47384_test.py
+++ b/dirsrvtests/tests/tickets/ticket47384_test.py
@@ -11,6 +11,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, PLUGIN_WHOAMI
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket47431_test.py
b/dirsrvtests/tests/tickets/ticket47431_test.py
index 1d05891..d45346b 100644
--- a/dirsrvtests/tests/tickets/ticket47431_test.py
+++ b/dirsrvtests/tests/tickets/ticket47431_test.py
@@ -11,6 +11,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, DN_PLUGIN, SUFFIX, PLUGIN_7_BIT_CHECK
+
# Skip on older versions
pytestmark = pytest.mark.skipif(ds_is_older('1.3'), reason="Not
implemented")
diff --git a/dirsrvtests/tests/tickets/ticket47536_test.py
b/dirsrvtests/tests/tickets/ticket47536_test.py
index 8847601..bb30bc8 100644
--- a/dirsrvtests/tests/tickets/ticket47536_test.py
+++ b/dirsrvtests/tests/tickets/ticket47536_test.py
@@ -9,10 +9,13 @@
import base64
import os
import pytest
+import subprocess
from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_m2
+from lib389._constants import DEFAULT_SUFFIX, DN_DM, PASSWORD
+
pytestmark = pytest.mark.skipif(ds_is_older('1.3.5'), reason="Not
implemented")
logging.getLogger(__name__).setLevel(logging.DEBUG)
diff --git a/dirsrvtests/tests/tickets/ticket47640_test.py
b/dirsrvtests/tests/tickets/ticket47640_test.py
index 23e7c03..3a9f13c 100644
--- a/dirsrvtests/tests/tickets/ticket47640_test.py
+++ b/dirsrvtests/tests/tickets/ticket47640_test.py
@@ -11,6 +11,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import PLUGIN_LINKED_ATTRS, DEFAULT_SUFFIX
+
# Skip on older versions
pytestmark = pytest.mark.skipif(ds_is_older('1.3.4'), reason="Not
implemented")
diff --git a/dirsrvtests/tests/tickets/ticket47669_test.py
b/dirsrvtests/tests/tickets/ticket47669_test.py
index 03fb722..99aa20b 100644
--- a/dirsrvtests/tests/tickets/ticket47669_test.py
+++ b/dirsrvtests/tests/tickets/ticket47669_test.py
@@ -12,6 +12,8 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import DN_DM, PASSWORD, DEFAULT_SUFFIX
+
log = logging.getLogger(__name__)
CHANGELOG = 'cn=changelog5,cn=config'
diff --git a/dirsrvtests/tests/tickets/ticket47781_test.py
b/dirsrvtests/tests/tickets/ticket47781_test.py
index 7e1e1de..a852841 100644
--- a/dirsrvtests/tests/tickets/ticket47781_test.py
+++ b/dirsrvtests/tests/tickets/ticket47781_test.py
@@ -12,6 +12,11 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import (defaultProperties, DEFAULT_SUFFIX, REPLICAROLE_MASTER,
+ REPLICAID_MASTER_1, REPLICATION_BIND_DN,
REPLICATION_BIND_PW,
+ REPLICATION_BIND_METHOD, REPLICATION_TRANSPORT, RA_NAME,
+ RA_BINDDN, RA_BINDPW, RA_METHOD, RA_TRANSPORT_PROT)
+
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket47819_test.py
b/dirsrvtests/tests/tickets/ticket47819_test.py
index cc00921..737b8de 100644
--- a/dirsrvtests/tests/tickets/ticket47819_test.py
+++ b/dirsrvtests/tests/tickets/ticket47819_test.py
@@ -12,6 +12,10 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import (defaultProperties, DEFAULT_SUFFIX, REPLICAROLE_MASTER,
+ REPLICAID_MASTER_1, REPLICA_PRECISE_PURGING,
REPLICA_PURGE_DELAY,
+ REPLICA_PURGE_INTERVAL)
+
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket47833_test.py
b/dirsrvtests/tests/tickets/ticket47833_test.py
index d95c7be..9267365 100644
--- a/dirsrvtests/tests/tickets/ticket47833_test.py
+++ b/dirsrvtests/tests/tickets/ticket47833_test.py
@@ -11,6 +11,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import SUFFIX, DEFAULT_SUFFIX, PLUGIN_MEMBER_OF, DN_PLUGIN
+
SCOPE_IN_CN = 'in'
SCOPE_OUT_CN = 'out'
SCOPE_IN_DN = 'cn=%s,%s' % (SCOPE_IN_CN, SUFFIX)
diff --git a/dirsrvtests/tests/tickets/ticket47910_test.py
b/dirsrvtests/tests/tickets/ticket47910_test.py
index f636950..5638419 100644
--- a/dirsrvtests/tests/tickets/ticket47910_test.py
+++ b/dirsrvtests/tests/tickets/ticket47910_test.py
@@ -13,6 +13,8 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import SUFFIX, DEFAULT_SUFFIX
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket47927_test.py
b/dirsrvtests/tests/tickets/ticket47927_test.py
index 08b10ad..3dbd08b 100644
--- a/dirsrvtests/tests/tickets/ticket47927_test.py
+++ b/dirsrvtests/tests/tickets/ticket47927_test.py
@@ -11,6 +11,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import SUFFIX, DEFAULT_SUFFIX, PLUGIN_ATTR_UNIQUENESS
+
# Skip on older versions
pytestmark = pytest.mark.skipif(ds_is_older('1.3.4'), reason="Not
implemented")
diff --git a/dirsrvtests/tests/tickets/ticket47931_test.py
b/dirsrvtests/tests/tickets/ticket47931_test.py
index b6fef9f..341fb0f 100644
--- a/dirsrvtests/tests/tickets/ticket47931_test.py
+++ b/dirsrvtests/tests/tickets/ticket47931_test.py
@@ -5,6 +5,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, PLUGIN_RETRO_CHANGELOG, PLUGIN_MEMBER_OF,
BACKEND_NAME
+
# Skip on older versions
pytestmark = pytest.mark.skipif(ds_is_older('1.3.3'), reason="Not
implemented")
@@ -125,7 +127,7 @@ def test_ticket47931(topology_st):
USER_DN = ("uid=member%d,%s" % (idx, DEFAULT_SUFFIX))
topology_st.standalone.add_s(Entry((USER_DN,
{'objectclass': 'top
extensibleObject'.split(),
- 'uid': 'member%d' %
(x)})))
+ 'uid': 'member%d' %
(idx)})))
except ldap.LDAPError as e:
log.fatal('Failed to add user (%s): error %s' % (USER_DN,
e.message['desc']))
assert False
diff --git a/dirsrvtests/tests/tickets/ticket47950_test.py
b/dirsrvtests/tests/tickets/ticket47950_test.py
index d9bfec3..7c3252a 100644
--- a/dirsrvtests/tests/tickets/ticket47950_test.py
+++ b/dirsrvtests/tests/tickets/ticket47950_test.py
@@ -12,6 +12,12 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import (defaultProperties, DEFAULT_SUFFIX, REPLICAROLE_MASTER,
+ REPLICAID_MASTER_1, REPLICATION_BIND_DN,
REPLICATION_BIND_PW,
+ REPLICATION_BIND_METHOD, REPLICATION_TRANSPORT, RA_NAME,
+ RA_BINDDN, RA_BINDPW, RA_METHOD, RA_TRANSPORT_PROT,
+ DN_DM, PASSWORD, REPLICA_ID, RA_CONSUMER_PORT)
+
log = logging.getLogger(__name__)
USER1_DN = "uid=user1,%s" % DEFAULT_SUFFIX
diff --git a/dirsrvtests/tests/tickets/ticket47953_test.py
b/dirsrvtests/tests/tickets/ticket47953_test.py
index 5e90df0..f828835 100644
--- a/dirsrvtests/tests/tickets/ticket47953_test.py
+++ b/dirsrvtests/tests/tickets/ticket47953_test.py
@@ -13,6 +13,8 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import DATA_DIR, DEFAULT_SUFFIX
+
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket47963_test.py
b/dirsrvtests/tests/tickets/ticket47963_test.py
index 4a4fc39..e38fb30 100644
--- a/dirsrvtests/tests/tickets/ticket47963_test.py
+++ b/dirsrvtests/tests/tickets/ticket47963_test.py
@@ -12,6 +12,8 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, PLUGIN_MEMBER_OF
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket47966_test.py
b/dirsrvtests/tests/tickets/ticket47966_test.py
index 0152de0..f7aa48b 100644
--- a/dirsrvtests/tests/tickets/ticket47966_test.py
+++ b/dirsrvtests/tests/tickets/ticket47966_test.py
@@ -11,6 +11,9 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_m2
+from lib389._constants import (DEFAULT_SUFFIX, HOST_MASTER_2, PORT_MASTER_2,
+ REPLICAROLE_MASTER, REPLICAID_MASTER_2, BACKEND_NAME)
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket47973_test.py
b/dirsrvtests/tests/tickets/ticket47973_test.py
index 6c6e9eb..c0751a1 100644
--- a/dirsrvtests/tests/tickets/ticket47973_test.py
+++ b/dirsrvtests/tests/tickets/ticket47973_test.py
@@ -14,6 +14,8 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import SUFFIX, DEFAULT_SUFFIX
+
log = logging.getLogger(__name__)
USER_DN = 'uid=user1,%s' % (DEFAULT_SUFFIX)
diff --git a/dirsrvtests/tests/tickets/ticket47976_test.py
b/dirsrvtests/tests/tickets/ticket47976_test.py
index 408912b..13ada96 100644
--- a/dirsrvtests/tests/tickets/ticket47976_test.py
+++ b/dirsrvtests/tests/tickets/ticket47976_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import SUFFIX, DEFAULT_SUFFIX, PLUGIN_MANAGED_ENTRY, DN_LDBM
+
PEOPLE_OU = 'people'
PEOPLE_DN = "ou=%s,%s" % (PEOPLE_OU, SUFFIX)
GROUPS_OU = 'groups'
diff --git a/dirsrvtests/tests/tickets/ticket47980_test.py
b/dirsrvtests/tests/tickets/ticket47980_test.py
index 8a17a4b..0bbd7d2 100644
--- a/dirsrvtests/tests/tickets/ticket47980_test.py
+++ b/dirsrvtests/tests/tickets/ticket47980_test.py
@@ -13,6 +13,8 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import DN_CONFIG, DEFAULT_SUFFIX
+
log = logging.getLogger(__name__)
BRANCH1 = 'ou=level1,' + DEFAULT_SUFFIX
diff --git a/dirsrvtests/tests/tickets/ticket47981_test.py
b/dirsrvtests/tests/tickets/ticket47981_test.py
index 90cd7ff..9ed3694 100644
--- a/dirsrvtests/tests/tickets/ticket47981_test.py
+++ b/dirsrvtests/tests/tickets/ticket47981_test.py
@@ -13,6 +13,8 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, BACKEND_NAME, DN_CONFIG
+
log = logging.getLogger(__name__)
BRANCH = 'ou=people,' + DEFAULT_SUFFIX
diff --git a/dirsrvtests/tests/tickets/ticket48005_test.py
b/dirsrvtests/tests/tickets/ticket48005_test.py
index 2c29be6..4474f11 100644
--- a/dirsrvtests/tests/tickets/ticket48005_test.py
+++ b/dirsrvtests/tests/tickets/ticket48005_test.py
@@ -13,6 +13,9 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import (DEFAULT_SUFFIX, SUFFIX, PLUGIN_REFER_INTEGRITY,
PLUGIN_AUTOMEMBER,
+ PLUGIN_MEMBER_OF, PLUGIN_USN)
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48013_test.py
b/dirsrvtests/tests/tickets/ticket48013_test.py
index 78c6226..f27e121 100644
--- a/dirsrvtests/tests/tickets/ticket48013_test.py
+++ b/dirsrvtests/tests/tickets/ticket48013_test.py
@@ -13,6 +13,10 @@ from ldap.syncrepl import SyncreplConsumer
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import (PLUGIN_RETRO_CHANGELOG, DEFAULT_SUFFIX, DN_CONFIG,
+ DN_DM, PASSWORD, PLUGIN_REPL_SYNC, HOST_STANDALONE,
+ PORT_STANDALONE)
+
# Skip on older versions
pytestmark = pytest.mark.skipif(ds_is_older('1.3.4'), reason="Not
implemented")
diff --git a/dirsrvtests/tests/tickets/ticket48026_test.py
b/dirsrvtests/tests/tickets/ticket48026_test.py
index c0c31dd..ae177ef 100644
--- a/dirsrvtests/tests/tickets/ticket48026_test.py
+++ b/dirsrvtests/tests/tickets/ticket48026_test.py
@@ -11,6 +11,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import PLUGIN_ATTR_UNIQUENESS, DEFAULT_SUFFIX
+
# Skip on older versions
pytestmark = pytest.mark.skipif(ds_is_older('1.3.4'), reason="Not
implemented")
diff --git a/dirsrvtests/tests/tickets/ticket48109_test.py
b/dirsrvtests/tests/tickets/ticket48109_test.py
index 5327402..5ef855d 100644
--- a/dirsrvtests/tests/tickets/ticket48109_test.py
+++ b/dirsrvtests/tests/tickets/ticket48109_test.py
@@ -11,6 +11,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import SUFFIX, DEFAULT_SUFFIX
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48212_test.py
b/dirsrvtests/tests/tickets/ticket48212_test.py
index 780e907..2483953 100644
--- a/dirsrvtests/tests/tickets/ticket48212_test.py
+++ b/dirsrvtests/tests/tickets/ticket48212_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DN_DM, PASSWORD, DEFAULT_SUFFIX, DATA_DIR
+
log = logging.getLogger(__name__)
MYSUFFIX = 'dc=example,dc=com'
diff --git a/dirsrvtests/tests/tickets/ticket48214_test.py
b/dirsrvtests/tests/tickets/ticket48214_test.py
index 32f9231..9b95862 100644
--- a/dirsrvtests/tests/tickets/ticket48214_test.py
+++ b/dirsrvtests/tests/tickets/ticket48214_test.py
@@ -4,6 +4,8 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, DN_DM, PASSWORD
+
log = logging.getLogger(__name__)
MYSUFFIX = 'dc=example,dc=com'
diff --git a/dirsrvtests/tests/tickets/ticket48226_test.py
b/dirsrvtests/tests/tickets/ticket48226_test.py
index 584b999..cbc418b 100644
--- a/dirsrvtests/tests/tickets/ticket48226_test.py
+++ b/dirsrvtests/tests/tickets/ticket48226_test.py
@@ -11,6 +11,9 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_m2
+from lib389._constants import (DEFAULT_SUFFIX, REPLICA_PURGE_DELAY,
REPLICA_PURGE_INTERVAL, DN_CONFIG,
+ SUFFIX, VALGRIND_LEAK_STR)
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48228_test.py
b/dirsrvtests/tests/tickets/ticket48228_test.py
index 6c542ad..4f4494e 100644
--- a/dirsrvtests/tests/tickets/ticket48228_test.py
+++ b/dirsrvtests/tests/tickets/ticket48228_test.py
@@ -12,6 +12,8 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, DN_DM, PASSWORD, DN_CONFIG
+
log = logging.getLogger(__name__)
# Assuming DEFAULT_SUFFIX is "dc=example,dc=com", otherwise it does not work...
:(
diff --git a/dirsrvtests/tests/tickets/ticket48233_test.py
b/dirsrvtests/tests/tickets/ticket48233_test.py
index 4550e92..4abeddd 100644
--- a/dirsrvtests/tests/tickets/ticket48233_test.py
+++ b/dirsrvtests/tests/tickets/ticket48233_test.py
@@ -2,6 +2,8 @@ import pytest
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48234_test.py
b/dirsrvtests/tests/tickets/ticket48234_test.py
index e63594a..057bb93 100644
--- a/dirsrvtests/tests/tickets/ticket48234_test.py
+++ b/dirsrvtests/tests/tickets/ticket48234_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, DN_DM, PASSWORD
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48252_test.py
b/dirsrvtests/tests/tickets/ticket48252_test.py
index 1a29d4d..ac88d37 100644
--- a/dirsrvtests/tests/tickets/ticket48252_test.py
+++ b/dirsrvtests/tests/tickets/ticket48252_test.py
@@ -12,6 +12,8 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, SUFFIX, DEFAULT_BENAME, PLUGIN_USN
+
log = logging.getLogger(__name__)
# Assuming DEFAULT_SUFFIX is "dc=example,dc=com", otherwise it does not work...
:(
diff --git a/dirsrvtests/tests/tickets/ticket48265_test.py
b/dirsrvtests/tests/tickets/ticket48265_test.py
index 02193b5..68202be 100644
--- a/dirsrvtests/tests/tickets/ticket48265_test.py
+++ b/dirsrvtests/tests/tickets/ticket48265_test.py
@@ -11,6 +11,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import SUFFIX, DEFAULT_SUFFIX
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48266_test.py
b/dirsrvtests/tests/tickets/ticket48266_test.py
index 3c814ec..c64ba99 100644
--- a/dirsrvtests/tests/tickets/ticket48266_test.py
+++ b/dirsrvtests/tests/tickets/ticket48266_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_m2
+from lib389._constants import SUFFIX, DEFAULT_SUFFIX, HOST_MASTER_2, PORT_MASTER_2
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48270_test.py
b/dirsrvtests/tests/tickets/ticket48270_test.py
index 3ec9f28..be2f805 100644
--- a/dirsrvtests/tests/tickets/ticket48270_test.py
+++ b/dirsrvtests/tests/tickets/ticket48270_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import SUFFIX, DEFAULT_SUFFIX
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48272_test.py
b/dirsrvtests/tests/tickets/ticket48272_test.py
index 8cdafa8..3936c64 100644
--- a/dirsrvtests/tests/tickets/ticket48272_test.py
+++ b/dirsrvtests/tests/tickets/ticket48272_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, HOST_STANDALONE, PORT_STANDALONE
+
DEBUGGING = os.getenv('DEBUGGING', False)
if DEBUGGING:
diff --git a/dirsrvtests/tests/tickets/ticket48312_test.py
b/dirsrvtests/tests/tickets/ticket48312_test.py
index bc72a9b..74632df 100644
--- a/dirsrvtests/tests/tickets/ticket48312_test.py
+++ b/dirsrvtests/tests/tickets/ticket48312_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, PLUGIN_MANAGED_ENTRY, DN_CONFIG
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48325_test.py
b/dirsrvtests/tests/tickets/ticket48325_test.py
index 3f52188..d02e9e6 100644
--- a/dirsrvtests/tests/tickets/ticket48325_test.py
+++ b/dirsrvtests/tests/tickets/ticket48325_test.py
@@ -2,6 +2,11 @@ import pytest
from lib389.utils import *
from lib389.topologies import topology_m1h1c1
+from lib389._constants import (DEFAULT_SUFFIX, REPLICA_RUV_FILTER, defaultProperties,
+ REPLICATION_BIND_DN, REPLICATION_BIND_PW,
REPLICATION_BIND_METHOD,
+ REPLICATION_TRANSPORT, SUFFIX, RA_NAME, RA_BINDDN,
RA_BINDPW,
+ RA_METHOD, RA_TRANSPORT_PROT, SUFFIX)
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48342_test.py
b/dirsrvtests/tests/tickets/ticket48342_test.py
index ef68c5f..14ef8f9 100644
--- a/dirsrvtests/tests/tickets/ticket48342_test.py
+++ b/dirsrvtests/tests/tickets/ticket48342_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_m3
+from lib389._constants import SUFFIX, DEFAULT_SUFFIX, PLUGIN_DNA
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48354_test.py
b/dirsrvtests/tests/tickets/ticket48354_test.py
index d748cd5..037d3c8 100644
--- a/dirsrvtests/tests/tickets/ticket48354_test.py
+++ b/dirsrvtests/tests/tickets/ticket48354_test.py
@@ -2,6 +2,8 @@ import pytest
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, HOST_STANDALONE, PORT_STANDALONE
+
DEBUGGING = os.getenv('DEBUGGING', False)
if DEBUGGING:
diff --git a/dirsrvtests/tests/tickets/ticket48362_test.py
b/dirsrvtests/tests/tickets/ticket48362_test.py
index ab0aaa5..b5b547a 100644
--- a/dirsrvtests/tests/tickets/ticket48362_test.py
+++ b/dirsrvtests/tests/tickets/ticket48362_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_m2
+from lib389._constants import SUFFIX, DEFAULT_SUFFIX, PLUGIN_DNA
+
# Skip on older versions
pytestmark = pytest.mark.skipif(ds_is_older('1.3.4'), reason="Not
implemented")
diff --git a/dirsrvtests/tests/tickets/ticket48383_test.py
b/dirsrvtests/tests/tickets/ticket48383_test.py
index a147448..a6dfbed 100644
--- a/dirsrvtests/tests/tickets/ticket48383_test.py
+++ b/dirsrvtests/tests/tickets/ticket48383_test.py
@@ -6,6 +6,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, SERVERID_STANDALONE
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48497_test.py
b/dirsrvtests/tests/tickets/ticket48497_test.py
index 1ce49e5..a2f6ec9 100644
--- a/dirsrvtests/tests/tickets/ticket48497_test.py
+++ b/dirsrvtests/tests/tickets/ticket48497_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, SUFFIX
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48665_test.py
b/dirsrvtests/tests/tickets/ticket48665_test.py
index 8b859b7..fdbe587 100644
--- a/dirsrvtests/tests/tickets/ticket48665_test.py
+++ b/dirsrvtests/tests/tickets/ticket48665_test.py
@@ -2,6 +2,8 @@ import pytest
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, DEFAULT_BENAME
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48745_test.py
b/dirsrvtests/tests/tickets/ticket48745_test.py
index 45c3a4f..88b78c6 100644
--- a/dirsrvtests/tests/tickets/ticket48745_test.py
+++ b/dirsrvtests/tests/tickets/ticket48745_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import SUFFIX, DEFAULT_SUFFIX
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48746_test.py
b/dirsrvtests/tests/tickets/ticket48746_test.py
index 7b05fc7..fa5a706 100644
--- a/dirsrvtests/tests/tickets/ticket48746_test.py
+++ b/dirsrvtests/tests/tickets/ticket48746_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import SUFFIX, DEFAULT_SUFFIX, DEFAULT_BENAME
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48759_test.py
b/dirsrvtests/tests/tickets/ticket48759_test.py
index 55f21d6..a829ef6 100644
--- a/dirsrvtests/tests/tickets/ticket48759_test.py
+++ b/dirsrvtests/tests/tickets/ticket48759_test.py
@@ -12,6 +12,9 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import (PLUGIN_MEMBER_OF, DEFAULT_SUFFIX, REPLICAROLE_MASTER,
REPLICAID_MASTER_1,
+ DN_CONFIG, PLUGIN_RETRO_CHANGELOG,
REPLICA_PRECISE_PURGING)
+
log = logging.getLogger(__name__)
MEMBEROF_PLUGIN_DN = ('cn=' + PLUGIN_MEMBER_OF +
',cn=plugins,cn=config')
diff --git a/dirsrvtests/tests/tickets/ticket48784_test.py
b/dirsrvtests/tests/tickets/ticket48784_test.py
index e9778ee..f562eb8 100644
--- a/dirsrvtests/tests/tickets/ticket48784_test.py
+++ b/dirsrvtests/tests/tickets/ticket48784_test.py
@@ -14,6 +14,8 @@ from lib389.utils import *
pytestmark = pytest.mark.skipif(ds_is_older('1.3.5'), reason="Not
implemented")
from lib389.topologies import topology_m2
+from lib389._constants import DEFAULT_SUFFIX, DN_DM, PASSWORD
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48798_test.py
b/dirsrvtests/tests/tickets/ticket48798_test.py
index 98d0cc0..80f307c 100644
--- a/dirsrvtests/tests/tickets/ticket48798_test.py
+++ b/dirsrvtests/tests/tickets/ticket48798_test.py
@@ -5,6 +5,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, DEFAULT_SECURE_PORT
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48808_test.py
b/dirsrvtests/tests/tickets/ticket48808_test.py
index cf49e03..fc32426 100644
--- a/dirsrvtests/tests/tickets/ticket48808_test.py
+++ b/dirsrvtests/tests/tickets/ticket48808_test.py
@@ -6,6 +6,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, DN_DM, PASSWORD
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48844_test.py
b/dirsrvtests/tests/tickets/ticket48844_test.py
index 9e0ba68..b4d2df3 100644
--- a/dirsrvtests/tests/tickets/ticket48844_test.py
+++ b/dirsrvtests/tests/tickets/ticket48844_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, BACKEND_NAME
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket48891_test.py
b/dirsrvtests/tests/tickets/ticket48891_test.py
index 91290d0..c37ed66 100644
--- a/dirsrvtests/tests/tickets/ticket48891_test.py
+++ b/dirsrvtests/tests/tickets/ticket48891_test.py
@@ -13,6 +13,8 @@ import pytest
from lib389.tasks import *
from lib389.topologies import topology_st
+from lib389._constants import DN_DM, PASSWORD, DEFAULT_SUFFIX, BACKEND_NAME, SUFFIX
+
log = logging.getLogger(__name__)
CONFIG_DN = 'cn=config'
diff --git a/dirsrvtests/tests/tickets/ticket48893_test.py
b/dirsrvtests/tests/tickets/ticket48893_test.py
index 12ff3f6..bb945c0 100644
--- a/dirsrvtests/tests/tickets/ticket48893_test.py
+++ b/dirsrvtests/tests/tickets/ticket48893_test.py
@@ -2,6 +2,8 @@ import pytest
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, HOST_STANDALONE, PORT_STANDALONE
+
DEBUGGING = os.getenv('DEBUGGING', False)
if DEBUGGING:
diff --git a/dirsrvtests/tests/tickets/ticket48896_test.py
b/dirsrvtests/tests/tickets/ticket48896_test.py
index 8c5314b..be58b34 100644
--- a/dirsrvtests/tests/tickets/ticket48896_test.py
+++ b/dirsrvtests/tests/tickets/ticket48896_test.py
@@ -11,6 +11,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, DN_DM, PASSWORD
+
# Skip on older versions
pytestmark = pytest.mark.skipif(ds_is_older('1.3.6'), reason="Not
implemented")
diff --git a/dirsrvtests/tests/tickets/ticket48906_test.py
b/dirsrvtests/tests/tickets/ticket48906_test.py
index baa9779..c02e231 100644
--- a/dirsrvtests/tests/tickets/ticket48906_test.py
+++ b/dirsrvtests/tests/tickets/ticket48906_test.py
@@ -15,6 +15,8 @@ from lib389.tasks import *
from lib389.topologies import topology_st
from lib389.utils import *
+from lib389._constants import DEFAULT_SUFFIX, DN_LDBM, DN_DM, PASSWORD, SUFFIX
+
# Skip on older versions
pytestmark = pytest.mark.skipif(ds_is_older('1.3.6'), reason="Not
implemented")
diff --git a/dirsrvtests/tests/tickets/ticket48944_test.py
b/dirsrvtests/tests/tickets/ticket48944_test.py
index 159df48..21dd3c3 100644
--- a/dirsrvtests/tests/tickets/ticket48944_test.py
+++ b/dirsrvtests/tests/tickets/ticket48944_test.py
@@ -11,6 +11,9 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_m2c2 as topo
+from lib389._constants import (PLUGIN_ACCT_POLICY, DN_PLUGIN, DN_CONFIG, DN_DM,
PASSWORD,
+ DEFAULT_SUFFIX, SUFFIX)
+
DEBUGGING = os.getenv("DEBUGGING", default=False)
if DEBUGGING:
logging.getLogger(__name__).setLevel(logging.DEBUG)
diff --git a/dirsrvtests/tests/tickets/ticket48956_test.py
b/dirsrvtests/tests/tickets/ticket48956_test.py
index c028c39..b4e21b3 100644
--- a/dirsrvtests/tests/tickets/ticket48956_test.py
+++ b/dirsrvtests/tests/tickets/ticket48956_test.py
@@ -1,8 +1,12 @@
import pytest
+import subprocess
from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import (PLUGIN_ACCT_POLICY, DEFAULT_SUFFIX, DN_DM, PASSWORD,
SUFFIX,
+ BACKEND_NAME)
+
DEBUGGING = os.getenv('DEBUGGING', False)
RDN_LONG_SUFFIX = 'this'
diff --git a/dirsrvtests/tests/tickets/ticket49008_test.py
b/dirsrvtests/tests/tickets/ticket49008_test.py
index 332cf22..461132a 100644
--- a/dirsrvtests/tests/tickets/ticket49008_test.py
+++ b/dirsrvtests/tests/tickets/ticket49008_test.py
@@ -3,6 +3,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_m3 as T
+from lib389._constants import DEFAULT_SUFFIX, PLUGIN_MEMBER_OF
+
# Skip on older versions
pytestmark = pytest.mark.skipif(ds_is_older('1.3.6'), reason="Not
implemented")
diff --git a/dirsrvtests/tests/tickets/ticket49071_test.py
b/dirsrvtests/tests/tickets/ticket49071_test.py
index dfdb92b..905e6ff 100644
--- a/dirsrvtests/tests/tickets/ticket49071_test.py
+++ b/dirsrvtests/tests/tickets/ticket49071_test.py
@@ -2,6 +2,8 @@ import pytest
from lib389.utils import *
from lib389.topologies import topology_st as topo
+from lib389._constants import DEFAULT_SUFFIX, TASK_WAIT
+
DEBUGGING = os.getenv("DEBUGGING", default=False)
if DEBUGGING:
logging.getLogger(__name__).setLevel(logging.DEBUG)
diff --git a/dirsrvtests/tests/tickets/ticket49072_test.py
b/dirsrvtests/tests/tickets/ticket49072_test.py
index b3033a1..efa57f6 100644
--- a/dirsrvtests/tests/tickets/ticket49072_test.py
+++ b/dirsrvtests/tests/tickets/ticket49072_test.py
@@ -7,10 +7,14 @@
# --- END COPYRIGHT BLOCK ---
#
import pytest
+import subprocess
from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st as topo
+from lib389._constants import (DEFAULT_SUFFIX, PLUGIN_MEMBER_OF, DN_DM, PASSWORD,
SERVERID_STANDALONE,
+ SUFFIX)
+
logging.getLogger(__name__).setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
diff --git a/dirsrvtests/tests/tickets/ticket49073_test.py
b/dirsrvtests/tests/tickets/ticket49073_test.py
index d8ba082..c8f273c 100644
--- a/dirsrvtests/tests/tickets/ticket49073_test.py
+++ b/dirsrvtests/tests/tickets/ticket49073_test.py
@@ -3,6 +3,9 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_m2
+from lib389._constants import (PLUGIN_MEMBER_OF, DEFAULT_SUFFIX, SUFFIX, HOST_MASTER_2,
+ PORT_MASTER_2)
+
# Skip on older versions
pytestmark = pytest.mark.skipif(ds_is_older('1.3.6'), reason="Not
implemented")
diff --git a/dirsrvtests/tests/tickets/ticket49121_test.py
b/dirsrvtests/tests/tickets/ticket49121_test.py
index e754caa..74ec611 100644
--- a/dirsrvtests/tests/tickets/ticket49121_test.py
+++ b/dirsrvtests/tests/tickets/ticket49121_test.py
@@ -13,6 +13,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_m2
+from lib389._constants import DATA_DIR, DEFAULT_SUFFIX, VALGRIND_INVALID_STR
+
# Skip on older versions
pytestmark = pytest.mark.skipif(ds_is_older('1.3.6'), reason="Not
implemented")
diff --git a/dirsrvtests/tests/tickets/ticket548_test.py
b/dirsrvtests/tests/tickets/ticket548_test.py
index 6dd426e..d354cc8 100644
--- a/dirsrvtests/tests/tickets/ticket548_test.py
+++ b/dirsrvtests/tests/tickets/ticket548_test.py
@@ -11,6 +11,8 @@ from lib389.tasks import *
from lib389.utils import *
from lib389.topologies import topology_st
+from lib389._constants import DEFAULT_SUFFIX, DN_CONFIG, DN_DM, PASSWORD,
DEFAULT_SUFFIX_ESCAPED
+
# Skip on older versions
pytestmark = pytest.mark.skipif(ds_is_older('1.3.6'), reason="Not
implemented")
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.