mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

smaguin
04.46.2008 ac53bcc9741319357b488f90b8ec5062738a3321
opends/tests/functional-tests/testcases/plugins/plugins_uniqueness.xml
@@ -35,24 +35,26 @@
      </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
-->  
@@ -129,27 +131,26 @@
                                        
<!---
#@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')
@@ -179,17 +180,17 @@
       
<!---
#@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'"/>
@@ -244,17 +245,17 @@
              
<!---
#@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'"/>
    
@@ -379,10 +380,10 @@
            
<!---
#@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
@@ -488,11 +489,11 @@
<!---
#@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
@@ -625,8 +626,8 @@
 
<!---
#@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
@@ -702,8 +703,8 @@
                                                                                                                                                         
<!---
#@TestMarker         Plugin uniqueness
#@TestName           Plugin uniqueness
#@TestIssue          Cleanup
#@TestName           Plugin uniqueness cleanup
#@TestPurpose        Cleanup
#@TestPreamble       none
#@TestStep           delete the user entries 
#@TestPostamble      none