| | |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | |
| | | |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Plugin uniqueness Tests |
| | | #@TestSuitePurpose Verify the plugin uniqueness |
| | | #@TestSuiteID Plugins |
| | | #@TestSuiteName Plugin uniqueness |
| | | #@TestSuitePurpose Validate the plugin uniqueness |
| | | #@TestSuiteID Plugins |
| | | #@TestSuiteGroup Plugins |
| | | #@TestGroup Plugins |
| | | #@TestScript plugins_uniqueness.xml |
| | | #@TestHTMLLink http://opends.dev.java.net/ |
| | | --> |
| | | |
| | | |
| | | |
| | | <!--- |
| | | #@TestMarker Plugin uniqueness |
| | | #@TestName Plugin uniqueness |
| | | #@TestIssue Setup |
| | | #@TestName Plugin uniqueness setup |
| | | #@TestPurpose Setup |
| | | #@TestPreamble none |
| | | #@TestStep Create the user entries used for the test |
| | | #@TestStep Create the user entries |
| | | #@TestStep the user entries contain the attributes mail and description |
| | | #@TestStep Enable the uniqueness plugin |
| | | #@TestPostamble none |
| | | #@TestResult The test is passed if the creation is done |
| | | --> |
| | |
| | | |
| | | <!--- |
| | | #@TestMarker Plugin uniqueness |
| | | #@TestName Plugin uniqueness |
| | | #@TestIssue Check the plugin uniqueness with the type uid |
| | | #@TestName Plugin uniqueness with the type uid |
| | | #@TestPurpose Check the plugin uniqueness matchs against the default attribute names uid |
| | | #@TestPreamble none |
| | | #@TestStep Keep the default configuration ( ie, type = uid ) |
| | | #@TestStep Check we can't add an entry with the same uid as the user entry reference |
| | | #@TestStep Keep the default type uid |
| | | #@TestStep Check we can't add an entry with the same uid as the user entry reference |
| | | #@TestPostamble none |
| | | #@TestResult The test is passed if the creation is refused |
| | | --> |
| | | |
| | | |
| | | <testcase name="getTestCaseName('Enabled with type defined to uid')"> |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Plugin uniqueness with the type uid')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message>'###### Add an entry with an uid already present in the DIT ###### '</message> |
| | | |
| | | <message>'###### Add an entry with an uid already present in the DIT ######'</message> |
| | | <message>'--- The creation must be refused to ensure the uniqueness of the attributes uid '</message> |
| | | <message>' '</message> |
| | | |
| | | <!-- Add an entry --> |
| | | <message>' '</message> |
| | | |
| | | <!-- Add an entry --> |
| | | <!--The uid testuser_uniqueness already exist in the DIT. the Add must be refused with the error 19 --> |
| | | |
| | | |
| | | <script> |
| | | listAttr = [] |
| | | listAttr.append('objectclass:top') |
| | |
| | | |
| | | <!--- |
| | | #@TestMarker Plugin uniqueness |
| | | #@TestName Plugin uniqueness |
| | | #@TestIssue Check the plugin uniqueness with the type mail |
| | | #@TestName Plugin uniqueness with the type mail |
| | | #@TestPurpose Check the plugin uniqueness matchs against the attribute names mail |
| | | #@TestPreamble none |
| | | #@TestStep set the type to mail |
| | | #@TestStep Change the type of the UID Unique Attribute to mail |
| | | #@TestStep Check we can't add an entry with the same mail as the user entry reference |
| | | #@TestPostamble none |
| | | #@TestResult The test is passed if the creation is refused |
| | | --> |
| | | |
| | | |
| | | <testcase name="getTestCaseName('Enabled with type defined to mail')"> |
| | | <testcase name="getTestCaseName('Plugin uniqueness with the type mail')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | |
| | | |
| | | <!--- |
| | | #@TestMarker Plugin uniqueness |
| | | #@TestName Plugin uniqueness |
| | | #@TestIssue Check the plugin uniqueness with several type |
| | | #@TestName Plugin uniqueness with several type |
| | | #@TestPurpose Check the plugin uniqueness with several types |
| | | #@TestPreamble none |
| | | #@TestStep set the type to mail and telephonenumber |
| | | #@TestStep Set the type of the UID Unique Attribute to mail and telephonenumber |
| | | #@TestStep Check we can't add an entry with the same mail as the user entry reference |
| | | #@TestStep Check we can't add an entry with the same telephonenumber as the user entry reference |
| | | #@TestPostamble none |
| | | #@TestResult The test is passed if the creation is refused |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('Enabled with type defined to mail and telephoneNumber')"> |
| | | <testcase name="getTestCaseName('Plugin uniqueness with several type')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | |
| | | |
| | | <!--- |
| | | #@TestMarker Plugin uniqueness |
| | | #@TestName Plugin uniqueness |
| | | #@TestIssue Check the plugin ensures the uniqueness of the attributes multi valued |
| | | #@TestName Plugin uniqueness with multi valued attributes |
| | | #@TestPurpose Check the plugin ensures the uniqueness of the attributes multi valued |
| | | #@TestPreamble none |
| | | #@TestStep set the type to telephoneNumber |
| | | #@TestStep Change the type of the UID Unique Attribute to telephoneNumber |
| | | #@TestStep Check we can't add an entry with the same telephoneNumber as the user entry reference |
| | | #@TestStep the attribute telephoneNumber is multi-valued |
| | | #@TestPostamble none |
| | |
| | | |
| | | <!--- |
| | | #@TestMarker Plugin uniqueness |
| | | #@TestName Plugin uniqueness |
| | | #@TestIssue Check the plugin uniqueness matchs the scope configured |
| | | #@TestName Plugin uniqueness with scope |
| | | #@TestPurpose Check the plugin uniqueness matchs the scope configured |
| | | #@TestPreamble none |
| | | #@TestStep set the type to description |
| | | #@TestStep set the base-dn |
| | | #@TestStep Set the type of the UID Unique Attribute to description |
| | | #@TestStep Set the base-dn of the plugin to dc=example,dc=com |
| | | #@TestStep Check we can't add an entry under the restricted scope |
| | | #@TestStep Check we can add an entry outside the restricted scope |
| | | #@TestPostamble none |
| | |
| | | |
| | | <!--- |
| | | #@TestMarker Plugin uniqueness |
| | | #@TestName Plugin uniqueness |
| | | #@TestIssue Disable the plugin uniqueness |
| | | #@TestName Disable Plugin uniqueness |
| | | #@TestPurpose Disable the plugin uniqueness |
| | | #@TestStep Disable the plugin uniqueness |
| | | #@TestStep Keep the default configuration ( ie, type = uid ) |
| | | #@TestStep Add an entry containing a uid value already present in the DIT |
| | |
| | | |
| | | <!--- |
| | | #@TestMarker Plugin uniqueness |
| | | #@TestName Plugin uniqueness |
| | | #@TestIssue Cleanup |
| | | #@TestName Plugin uniqueness cleanup |
| | | #@TestPurpose Cleanup |
| | | #@TestPreamble none |
| | | #@TestStep delete the user entries |
| | | #@TestPostamble none |