From a7cbe2984bac6b15508ce754a9770937dae28b39 Mon Sep 17 00:00:00 2001 From: Amita Sharma Date: Thu, 24 Aug 2017 15:22:09 +0530 Subject: [PATCH] Issue 48059: Add docstrings to CLU tests Description: Refactor the CLU test suite docstrings Reviewed by: Simon Pichugin --- dirsrvtests/tests/suites/clu/clu_test.py | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/dirsrvtests/tests/suites/clu/clu_test.py b/dirsrvtests/tests/suites/clu/clu_test.py index 4567a5d..bbbf539 100644 --- a/dirsrvtests/tests/suites/clu/clu_test.py +++ b/dirsrvtests/tests/suites/clu/clu_test.py @@ -6,17 +6,31 @@ # See LICENSE for details. # --- END COPYRIGHT BLOCK --- # + import pytest -from lib389.tasks import * from lib389.utils import * -from lib389.topologies import topology_st logging.getLogger(__name__).setLevel(logging.DEBUG) log = logging.getLogger(__name__) def test_clu_pwdhash(topology_st): - """Test the pwdhash script""" + """Test the pwdhash script output and encrypted password length + + :id: faaafd01-6748-4451-9d2b-f3bd47902447 + + :setup: Standalone instance + + :steps: + 1. Execute /usr/bin/pwdhash -s ssha testpassword command from command line + 2. Check if there is any output + 3. Check the length of the generated output + + :expectedresults: + 1. Execution should PASS + 2. There should be an output from the command + 3. Output length should not be less than 20 + """ log.info('Running test_clu_pwdhash...') @@ -43,3 +57,4 @@ if __name__ == '__main__': # -s for DEBUG mode CURRENT_FILE = os.path.realpath(__file__) pytest.main("-s %s" % CURRENT_FILE) + -- 2.9.4