From 7d5bfb34d6193500b3c8c98fd63cd8f996e1c718 Mon Sep 17 00:00:00 2001 From: Amita Sharma Date: Thu, 24 Aug 2017 19:51:19 +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 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/dirsrvtests/tests/suites/clu/clu_test.py b/dirsrvtests/tests/suites/clu/clu_test.py index 4567a5d..cec1762 100644 --- a/dirsrvtests/tests/suites/clu/clu_test.py +++ b/dirsrvtests/tests/suites/clu/clu_test.py @@ -6,6 +6,7 @@ # See LICENSE for details. # --- END COPYRIGHT BLOCK --- # + import pytest from lib389.tasks import * from lib389.utils import * @@ -16,7 +17,22 @@ 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 +59,4 @@ if __name__ == '__main__': # -s for DEBUG mode CURRENT_FILE = os.path.realpath(__file__) pytest.main("-s %s" % CURRENT_FILE) + -- 2.9.4