From af546bcc6057331b78560dd21ecbb7bcfe7bf4bb Mon Sep 17 00:00:00 2001
From: maudj <maudj@localhost>
Date: Mon, 07 Apr 2008 14:00:55 +0000
Subject: [PATCH] add tags for test spec docs
---
opends/tests/functional-tests/testcases/security/pwd_policy/security_setup_pwd_policy.xml | 22 +++++++
opends/tests/functional-tests/testcases/security/pwd_policy/security_pwd_policy.xml | 7 ++
opends/tests/functional-tests/testcases/security/pwd_policy/security_user_pwd_policy.xml | 115 +++++++++++++++++++++++++++++++++----
3 files changed, 129 insertions(+), 15 deletions(-)
diff --git a/opends/tests/functional-tests/testcases/security/pwd_policy/security_pwd_policy.xml b/opends/tests/functional-tests/testcases/security/pwd_policy/security_pwd_policy.xml
index b2734e3..76c8ce2 100755
--- a/opends/tests/functional-tests/testcases/security/pwd_policy/security_pwd_policy.xml
+++ b/opends/tests/functional-tests/testcases/security/pwd_policy/security_pwd_policy.xml
@@ -42,6 +42,13 @@
CurrentTestPath['group']='security'
CurrentTestPath['suite']=STAXCurrentBlock
</script>
+
+ <!---
+ Place group-specific test information here.
+ #@TestGroupName Security
+ #@TestGroupPurpose To test the security functionality.
+ #@TestSubgroupName Password Policy
+ -->
<call function="'testSuite_Preamble'"/>
diff --git a/opends/tests/functional-tests/testcases/security/pwd_policy/security_setup_pwd_policy.xml b/opends/tests/functional-tests/testcases/security/pwd_policy/security_setup_pwd_policy.xml
index 2044750..224b0e4 100755
--- a/opends/tests/functional-tests/testcases/security/pwd_policy/security_setup_pwd_policy.xml
+++ b/opends/tests/functional-tests/testcases/security/pwd_policy/security_setup_pwd_policy.xml
@@ -33,7 +33,27 @@
<sequence>
- <!--- Test Case : Add Entries for Password Policy Tests -->
+
+ <!--- Test Suite information
+ #@TestSuiteName setup Password Policy
+ #@TestSuitePurpose Setup for the Password Policy test suite.
+ #@TestSuiteGroup setup Password Policy
+ #@TestScript security_setup_pwd_policy.xml
+ -->
+
+
+ <!--- Test Case information
+ #@TestMarker setup Password Policy
+ #@TestName setup: Add Initials Entries
+ #@TestIssue none
+ #@TestPurpose Add the initial entries necessary to the
+ test suite.
+ #@TestPreamble none
+ #@TestStep Add pwd_policy_startup.ldif.
+ #@TestPostamble none
+ #@TestResult Success if addEntry returns 0.
+ -->
+
<testcase name="getTestCaseName('Add Initial Entries')">
<sequence>
<call function="'testCase_Preamble'"/>
diff --git a/opends/tests/functional-tests/testcases/security/pwd_policy/security_user_pwd_policy.xml b/opends/tests/functional-tests/testcases/security/pwd_policy/security_user_pwd_policy.xml
index 2797679..29a489f 100755
--- a/opends/tests/functional-tests/testcases/security/pwd_policy/security_user_pwd_policy.xml
+++ b/opends/tests/functional-tests/testcases/security/pwd_policy/security_user_pwd_policy.xml
@@ -32,12 +32,33 @@
<function name="user_pwd_policy">
<sequence>
-
+
+ <!--- Test Suite information
+ #@TestSuiteName User Password Policy
+ #@TestSuitePurpose User Password Policy
+ #@TestSuiteGroup User Password Policy
+ #@TestScript security_user_pwd_policy.xml
+ -->
+
+
+ <!--- Test Case information
+ #@TestMarker User Password Policy
+ #@TestName Check ds-cfg-allow-user-password-changes
+ #@TestIssue none
+ #@TestPurpose Checking existence of
+ ds-cfg-allow-user-password-changes behavior tests
+ #@TestPreamble none
+ #@TestStep Check ds-cfg-allow-user-password-changes
+ #@TestStep Check the output of the command.
+ #@TestPostamble none
+ #@TestResult Success if compareEntry returns 0 and the
+ output is correct.
+ -->
<testcase name="getTestCaseName('Preamble')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
- 'Security: Pwd Policy: Checking existence of ds-cfg-allow-user-password-changes'
+ 'Security: Pwd Policy: Check of ds-cfg-allow-user-password-changes'
</message>
<call function="'compareEntry'">
@@ -54,7 +75,19 @@
</sequence>
</testcase>
- <!--- Test Case : User Search With Password -->
+
+ <!--- Test Case information
+ #@TestMarker User Password Policy
+ #@TestName Check User Search With Password
+ #@TestIssue none
+ #@TestPurpose Check User Search With Password
+ #@TestPreamble none
+ #@TestStep Check User Search With Password
+ #@TestStep Check the output of the command.
+ #@TestPostamble none
+ #@TestResult Success if SearchObject returns 0
+ -->
+
<testcase name="getTestCaseName('User Search')">
<sequence>
<call function="'testCase_Preamble'"/>
@@ -77,7 +110,16 @@
</sequence>
</testcase>
- <!--- Test Case : User Search With Bad Password -->
+ <!--- Test Case information
+ #@TestMarker User Password Policy
+ #@TestName Check User Search With Bad Password
+ #@TestIssue none
+ #@TestPurpose Check User Search With Bad Password
+ #@TestPreamble none
+ #@TestStep Check User Search With Bad Password
+ #@TestPostamble none
+ #@TestResult Success if SearchObject returns 49
+ -->
<testcase name="getTestCaseName('User Search With Bad Password')">
<sequence>
<call function="'testCase_Preamble'"/>
@@ -101,7 +143,16 @@
</sequence>
</testcase>
- <!--- Test Case : User Change Password With Bad Credentials -->
+ <!--- Test Case information
+ #@TestMarker User Password Policy
+ #@TestName User With Bad Credentials Change Password
+ #@TestIssue none
+ #@TestPurpose Check User Search With Bad Credentials
+ #@TestPreamble none
+ #@TestStep Check User Search With Bad Credentials
+ #@TestPostamble none
+ #@TestResult Success if modifyAnAttribute returns 49
+ -->
<testcase name="getTestCaseName('User With Bad Credentials Change Password')">
<sequence>
<call function="'testCase_Preamble'"/>
@@ -126,12 +177,23 @@
</sequence>
</testcase>
- <!--- Test Case : User Change Password -->
+ <!--- Test Case information
+ #@TestMarker User Password Policy
+ #@TestName User Change Password
+ #@TestIssue none
+ #@TestPurpose User Change Password
+ #@TestPreamble none
+ #@TestStep Step 1 User Change Password
+ #@TestStep Step 2 User Searching With Old Password
+ #@TestStep Step 3 User Searching With New Password
+ #@TestPostamble none
+ #@TestResult Success if SearchObject returns 0
+ -->
<testcase name="getTestCaseName('User Change Password')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
- 'Security: Pwd Policy: User Changing Password'
+ 'Security: Pwd Policy: Step 1 User Changing Password'
</message>
<call function="'modifyAnAttribute'">
@@ -146,7 +208,7 @@
</call>
<message>
- 'Security: Pwd Policy: User Searching With Old Password'
+ 'Security: Pwd Policy: Step 2 User Searching With Old Password'
</message>
<call function="'SearchObject'">
@@ -161,7 +223,7 @@
</call>
<message>
- 'Security: Pwd Policy: User Searching With New Password'
+ 'Security: Pwd Policy: Step 3 User Searching With New Password'
</message>
<call function="'SearchObject'">
@@ -179,12 +241,24 @@
</sequence>
</testcase>
- <!--- Test Case : Admin Change Password Policy -->
+ <!--- Test Case information
+ #@TestMarker User Password Policy
+ #@TestName Admin Change Password Policy
+ #@TestIssue none
+ #@TestPurpose Admin Change Password Policy
+ #@TestPreamble none
+ #@TestStep Step 1 Modify the Password Policy by setting
+ allow-user-password-changes to false
+ #@TestStep Step 2 User resetting password should fail (49)
+ #@TestPostamble none
+ #@TestResult Success if modifyAnAttribute returns 49
+ -->
+
<testcase name="getTestCaseName('Admin Change Password Policy')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
- 'Security: Pwd Policy: Admin Changing Password Policy'
+ 'Security: Pwd Policy: Step 1 Admin Changing Password Policy'
</message>
<call function="'modifyPwdPolicy'">
@@ -198,7 +272,7 @@
</call>
<message>
- 'Security: Pwd Policy: User Resetting Password'
+ 'Security: Pwd Policy: Step 2 User Resetting Password'
</message>
<call function="'modifyAnAttribute'">
@@ -218,7 +292,20 @@
</sequence>
</testcase>
- <!--- Test Case : Admin Reset Password Policy -->
+ <!--- Test Case information
+ #@TestMarker User Password Policy
+ #@TestName Admin Reset Password Policy
+ #@TestIssue none
+ #@TestPurpose Admin Reset Password Policy
+ #@TestPreamble none
+ #@TestStep Step 1 - Admin Resetting Password Policy
+ set allow-user-password-changes to true
+ #@TestStep Step 2 - User Resetting Password
+ #@TestStep Step 3 - User Searching With Old Password
+ #@TestStep Step 4 - User Searching With New Password
+ #@TestPostamble none
+ #@TestResult Success if SearchObject returns 0.
+ -->
<testcase name="getTestCaseName('Postamble')">
<sequence>
<call function="'testCase_Preamble'"/>
@@ -285,7 +372,7 @@
</sequence>
</testcase>
- </sequence>
+ </sequence>
</function>
--
Gitblit v1.10.0