From 943181d6ed88aa1046d1dc7e268a6f5f1ddc6acf Mon Sep 17 00:00:00 2001 From: Amita Sharma Date: Aug 24 2017 14:30:41 +0000 Subject: Issue 48059: Add docstrings to CLU tests Description: Refactor the CLU test suite docstrings https://pagure.io/389-ds-base/issue/48059 Reviewed by: Simon Pichugin Signed-off-by: Simon Pichugin --- 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) +