From 0a5e39fb965447e83469f1408a46ca64b6954366 Mon Sep 17 00:00:00 2001 From: Akshay Adhikari Date: Apr 04 2018 13:16:44 +0000 Subject: Issue 49585 - Add py3 support to password test suite : part-3 Description: Added code to handle the value 'DEFAULT' in passwordStorageScheme for older version of DS. https://pagure.io/389-ds-base/issue/49585 Reviewed by: vashirov --- diff --git a/dirsrvtests/tests/suites/password/pwd_algo_test.py b/dirsrvtests/tests/suites/password/pwd_algo_test.py index 6b466df..e521727 100644 --- a/dirsrvtests/tests/suites/password/pwd_algo_test.py +++ b/dirsrvtests/tests/suites/password/pwd_algo_test.py @@ -11,7 +11,6 @@ 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 - from lib389.idm.user import UserAccounts logging.getLogger(__name__).setLevel(logging.INFO) @@ -74,6 +73,9 @@ def test_pwd_algo_test(topology_st, algo): """Assert that all of our password algorithms correctly PASS and FAIL varying password conditions. """ + if algo == 'DEFAULT': + if ds_is_older('1.4.0'): + pytest.skip("Not implemented") _test_algo(topology_st.standalone, algo) log.info('Test %s PASSED' % algo)