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

gary_williams
26.29.2008 3aedc75d1066565dcee7e3fa32be2971055417bd
fix plugin test suite dsconfig --set --add in same command
2 files modified
173 ■■■■■ changed files
opends/tests/staf-tests/functional-tests/testcases/plugins/plugins_refint.xml 88 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/functional-tests/testcases/plugins/plugins_uniqueness.xml 85 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/functional-tests/testcases/plugins/plugins_refint.xml
@@ -234,6 +234,17 @@
        'expectedRC'           : 0 } 
    </call> 
     
    <message>'######  Get the Referential Integrity Plugin ###### '</message>
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'get-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'Referential Integrity',
        'expectedRC'           : 0 }
    </call>
    <call function="'testCase_Postamble'"/>
  </sequence>
 </testcase>
@@ -361,6 +372,16 @@
        'expectedRC'         : 0 } 
    </call>     
        
    <message>'######  Get the Referential Integrity Plugin ###### '</message>
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'get-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'Referential Integrity',
        'expectedRC'           : 0 }
    </call>
    
    <call function="'testCase_Postamble'"/>
  </sequence>
@@ -463,6 +484,17 @@
        'expectedRC'           : 0 } 
    </call>     
    
    <message>'######  Get the Referential Integrity Plugin ###### '</message>
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'get-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'Referential Integrity',
        'expectedRC'           : 0 }
    </call>
    <!-- Delete an entry -->
    <message>'######  Delete an user entry###### '</message>
    <message>' '</message>
@@ -514,6 +546,17 @@
        'expectedRC'           : 0 } 
    </call>     
        
    <message>'######  Get the Referential Integrity Plugin ###### '</message>
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'get-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'Referential Integrity',
        'expectedRC'           : 0 }
    </call>
    <call function="'testCase_Postamble'"/>
  </sequence>
 </testcase>
@@ -554,6 +597,17 @@
        'expectedRC'           : 0 } 
    </call>     
    <message>'######  Get the Referential Integrity Plugin ###### '</message>
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'get-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'Referential Integrity',
        'expectedRC'           : 0 }
    </call>
    <!-- plugin-type attribute is not dynamic. Need to restart the server -->
    <call function="'StopDsWithScript'">
      { 'location'    : STAF_REMOTE_HOSTNAME,
@@ -623,6 +677,17 @@
        'expectedRC'           : 0 } 
    </call>     
        
    <message>'######  Get the Referential Integrity Plugin ###### '</message>
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'get-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'Referential Integrity',
        'expectedRC'           : 0 }
    </call>
    <call function="'testCase_Postamble'"/>
  </sequence>
 </testcase>
@@ -672,10 +737,31 @@
        'subcommand'           : 'set-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'Referential Integrity',
        'optionsString'        : '--set attribute-type:uniquemember --set attribute-type:member',
        'optionsString'        : '--set attribute-type:uniquemember',
        'expectedRC'           : 0 } 
    </call>     
    
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'set-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'Referential Integrity',
        'optionsString'        : '--add attribute-type:member',
        'expectedRC'           : 0 }
    </call>
    <message>'######  Get the Referential Integrity Plugin ###### '</message>
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'get-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'Referential Integrity',
        'expectedRC'           : 0 }
    </call>
   
    <!-- Delete an entry -->
    <message>'######  Delete an user entry###### '</message>
opends/tests/staf-tests/functional-tests/testcases/plugins/plugins_uniqueness.xml
@@ -122,6 +122,17 @@
        'expectedRC'           : 0 } 
    </call> 
    
    <message>'######  Get the UID Unique Attributes ###### '</message>
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'get-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'UID Unique Attribute',
        'expectedRC'           : 0 }
    </call>
    <call function="'testCase_Postamble'"/>
  </sequence>
 </testcase>
@@ -207,6 +218,16 @@
        'expectedRC'             : 0 } 
    </call>         
    <message>'######  Get the UID Unique Attributes ###### '</message>
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'get-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'UID Unique Attribute',
        'expectedRC'           : 0 }
    </call>
     
    <message>'######  Add an entry containing a mail already present in the DIT ###### '</message>
    <!-- Add an entry --> 
@@ -268,10 +289,31 @@
        'subcommand'           : 'set-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'UID Unique Attribute',
        'optionsString'        : '--set type:mail --set type:telephoneNumber',
        'optionsString'        : '--set type:mail',
        'expectedRC'           : 0 } 
    </call>         
                
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'set-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'UID Unique Attribute',
        'optionsString'        : '--add type:telephoneNumber',
        'expectedRC'           : 0 }
    </call>
    <message>'######  Get the UID Unique Attributes ###### '</message>
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'get-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'UID Unique Attribute',
        'expectedRC'           : 0 }
    </call>
     
    <message>'######  Add an entry containing a mail already present in the DIT ###### '</message>
    <!-- Add an entry --> 
@@ -406,6 +448,16 @@
        'expectedRC'           : 0 } 
    </call>         
    <message>'######  Get the UID Unique Attributes ###### '</message>
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'get-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'UID Unique Attribute',
        'expectedRC'           : 0 }
    </call>
    <message>'######  Add an entry containing a telephoneNumber already present in the DIT ###### '</message>
    <!-- Add an entry --> 
@@ -514,6 +566,16 @@
        'expectedRC'           : 0 } 
    </call>         
                
    <message>'######  Get the UID Unique Attributes ###### '</message>
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'get-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'UID Unique Attribute',
        'expectedRC'           : 0 }
    </call>
    <message>'######  Add an entry under dc=example,%s ###### ' % DIRECTORY_INSTANCE_SFX</message>
    <!-- Add an entry --> 
@@ -648,6 +710,17 @@
        'expectedRC'           : 0 } 
    </call> 
    <message>'######  Get the UID Unique Attributes ###### '</message>
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'get-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'UID Unique Attribute',
        'expectedRC'           : 0 }
    </call>
    <message>'######  Add an entry ###### '</message>
    <message>'-- The creation must be  accepted '</message>
    <!-- Add an entry --> 
@@ -734,6 +807,16 @@
        'expectedRC'           : 0 } 
    </call> 
  
    <message>'######  Get the UID Unique Attributes ###### '</message>
    <call function="'dsconfig'">
      { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
        'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
        'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
        'subcommand'           : 'get-plugin-prop' ,
        'objectType'           : 'plugin-name' ,
        'objectName'           : 'UID Unique Attribute',
        'expectedRC'           : 0 }
    </call>
        
    <call function="'testCase_Postamble'"/>
  </sequence>