opendj-sdk/opends/tests/functional-tests/shared/functions/dsconfig.xml
@@ -27,13 +27,11 @@ ! --> <stax> <function name="_dsconfigCommonArgs"> <function-prolog> This function resolves common dsconfig arguments </function-prolog> <function-no-args/> <script> if dsInstanceHost: STAFCmdParamsList.append('-h %s' % dsInstanceHost) @@ -47,7 +45,6 @@ if dsInstancePswd: STAFCmdParamsList.append('-w "%s"' % dsInstancePswd) </script> </function> @@ -57,7 +54,9 @@ This function modifies a property value using dsconfig </function-prolog> <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="location" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> @@ -71,13 +70,12 @@ <function-arg-property name="type" value="filepath"/> </function-arg-def> <function-arg-def name="dsInstanceHost" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="dsInstanceHost" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> <function-arg-property name="type" value="hostname"/> </function-arg-def> <function-arg-def name="dsInstancePort" type="required"> <function-arg-description> Directory server port number @@ -147,7 +145,6 @@ </function-arg-description> <function-arg-property name="type" value="string"/> </function-arg-def> </function-map-args> <sequence> @@ -167,45 +164,31 @@ if modifyType == 'reset': STAFCmdParamsList.append('--%s %s' % (modifyType,attributeName)) else: STAFCmdParamsList.append('--%s "%s:%s"' % (modifyType,attributeName,attributeValue)) </script> <call function="'_dsconfigCommonArgs'"/> <script> STAFCmdParams=' '.join(STAFCmdParamsList) </script> <message> '%s %s' % (STAFCmd, STAFCmdParams) </message> <process name="'Modify dsconfig object'"> <location>'%s' % location</location> <command>'%s' % STAFCmd</command> <parms>'%s' % STAFCmdParams</parms> <workdir>'%s' % dsBinPath</workdir> <envs> ['PATH=/bin:/usr/bin:%s' % dsBinPath] </envs> <console use="'same'"/> <stderr mode="'stdout'"/> <returnstdout/> </process> <call function="'runCommand'"> { 'name' : 'Modify dsconfig object', 'location' : location, 'command' : STAFCmd, 'arguments' : STAFCmdParams } </call> <script> STAXCode=RC STAXReason=STAXResult </script> <return> STAXReason </return> </sequence> </function> @@ -215,21 +198,27 @@ This function get a property value using dsconfig </function-prolog> <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="location" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> <function-arg-property name="type" value="hostname"/> </function-arg-def> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-description> Pathname to installation root </function-arg-description> <function-arg-property name="type" value="filepath"/> </function-arg-def> <function-arg-def name="dsInstanceHost" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="dsInstanceHost" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> @@ -240,7 +229,7 @@ <function-arg-description> Directory server port number </function-arg-description> <function-arg-property name="type" value="Port number"/> <function-arg-property name="type" value="integer" /> </function-arg-def> <function-arg-def name="dsInstanceDn" type="required"> @@ -305,10 +294,8 @@ </function-arg-description> <function-arg-property name="type" value="string"/> </function-arg-def> </function-map-args> <sequence> <!-- Local variables --> <script> mylocation=location @@ -325,11 +312,10 @@ STAFCmdParamsList.append('--property "%s"' % (attributeName)) if extraParams: STAFCmdParamsList.append('%s' % extraParams) STAFCmdParamsList.append(extraParams) </script> <call function="'_dsconfigCommonArgs'"/> <script> STAFCmdParams=' '.join(STAFCmdParamsList) </script> @@ -337,50 +323,39 @@ <message> '%s %s' % (STAFCmd, STAFCmdParams) </message> <process name="'Get dsconfig object'"> <location>'%s' % location</location> <command>'%s' % STAFCmd</command> <parms>'%s' % STAFCmdParams</parms> <workdir>'%s' % dsBinPath</workdir> <envs> ['PATH=/bin:/usr/bin:%s' % dsBinPath] </envs> <console use="'same'"/> <stderr mode="'stdout'"/> <returnstdout/> </process> <call function="'runCommand'" > { 'name' : 'Get dsconfig object', 'location' : location, 'command' : STAFCmd, 'arguments' : STAFCmdParams } </call> <script> STAXCode=RC STAXReason=STAXResult[0][1] </script> <sequence> <if expr="expectedAttributeValue == 'none'"> <call function="'checktestRC'"> { 'returncode' : STAXCode , 'result' : STAXReason, 'expected' : expectedRC } 'expected' : expectedRC } </call> <else> <call function="'checktestString'"> { 'expectedString' : expectedAttributeValue , 'returnString' : STAXReason} 'returnString' : STAXReason } </call> </else> </if> </sequence> <return> STAXReason </return> </sequence> </function> <!-- generic wrapper on dsconfig --> <!-- can be used to list, get or set a list of attribues --> @@ -389,21 +364,25 @@ This function lists, get or set a list of attributes using dsconfig </function-prolog> <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="location" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> <function-arg-property name="type" value="hostname"/> </function-arg-def> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-description> Pathname to installation root </function-arg-description> <function-arg-property name="type" value="filepath"/> </function-arg-def> <function-arg-def name="dsInstanceHost" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="dsInstanceHost" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> @@ -465,10 +444,8 @@ </function-arg-description> <function-arg-property name="type" value="string"/> </function-arg-def> </function-map-args> <sequence> <!-- Local variables --> <script> mylocation=location @@ -480,53 +457,37 @@ STAFCmd='%s/%s%s' % (dsBinPath,DSCONFIG,fileExt) STAFCmdParamsList=[] STAFCmdParamsList.append('%s' % (subcommand)) STAFCmdParamsList.append(subcommand) if objectType: STAFCmdParamsList.append('--%s "%s" ' % (objectType,objectName)) if optionsString: STAFCmdParamsList.append(' %s' % (optionsString)) STAFCmdParamsList.append(' %s' % optionsString) </script> <call function="'_dsconfigCommonArgs'"/> <script> STAFCmdParams=' '.join(STAFCmdParamsList) </script> <message> '%s %s' % (STAFCmd, STAFCmdParams) </message> <process name="'execute dsconfig subcommand'"> <location>'%s' % location</location> <command>'%s' % STAFCmd</command> <parms>'%s' % STAFCmdParams</parms> <workdir>'%s' % dsBinPath</workdir> <envs> ['PATH=/bin:/usr/bin:%s' % dsBinPath] </envs> <console use="'same'"/> <stderr mode="'stdout'"/> <returnstdout/> </process> <call function="'runCommand'"> { 'name' : 'execute dsconfig subcommand', 'location' : location, 'command' : STAFCmd, 'arguments' : STAFCmdParams } </call> <script> STAXCode=RC STAXReason=STAXResult </script> <call function="'checktestRC'"> { 'returncode' : STAXCode , 'result' : STAXReason, 'expected' : expectedRC } 'expected' : expectedRC } </call> <return> STAXReason </return> </sequence> </function> <!-- Modify password policy using dsconfig --> @@ -535,21 +496,27 @@ This function modifies a password policy using dsconfig </function-prolog> <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="location" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> <function-arg-property name="type" value="hostname"/> </function-arg-def> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-description> Pathname to installation root </function-arg-description> <function-arg-property name="type" value="filepath"/> </function-arg-def> <function-arg-def name="dsInstanceHost" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="dsInstanceHost" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> @@ -611,61 +578,64 @@ </function-arg-description> <function-arg-property name="type" value="string"/> </function-arg-def> </function-map-args> <sequence> <call function="'dsconfigSet'"> { 'location' : '%s' % location , 'dsPath' : '%s' % dsPath , 'dsInstanceHost' : '%s' % dsInstanceHost , 'dsInstancePort' : '%s' % dsInstancePort , 'dsInstanceDn' : '%s' % dsInstanceDn , 'dsInstancePswd' : '%s' % dsInstancePswd , { 'location' : location, 'dsPath' : dsPath, 'dsInstanceHost' : dsInstanceHost, 'dsInstancePort' : dsInstancePort, 'dsInstanceDn' : dsInstanceDn, 'dsInstancePswd' : dsInstancePswd, 'objectName' : 'password-policy' , 'propertyType' : 'policy' , 'propertyName' : '%s' % (propertyName) , 'attributeName' : '%s' % (attributeName) , 'attributeValue' : '%s' % (attributeValue) , 'modifyType' : '%s' % (modifyType) , 'expectedRC' : expectedRC } 'propertyName' : propertyName, 'attributeName' : attributeName, 'attributeValue' : attributeValue, 'modifyType' : modifyType, 'expectedRC' : expectedRC } </call> <call function="'checktestRC'"> { 'returncode' : STAXCode , 'result' : STAXReason , 'expected' : expectedRC } 'expected' : expectedRC } </call> <return> STAXReason </return> </sequence> </function> <!-- Modify password validator using dsconfig --> <function name="modifyPwdValidator"> <function-prolog> This function modifies a password validator using dsconfig </function-prolog> <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="location" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> <function-arg-property name="type" value="hostname"/> </function-arg-def> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-description> Pathname to installation root </function-arg-description> <function-arg-property name="type" value="filepath"/> </function-arg-def> <function-arg-def name="dsInstanceHost" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="dsInstanceHost" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> @@ -727,61 +697,64 @@ </function-arg-description> <function-arg-property name="type" value="string"/> </function-arg-def> </function-map-args> <sequence> <call function="'dsconfigSet'"> { 'location' : '%s' % location , 'dsPath' : '%s' % dsPath , 'dsInstanceHost' : '%s' % dsInstanceHost , 'dsInstancePort' : '%s' % dsInstancePort , 'dsInstanceDn' : '%s' % dsInstanceDn , 'dsInstancePswd' : '%s' % dsInstancePswd , { 'location' : location, 'dsPath' : dsPath, 'dsInstanceHost' : dsInstanceHost, 'dsInstancePort' : dsInstancePort, 'dsInstanceDn' : dsInstanceDn, 'dsInstancePswd' : dsInstancePswd, 'objectName' : 'password-validator' , 'propertyType' : 'validator' , 'propertyName' : '%s' % (propertyName) , 'attributeName' : '%s' % (attributeName) , 'attributeValue' : '%s' % (attributeValue) , 'modifyType' : '%s' % (modifyType) , 'expectedRC' : expectedRC } 'propertyName' : propertyName, 'attributeName' : attributeName, 'attributeValue' : attributeValue, 'modifyType' : modifyType, 'expectedRC' : expectedRC } </call> <call function="'checktestRC'"> { 'returncode' : STAXCode , 'result' : STAXReason , 'expected' : expectedRC } 'expected' : expectedRC } </call> <return> STAXReason </return> </sequence> </function> <!-- Modify password policy using dsconfig --> <function name="modifyGlobal"> <function-prolog> This function modifies a global attribute value using dsconfig </function-prolog> <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="location" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> <function-arg-property name="type" value="hostname"/> </function-arg-def> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-description> Pathname to installation root </function-arg-description> <function-arg-property name="type" value="filepath"/> </function-arg-def> <function-arg-def name="dsInstanceHost" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="dsInstanceHost" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> @@ -792,7 +765,7 @@ <function-arg-description> Directory server port number </function-arg-description> <function-arg-property name="type" value="Port number"/> <function-arg-property name="type" value="integer" /> </function-arg-def> <function-arg-def name="dsInstanceDn" type="required"> @@ -829,10 +802,8 @@ </function-arg-description> <function-arg-property name="type" value="string"/> </function-arg-def> </function-map-args> <sequence> <!-- Local variables --> <script> mylocation=location @@ -850,30 +821,17 @@ STAFCmdParamsList.append('set-global-configuration-prop ') STAFCmdParamsList.append('--set "%s:%s"' % (attributeName,attributeValue)) </script> <call function="'_dsconfigCommonArgs'"/> <script> STAFCmdParams=' '.join(STAFCmdParamsList) </script> <message> '%s %s' % (STAFCmd, STAFCmdParams) </message> <process name="'Modify dsconfig object'"> <location>'%s' % location</location> <command>'%s' % STAFCmd</command> <parms>'%s' % STAFCmdParams</parms> <workdir>'%s' % dsBinPath</workdir> <envs> ['PATH=/bin:/usr/bin:%s' % dsBinPath] </envs> <console use="'same'"/> <stderr mode="'stdout'"/> <returnstdout/> </process> <call function="'runCommand'"> { 'name' : 'Modify dsconfig object', 'location' : location, 'command' : STAFCmd, 'arguments' : STAFCmdParams } </call> <script> STAXCode=RC STAXReason=STAXResult @@ -886,32 +844,37 @@ <return> STAXReason </return> </sequence> </function> <!-- Modify identity mapper using dsconfig --> <function name="modifyIdentityMapper"> <function-prolog> This function modifies an identity mapper using dsconfig </function-prolog> <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="location" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> <function-arg-property name="type" value="hostname"/> </function-arg-def> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-description> Pathname to installation root </function-arg-description> <function-arg-property name="type" value="filepath"/> </function-arg-def> <function-arg-def name="dsInstanceHost" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="dsInstanceHost" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> @@ -922,7 +885,7 @@ <function-arg-description> Directory server port number </function-arg-description> <function-arg-property name="type" value="Port number"/> <function-arg-property name="type" value="integer" /> </function-arg-def> <function-arg-def name="dsInstanceDn" type="required"> @@ -973,60 +936,64 @@ </function-arg-description> <function-arg-property name="type" value="string"/> </function-arg-def> </function-map-args> <sequence> <call function="'dsconfigSet'"> { 'location' : '%s' % location , 'dsPath' : '%s' % dsPath , 'dsInstanceHost' : '%s' % dsInstanceHost , 'dsInstancePort' : '%s' % dsInstancePort , 'dsInstanceDn' : '%s' % dsInstanceDn , 'dsInstancePswd' : '%s' % dsInstancePswd , { 'location' : location, 'dsPath' : dsPath, 'dsInstanceHost' : dsInstanceHost, 'dsInstancePort' : dsInstancePort, 'dsInstanceDn' : dsInstanceDn, 'dsInstancePswd' : dsInstancePswd, 'objectName' : 'identity-mapper' , 'propertyType' : 'mapper' , 'propertyName' : '%s' % (mapperName) , 'attributeName' : '%s' % (attributeName) , 'attributeValue' : '%s' % (attributeValue) , 'modifyType' : '%s' % (modifyType) , 'expectedRC' : expectedRC } 'propertyName' : mapperName, 'attributeName' : attributeName, 'attributeValue' : attributeValue, 'modifyType' : modifyType, 'expectedRC' : expectedRC } </call> <call function="'checktestRC'"> { 'returncode' : STAXCode , 'result' : STAXReason , 'expected' : expectedRC } 'expected' : expectedRC } </call> <return> STAXReason </return> </sequence> </function> <!-- Modify password policy using dsconfig --> <function name="modifyGlobalAci"> <function-prolog> This function modifies a global aci using dsconfig </function-prolog> <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="location" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> <function-arg-property name="type" value="hostname"/> </function-arg-def> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-description> Pathname to installation root </function-arg-description> <function-arg-property name="type" value="filepath"/> </function-arg-def> <function-arg-def name="dsInstanceHost" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="dsInstanceHost" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> @@ -1037,7 +1004,7 @@ <function-arg-description> Directory server port number </function-arg-description> <function-arg-property name="type" value="Port number"/> <function-arg-property name="type" value="integer" /> </function-arg-def> <function-arg-def name="dsInstanceDn" type="required"> @@ -1074,10 +1041,8 @@ </function-arg-description> <function-arg-property name="type" value="string"/> </function-arg-def> </function-map-args> <sequence> <script> mylocation=location STAFCmdParams='' @@ -1094,68 +1059,61 @@ STAFCmdParamsList.append('set-access-control-handler-prop ') STAFCmdParamsList.append('--%s "global-aci:%s"' % (opType,aciValue)) </script> <call function="'_dsconfigCommonArgs'"/> <script> STAFCmdParams=' '.join(STAFCmdParamsList) </script> <message> '%s %s' % (STAFCmd, STAFCmdParams) </message> <process name="'Modify dsconfig object'"> <location>'%s' % location</location> <command>'%s' % STAFCmd</command> <parms>'%s' % STAFCmdParams</parms> <workdir>'%s' % dsBinPath</workdir> <envs> ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] </envs> <console use="'same'"/> <stderr mode="'stdout'"/> <returnstdout/> </process> <call function="'runCommand'"> { 'name' : 'Modify dsconfig object', 'location' : location, 'command' : STAFCmd, 'arguments' : STAFCmdParams } </call> <script> STAXCode=RC STAXReason=STAXResult </script> <call function="'checktestRC'"> { 'returncode' : STAXCode , 'result' : STAXReason , 'expected' : expectedRC } 'expected' : expectedRC } </call> <return> STAXReason </return> </sequence> </function> <!-- Modify password policy using dsconfig --> <function name="modifySaslMech"> <function-prolog> This function modifies a sasl mechanism using dsconfig </function-prolog> <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="location" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> <function-arg-property name="type" value="hostname"/> </function-arg-def> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-description> Pathname to installation root </function-arg-description> <function-arg-property name="type" value="filepath"/> </function-arg-def> <function-arg-def name="dsInstanceHost" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="dsInstanceHost" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> @@ -1217,39 +1175,37 @@ </function-arg-description> <function-arg-property name="type" value="string"/> </function-arg-def> </function-map-args> <sequence> <call function="'dsconfigSet'"> { 'location' : '%s' % location , 'dsPath' : '%s' % dsPath , 'dsInstanceHost' : '%s' % dsInstanceHost , 'dsInstancePort' : '%s' % dsInstancePort , 'dsInstanceDn' : '%s' % dsInstanceDn , 'dsInstancePswd' : '%s' % dsInstancePswd , { 'location' : location, 'dsPath' : dsPath, 'dsInstanceHost' : dsInstanceHost, 'dsInstancePort' : dsInstancePort, 'dsInstanceDn' : dsInstanceDn, 'dsInstancePswd' : dsInstancePswd, 'objectName' : 'sasl-mechanism-handler' , 'propertyType' : 'handler' , 'propertyName' : '%s' % (handlerName) , 'attributeName' : '%s' % (propertyName) , 'attributeValue' : '%s' % (propertyValue) , 'modifyType' : '%s' % (modifyType) , 'expectedRC' : expectedRC } 'propertyName' : handlerName, 'attributeName' : propertyName, 'attributeValue' : propertyValue, 'modifyType' : modifyType, 'expectedRC' : expectedRC } </call> <call function="'checktestRC'"> { 'returncode' : STAXCode , 'result' : STAXReason , 'expected' : expectedRC } 'expected' : expectedRC } </call> <return> STAXReason </return> </sequence> </function> <function name="addIndex"> <function-prolog> This function eases adding JEB DB indexes @@ -1257,7 +1213,7 @@ <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> @@ -1275,7 +1231,7 @@ <function-arg-def name="host" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> @@ -1284,7 +1240,7 @@ <function-arg-def name="port" type="optional" default="'%s' % DIRECTORY_INSTANCE_PORT"> default="DIRECTORY_INSTANCE_PORT"> <function-arg-description> Directory server port number </function-arg-description> @@ -1293,7 +1249,7 @@ <function-arg-def name="rootDN" type="optional" default="'%s' % DIRECTORY_INSTANCE_DN"> default="DIRECTORY_INSTANCE_DN"> <function-arg-description> Bind DN </function-arg-description> @@ -1302,7 +1258,7 @@ <function-arg-def name="rootPwd" type="optional" default="'%s' % DIRECTORY_INSTANCE_PSWD"> default="DIRECTORY_INSTANCE_PSWD"> <function-arg-description> Bind password </function-arg-description> @@ -1310,7 +1266,7 @@ </function-arg-def> <function-arg-def name="backendID" default="'%s' % DIRECTORY_INSTANCE_BE" default="DIRECTORY_INSTANCE_BE" type="optional"> <function-arg-description> The Back-end ID on to which to add an index @@ -1352,28 +1308,15 @@ </script> <call function="'_dsconfigCommonArgs'"/> <message> 'Running [%s %s]' % (dsconfigCmd, dsconfigParams) </message> <process name="'dsconfig addIndex'"> <location>'%s' % location</location> <command>'%s' % dsconfigCmd</command> <parms>'%s' % dsconfigParams</parms> <workdir>'%s' % dsBinPath</workdir> <envs> ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] </envs> <console use="'same'"/> <stderr mode="'stdout'"/> <returnstdout/> </process> <message> '%s returned [%s] with [%s]' % (dsconfigCmd, RC,STAXResult) </message> <call function="'runCommand'"> { 'name' : 'dsconfig addIndex', 'location' : location, 'command' : dsconfigCmd, 'arguments' : dsconfigParams } </call> <return> RC, STAXResult STAXResult </return> </sequence> </function> @@ -1386,7 +1329,7 @@ <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> @@ -1404,7 +1347,7 @@ <function-arg-def name="host" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> @@ -1413,7 +1356,7 @@ <function-arg-def name="port" type="optional" default="'%s' % DIRECTORY_INSTANCE_PORT"> default="DIRECTORY_INSTANCE_PORT"> <function-arg-description> Directory server port number </function-arg-description> @@ -1422,7 +1365,7 @@ <function-arg-def name="rootDN" type="optional" default="'%s' % DIRECTORY_INSTANCE_DN"> default="DIRECTORY_INSTANCE_DN"> <function-arg-description> Bind DN </function-arg-description> @@ -1431,7 +1374,7 @@ <function-arg-def name="rootPwd" type="optional" default="'%s' % DIRECTORY_INSTANCE_PSWD"> default="DIRECTORY_INSTANCE_PSWD"> <function-arg-description> Bind password </function-arg-description> @@ -1439,7 +1382,7 @@ </function-arg-def> <function-arg-def name="backendID" default="'%s' % DIRECTORY_INSTANCE_BE" default="DIRECTORY_INSTANCE_BE" type="optional"> <function-arg-description> The Back-end ID on to which to add an index @@ -1494,27 +1437,16 @@ operationArguments = '%s:%s' % (indexProperty, indexPropertyValue) dsconfigParams = 'set-je-index-prop -h %s -p %s -D "%s" -w %s --backend-name %s --index-name %s --%s %s' % ( host, port, rootDN, rootPwd, backendID, indexAttribute, operation, operationArguments ) </script> <call function="'_dsconfigCommonArgs'"/> <message> '%s %s' % (dsconfigCmd, dsconfigParams) </message> <process name="'dsconfig modifyIndex'"> <location>'%s' % location</location> <command>'%s' % dsconfigCmd</command> <parms>'%s' % dsconfigParams</parms> <workdir>'%s' % dsBinPath</workdir> <envs> ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] </envs> <console use="'same'"/> <stderr mode="'stdout'"/> <returnstdout/> </process> <call function="'runCommand'"> { 'name' : 'dsconfig modifyIndex', 'location' : location, 'command' : dsconfigCmd, 'arguments' : dsconfigParams } </call> <return> STAXReason STAXResult </return> </sequence> </function> @@ -1527,7 +1459,7 @@ <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> @@ -1545,7 +1477,7 @@ <function-arg-def name="host" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> @@ -1554,7 +1486,7 @@ <function-arg-def name="port" type="optional" default="'%s' % DIRECTORY_INSTANCE_PORT"> default="DIRECTORY_INSTANCE_PORT"> <function-arg-description> Directory server port number </function-arg-description> @@ -1563,7 +1495,7 @@ <function-arg-def name="rootDN" type="optional" default="'%s' % DIRECTORY_INSTANCE_DN"> default="DIRECTORY_INSTANCE_DN"> <function-arg-description> Bind DN </function-arg-description> @@ -1572,7 +1504,7 @@ <function-arg-def name="rootPwd" type="optional" default="'%s' % DIRECTORY_INSTANCE_PSWD"> default="DIRECTORY_INSTANCE_PSWD"> <function-arg-description> Bind password </function-arg-description> @@ -1580,7 +1512,7 @@ </function-arg-def> <function-arg-def name="backendID" default="'%s' % DIRECTORY_INSTANCE_BE" default="DIRECTORY_INSTANCE_BE" type="optional"> <function-arg-description> The Back-end ID on to which to remove an index from @@ -1593,7 +1525,6 @@ </function-arg-description> <function-arg-property name="type" value="string"/> </function-arg-def> </function-map-args> <sequence> <!-- Local variables --> @@ -1604,30 +1535,16 @@ dsconfigCmd='%s/%s%s' % (dsBinPath,DSCONFIG,fileExt) dsconfigParams = 'delete-je-index -h %s -p %s -D "%s" -w %s --backend-name %s --index-name %s' % (host,port,rootDN,rootPwd,backendID, indexAttribute) </script> <call function="'_dsconfigCommonArgs'"/> <message> 'Running [%s %s]' % (dsconfigCmd, dsconfigParams) </message> <process name="'dsconfig removeIndex'"> <location>'%s' % location</location> <command>'%s' % dsconfigCmd</command> <parms>'%s' % dsconfigParams</parms> <workdir>'%s' % dsBinPath</workdir> <envs> ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] </envs> <console use="'same'"/> <stderr mode="'stdout'"/> <returnstdout/> </process> <message> '%s returned [%s] with [%s]' % (dsconfigCmd, RC,STAXResult) </message> <call function="'runCommand'"> { 'name' : 'dsconfig removeIndex', 'location' : location, 'command' : dsconfigCmd, 'arguments' : dsconfigParams } </call> <return> RC, STAXResult STAXResult </return> </sequence> </function> @@ -1639,21 +1556,27 @@ This function creates a synchronization provider using dsconfig </function-prolog> <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="location" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> <function-arg-property name="type" value="hostname"/> </function-arg-def> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-description> Pathname to installation root </function-arg-description> <function-arg-property name="type" value="filepath"/> </function-arg-def> <function-arg-def name="dsInstanceHost" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="dsInstanceHost" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> @@ -1681,14 +1604,18 @@ <function-arg-property name="type" value="string"/> </function-arg-def> <function-arg-def name="providerName" type="optional" default="MultimasterSync"> <function-arg-def name="providerName" type="optional" default="MultimasterSync"> <function-arg-description> Name for the synchronization provider </function-arg-description> <function-arg-property name="type" value="string"/> </function-arg-def> <function-arg-def name="providerType" type="optional" default="MultimasterType"> <function-arg-def name="providerType" type="optional" default="MultimasterType"> <function-arg-description> Synchronization provider type </function-arg-description> @@ -1701,10 +1628,8 @@ </function-arg-description> <function-arg-property name="type" value="string"/> </function-arg-def> </function-map-args> <sequence> <!-- Local variables --> <script> mylocation=location @@ -1715,37 +1640,23 @@ dsBinPath='%s/%s' % (dsPath,fileFolder) STAFCmd='%s/%s%s' % (dsBinPath,DSCONFIG,fileExt) STAFCmdParamsList=[] STAFCmdParamsList.append('create-synchronization-provider') STAFCmdParamsList.append('--provider-name "%s"' % providerName) STAFCmdParamsList.append('-t %s' % providerType) STAFCmdParamsList.append('--set "enabled:true"') </script> <call function="'_dsconfigCommonArgs'"/> <script> STAFCmdParams=' '.join(STAFCmdParamsList) </script> <message> '%s %s' % (STAFCmd, STAFCmdParams) </message> <process name="'Modify dsconfig object'"> <location>'%s' % location</location> <command>'%s' % STAFCmd</command> <parms>'%s' % STAFCmdParams</parms> <workdir>'%s' % dsBinPath</workdir> <envs> ['PATH=/bin:/usr/bin:%s' % dsBinPath] </envs> <console use="'same'"/> <stderr mode="'stdout'"/> <returnstdout/> </process> <call function="'runCommand'"> { 'name' : 'Modify dsconfig object', 'location' : location, 'command' : STAFCmd, 'arguments' : STAFCmdParams } </call> <script> STAXCode=RC STAXReason=STAXResult @@ -1753,41 +1664,43 @@ <call function="'checktestRC'"> { 'returncode' : STAXCode , 'result' : STAXReason , 'expected' : expectedRC } 'expected' : expectedRC } </call> <return> STAXReason </return> </sequence> </function> <!-- Create a replication server using dsconfig --> <function name="createReplicationServer"> <function-prolog> This function creates a replication server under a given synchronization provider using dsconfig </function-prolog> <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="location" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> <function-arg-property name="type" value="hostname"/> </function-arg-def> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-description> Pathname to installation root </function-arg-description> <function-arg-property name="type" value="filepath"/> </function-arg-def> <function-arg-def name="dsInstanceHost" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="dsInstanceHost" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> @@ -1815,7 +1728,9 @@ <function-arg-property name="type" value="string"/> </function-arg-def> <function-arg-def name="providerName" type="optional" default="MultimasterSync"> <function-arg-def name="providerName" type="optional" default="MultimasterSync"> <function-arg-description> Name for the synchronization provider </function-arg-description> @@ -1849,10 +1764,8 @@ </function-arg-description> <function-arg-property name="type" value="string"/> </function-arg-def> </function-map-args> <sequence> <!-- Local variables --> <script> mylocation=location @@ -1863,7 +1776,6 @@ dsBinPath='%s/%s' % (dsPath,fileFolder) STAFCmd='%s/%s%s' % (dsBinPath,DSCONFIG,fileExt) STAFCmdParamsList=[] STAFCmdParamsList.append('create-replication-server') STAFCmdParamsList.append('--provider-name "%s"' % providerName) @@ -1875,28 +1787,16 @@ </script> <call function="'_dsconfigCommonArgs'"/> <script> STAFCmdParams=' '.join(STAFCmdParamsList) </script> <message> '%s %s' % (STAFCmd, STAFCmdParams) </message> <process name="'Modify dsconfig object'"> <location>'%s' % location</location> <command>'%s' % STAFCmd</command> <parms>'%s' % STAFCmdParams</parms> <workdir>'%s' % dsBinPath</workdir> <envs> ['PATH=/bin:/usr/bin:%s' % dsBinPath] </envs> <console use="'same'"/> <stderr mode="'stdout'"/> <returnstdout/> </process> <call function="'runCommand'"> { 'name' : 'Modify dsconfig object', 'location' : location, 'command' : STAFCmd, 'arguments' : STAFCmdParams } </call> <script> STAXCode=RC STAXReason=STAXResult @@ -1904,39 +1804,43 @@ <call function="'checktestRC'"> { 'returncode' : STAXCode , 'result' : STAXReason , 'expected' : expectedRC } 'expected' : expectedRC } </call> <return> STAXReason </return> </sequence> </function> <!-- Create a multimaster domain using dsconfig --> <function name="createMultimasterDomain"> <function-prolog> This function creates a multimaster domain under a given synchronization provider using dsconfig </function-prolog> <function-map-args> <function-arg-def name="location" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="location" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Location of target host </function-arg-description> <function-arg-property name="type" value="hostname"/> </function-arg-def> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> <function-arg-description> Pathname to installation root </function-arg-description> <function-arg-property name="type" value="filepath"/> </function-arg-def> <function-arg-def name="dsInstanceHost" type="optional" default="'%s' % STAF_REMOTE_HOSTNAME"> <function-arg-def name="dsInstanceHost" type="optional" default="STAF_REMOTE_HOSTNAME"> <function-arg-description> Directory server hostname or IP address </function-arg-description> @@ -1964,7 +1868,9 @@ <function-arg-property name="type" value="string"/> </function-arg-def> <function-arg-def name="providerName" type="optional" default="MultimasterSync"> <function-arg-def name="providerName" type="optional" default="MultimasterSync"> <function-arg-description> Name for the synchronization provider </function-arg-description> @@ -2005,10 +1911,8 @@ </function-arg-description> <function-arg-property name="type" value="string"/> </function-arg-def> </function-map-args> <sequence> <!-- Local variables --> <script> mylocation=location @@ -2019,7 +1923,6 @@ dsBinPath='%s/%s' % (dsPath,fileFolder) STAFCmd='%s/%s%s' % (dsBinPath,DSCONFIG,fileExt) STAFCmdParamsList=[] STAFCmdParamsList.append('create-multimaster-domain') STAFCmdParamsList.append('--provider-name "%s"' % providerName) @@ -2030,30 +1933,17 @@ for replServer in replicationServerList : STAFCmdParamsList.append('--set "replication-server:%s"' % replServer) </script> <call function="'_dsconfigCommonArgs'"/> <script> STAFCmdParams=' '.join(STAFCmdParamsList) </script> <message> '%s %s' % (STAFCmd, STAFCmdParams) </message> <process name="'Modify dsconfig object'"> <location>'%s' % location</location> <command>'%s' % STAFCmd</command> <parms>'%s' % STAFCmdParams</parms> <workdir>'%s' % dsBinPath</workdir> <envs> ['PATH=/bin:/usr/bin:%s' % dsBinPath] </envs> <console use="'same'"/> <stderr mode="'stdout'"/> <returnstdout/> </process> <call function="'runCommand'"> { 'name' : 'Modify dsconfig object', 'location' : location, 'command' : STAFCmd, 'arguments' : STAFCmdParams } </call> <script> STAXCode=RC STAXReason=STAXResult @@ -2061,13 +1951,12 @@ <call function="'checktestRC'"> { 'returncode' : STAXCode , 'result' : STAXReason , 'expected' : expectedRC } 'expected' : expectedRC } </call> <return> STAXReason </return> </sequence> </function> </stax> opendj-sdk/opends/tests/functional-tests/shared/functions/utils.xml
@@ -532,8 +532,11 @@ self.start=start self.stop=stop tmp=fullname.split(":") if len(tmp) > 2: del tmp[0:2] self.name=''.join(tmp) else: self.name=fullname self.duration = 0 if failures == 0: if successes == 0: opendj-sdk/opends/tests/functional-tests/testcases/backends/backends.xml
@@ -26,65 +26,25 @@ ! Portions Copyright 2006-2007 Sun Microsystems, Inc. ! --> <stax> <defaultcall function="main_backends"/> <function name="main_backends"> <sequence> <block name="'backends'"> <sequence> <script> CurrentTestPath['group']='backends' </script> <call function="'testGroup_Preamble'"/> <iterate var="_test" in="['import','import-tasks','backup-tasks','backup','restore-tasks','restore','export-tasks','export']" > <sequence> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/backends/import.xml' % (TESTS_DIR)"/> <call function="'main_import'" /> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/backends/import-tasks.xml' % (TESTS_DIR)"/> <call function="'main_import-tasks'" /> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/backends/backup-tasks.xml' % (TESTS_DIR)"/> <call function="'main_backup-tasks'" /> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/backends/backup.xml' % (TESTS_DIR)"/> <call function="'main_backup'" /> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/backends/restore-tasks.xml' % (TESTS_DIR)"/> <call function="'main_restore-tasks'" /> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/backends/restore.xml' % (TESTS_DIR)"/> <call function="'main_restore'" /> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/backends/export-tasks.xml' % (TESTS_DIR)"/> <call function="'main_export-tasks'" /> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/backends/export.xml' % (TESTS_DIR)"/> <call function="'main_export'" /> file="'%s/testcases/backends/%s.xml' % (TESTS_DIR,_test)"/> <call function="'main_%s' % _test" /> </sequence> </iterate> <call function="'testGroup_Postamble'"/> </sequence> </block> </sequence> </function> </stax> opendj-sdk/opends/tests/functional-tests/testcases/backends/backup-tasks.xml
@@ -25,38 +25,24 @@ ! ! Portions Copyright 2007 Sun Microsystems, Inc. ! --> <stax> <defaultcall function="main_backup-tasks"/> <function name="main_backup-tasks"> <sequence> <block name="'backup-tasks'"> <sequence> <script> if not CurrentTestPath.has_key('group'): CurrentTestPath['group']='backends' CurrentTestPath['suite']=STAXCurrentBlock </script> <call function="'testSuite_Preamble'"/> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/backends/backend_setup.xml' % (TESTS_DIR)"/> <call function="'backend_setup'"> { 'loadBackend' : True } </call> <testcase name="'Backend: Backup Tasks 1'"> <testcase name="'Backend: Backup Tasks: Test 1'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend ExportTasks1: Backup the data in OpenDS by scheduling a task' @@ -70,33 +56,21 @@ 'backupDir' : '%s/backends/' % logsRemoteDataDir } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/backends/backend_cleanup.xml' % (TESTS_DIR)"/> <call function="'backend_cleanup'"/> <call function="'testSuite_Postamble'"/> </sequence> </block> </sequence> </function> </stax> opendj-sdk/opends/tests/functional-tests/testcases/backends/export-tasks.xml
@@ -25,27 +25,18 @@ ! ! Portions Copyright 2007 Sun Microsystems, Inc. ! --> <stax> <defaultcall function="main_export-tasks"/> <function name="main_export-tasks"> <sequence> <block name="'export-tasks'"> <sequence> <script> if not CurrentTestPath.has_key('group'): CurrentTestPath['group']='backends' CurrentTestPath['suite']=STAXCurrentBlock </script> <call function="'testSuite_Preamble'"/> <!--- Test Suite information #@TestSuiteName Backend Export Tasks Tests #@TestSuitePurpose Verify that the basic export task functionality is working in the Directory Server. @@ -55,16 +46,10 @@ #@TestScript export.xml #@TestHTMLLink http://opends.dev.java.net/ --> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/backends/backend_setup.xml' % (TESTS_DIR)"/> <call function="'backend_setup'"> { 'loadBackend' : True } </call> <sequence> <!--- Test Case information #@TestMarker Backend Export Tasks Tests #@TestName Export Tasks: Export Tasks 1 @@ -77,13 +62,8 @@ #@TestPostamble #@TestResult Success if OpenDS returns 0 --> <testcase name="'Backend: Export Tasks 1'"> <testcase name="'Backend: Export Tasks: Test 1'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend ExportTasks1: Export the data in OpenDS by scheduling a task' @@ -97,16 +77,13 @@ 'ldifFile' : '%s/backends/ExportTasks1.ldif' % logsRemoteDataDir } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -384,21 +361,12 @@ #@TestResult --> </sequence> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/backends/backend_cleanup.xml' % (TESTS_DIR)"/> <call function="'backend_cleanup'"/> <call function="'testSuite_Postamble'"/> </sequence> </block> </sequence> </function> </stax> opendj-sdk/opends/tests/functional-tests/testcases/backends/export.xml
@@ -27,25 +27,17 @@ ! --> <stax> <defaultcall function="main_export"/> <function name="main_export"> <sequence> <block name="'export'"> <sequence> <script> if not CurrentTestPath.has_key('group'): CurrentTestPath['group']='backends' CurrentTestPath['suite']=STAXCurrentBlock </script> <call function="'testSuite_Preamble'"/> <!--- Test Suite information #@TestSuiteName Backend: Export: Export Tests #@TestSuitePurpose Verify that the export functionality is working in the Directory Server. @@ -55,17 +47,14 @@ #@TestScript export.xml #@TestHTMLLink http://opends.dev.java.net/ --> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/backends/backend_setup.xml' % (TESTS_DIR)"/> <call function="'backend_setup'"> { 'startDS' : False, 'loadBackend' : True } 'loadBackend' : True } </call> <!-- Create a second instance to import data that was exported from the first instance --> <message> 'Creating another instance for verifing the exports' @@ -84,14 +73,15 @@ 'dsSslPort' : DsInstanceSSLPort, 'dsBindDN' : '%s' % DIRECTORY_INSTANCE_DN, 'dsBindPwd' : '%s' % DIRECTORY_INSTANCE_PSWD, 'dsBaseDN' : '%s' % DIRECTORY_INSTANCE_SFX } 'dsBaseDN' : '%s' % DIRECTORY_INSTANCE_SFX } </call> <!-- Set the server backup the way it was before the backend tests --> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/quickstart/quickstart.xml' % (TESTS_DIR)"/> <call function="'main_quickstart'" /> <!--- Test Case information #@TestMarker Backend Export Tests #@TestName Backend: Export: LDIF Default @@ -104,11 +94,8 @@ #@TestPostamble #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export default backend'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export default backend' @@ -122,17 +109,20 @@ <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_default.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> @@ -147,7 +137,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -156,7 +147,8 @@ 'uid=kwinters,ou=People,dc=example,dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -165,13 +157,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -186,23 +176,21 @@ #@TestResult Success if Success if exportLDIF, importLDIF returns 0 --> <testcase name="'Backend: Export: Export non-default backend'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export non-default backend' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_schema.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_schema.ldif' % logsRemoteDataDir, 'backEnd' : 'schema' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> @@ -214,13 +202,11 @@ <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -236,39 +222,40 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Fractional Include Branch'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Fractional Include Branch' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_IncludeBranch.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_IncludeBranch.ldif' % logsRemoteDataDir, 'extraParams' : '-b "dc=com"' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_IncludeBranch.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -277,7 +264,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -286,7 +274,8 @@ 'uid=kwinters,ou=People,dc=example,dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -295,13 +284,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -317,9 +304,7 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Fractional Include Branches'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Fractional Include Branches' @@ -349,7 +334,8 @@ <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -358,7 +344,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -367,7 +354,8 @@ 'uid=kwinters,ou=People,dc=example,dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -376,13 +364,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -398,39 +384,40 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Fractional Exclude Branch'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Fractional Exclude Branch' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_ExcludeBranch.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_ExcludeBranch.ldif' % logsRemoteDataDir, 'extraParams' : '-B "dc=example,dc=com"' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_ExcludeBranch.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -439,7 +426,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -448,7 +436,8 @@ 'expectedEntries' : ['dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -457,16 +446,13 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information #@TestMarker Backend Export Tests #@TestName Backend: Export: Fractional Exclude Branches @@ -479,41 +465,41 @@ #@TestPostamble #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Fractional Exclude Branches'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Fractional Exclude Branches' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_ExcludeBranches.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_ExcludeBranches.ldif' % logsRemoteDataDir, 'extraParams' : '-B "ou=People,dc=example,dc=com" -B "dc=example,dc=com"' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_ExcludeBranches.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -522,7 +508,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -531,7 +518,8 @@ 'expectedEntries' : ['dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -540,13 +528,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -562,28 +548,27 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Fractional Branches Mix'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Fractional Branches Mix' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_MixBranches.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_MixBranches.ldif' % logsRemoteDataDir, 'extraParams' : '-b "dc=com" -B "ou=People,dc=example,dc=com"' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_MixBranches.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> @@ -621,13 +606,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -643,39 +626,40 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Fractional Include Attribute'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Fractional Include Attribute' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_IncludeAttr.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_IncludeAttr.ldif' % logsRemoteDataDir, 'extraParams' : '-i dc' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_IncludeAttr.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -684,7 +668,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -692,7 +677,8 @@ 'missingEntries' : ['ou=People,dc=example,dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -701,13 +687,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -723,23 +707,21 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Fractional Include Attributes'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Fractional Include Attributes' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_IncludeAttrs.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_IncludeAttrs.ldif' % logsRemoteDataDir, 'extraParams' : '-i dc -i cn -i ou -i sn -i uid' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> @@ -749,13 +731,15 @@ <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -764,7 +748,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -774,7 +759,8 @@ 'missingAttributes' : ['userpassword'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -783,13 +769,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -805,39 +789,40 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Fractional Exclude Attribute'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Fractional Exclude Attribute' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_ExcludeAttr.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_ExcludeAttr.ldif' % logsRemoteDataDir, 'extraParams' : '-e userpassword' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_ExcludeAttr.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -846,7 +831,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -854,7 +840,8 @@ 'missingAttributes' : ['userpassword'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -863,13 +850,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -885,39 +870,40 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Fractional Exclude Attributes'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Fractional Exclude Attributes' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_ExcludeAttrs.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_ExcludeAttrs.ldif' % logsRemoteDataDir, 'extraParams' : '-e userpassword -e mail -e roomnumber' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_ExcludeAttrs.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -926,7 +912,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -936,7 +923,8 @@ 'missingAttributes' : ['userpassword','mail','roomnumber'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -945,13 +933,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -967,39 +953,40 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Fractional Mix'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Fractional Mix' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_FractionalMix.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_FractionalMix.ldif' % logsRemoteDataDir, 'extraParams' : '-i dc -i cn -i ou -i sn -i uid -b "dc=com" -b "dc=example,dc=com" -b "ou=People,dc=example,dc=com" -B "ou=Departed,ou=People,dc=example,dc=com"' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_FractionalMix.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -1008,7 +995,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -1018,7 +1006,8 @@ 'missingAttributes' : ['userpassword'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -1027,13 +1016,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -1049,39 +1036,40 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Filtered Include'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Filtered Include' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_FilteredInclude.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_FilteredInclude.ldif' % logsRemoteDataDir, 'extraParams' : '-I "objectclass=*"' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_FilteredInclude.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -1090,7 +1078,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -1099,7 +1088,8 @@ 'uid=kwinters,ou=People,dc=example,dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -1108,13 +1098,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -1130,39 +1118,40 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Filtered Includes'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Filtered Includes' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_FilteredIncludes.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_FilteredIncludes.ldif' % logsRemoteDataDir, 'extraParams' : '-I "objectclass=domain" -I "objectclass=organizationalunit"' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_FilteredIncludes.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -1171,7 +1160,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -1190,13 +1180,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -1212,39 +1200,40 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Filtered Exclude'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Filtered Exclude' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_FilteredExclude.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_FilteredExclude.ldif' % logsRemoteDataDir, 'extraParams' : '-E "objectclass=person"' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_FilteredExclude.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -1253,7 +1242,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -1264,7 +1254,8 @@ 'uid=rhunt,ou=People,dc=example,dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -1273,13 +1264,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -1295,23 +1284,21 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Filtered Excludes'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Filtered Excludes' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_FilteredExcludes.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_FilteredExcludes.ldif' % logsRemoteDataDir, 'extraParams' : '-E "objectclass=person" -E "objectclass=organizationalunit"' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> @@ -1321,13 +1308,15 @@ <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -1336,7 +1325,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -1347,7 +1337,8 @@ 'uid=rhunt,ou=People,dc=example,dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -1356,13 +1347,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -1378,9 +1367,7 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Filtered Includes'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Filtered Includes' @@ -1441,11 +1428,8 @@ 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -1461,23 +1445,20 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Filtered Includes Complex'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Filtered Includes Complex' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_FilteredComplexIncludes.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_FilteredComplexIncludes.ldif' % logsRemoteDataDir, 'extraParams' : '-I "|(objectclass=person)(objectclass=domain)(objectclass=organizationalunit)"' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> @@ -1487,13 +1468,15 @@ <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -1502,7 +1485,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -1511,7 +1495,8 @@ 'uid=kwinters,ou=People,dc=example,dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -1522,11 +1507,8 @@ 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -1542,39 +1524,40 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Filtered Excludes Complex'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Filtered Excludes Complex' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_FilteredComplexExcludes.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_FilteredComplexExcludes.ldif' % logsRemoteDataDir, 'extraParams' : '-E "&(objectclass=person)(ou=Departed)"' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_FilteredComplexExcludes.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -1583,7 +1566,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -1592,7 +1576,8 @@ 'uid=kwinters,ou=People,dc=example,dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -1601,13 +1586,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -1623,39 +1606,40 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Fractional Filtered Mix'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Fractional Filtered Mix' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_FilteredMix.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_FilteredMix.ldif' % logsRemoteDataDir, 'extraParams' : '-E "&(objectclass=person)(ou=Departed)" -b "dc=com" -e userpassword' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_FilteredMix.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -1664,7 +1648,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -1673,7 +1658,8 @@ 'uid=kwinters,ou=People,dc=example,dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -1682,13 +1668,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -1704,39 +1688,40 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Append To LDIF'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Append To LDIF' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/Export_FilteredMix.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/Export_FilteredMix.ldif' % logsRemoteDataDir, 'extraParams' : '-a' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/Export_FilteredMix.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> @@ -1745,7 +1730,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -1754,7 +1740,8 @@ 'uid=kwinters,ou=People,dc=example,dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -1763,13 +1750,12 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -1785,23 +1771,21 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Compress LDIF'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Compress LDIF' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/ExportCompressed.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/ExportCompressed.ldif' % logsRemoteDataDir, 'extraParams' : '-c' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> @@ -1812,7 +1796,8 @@ <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> @@ -1827,7 +1812,8 @@ 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> @@ -1836,7 +1822,8 @@ 'uid=kwinters,ou=People,dc=example,dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> @@ -1845,13 +1832,11 @@ 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -1867,73 +1852,67 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Encrypt LDIF'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Encrypt LDIF' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/ExportEncrypted.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/ExportEncrypted.ldif' % logsRemoteDataDir, 'extraParams' : '-y' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/ExportEncrypted.ldif' % logsRemoteDataDir, 'extraParams' : '-y', 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> <call function="'isAlive'"> { 'location' : mylocation, 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> { 'expectedEntries' : ['uid=tmorris,ou=People,dc=example,dc=com', 'uid=kvaughan,ou=People,dc=example,dc=com', 'uid=kwinters,ou=People,dc=example,dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> <call function="'StopDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -1960,72 +1939,66 @@ #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <testcase name="'Backend: Export: Export Wrap Column'"> <sequence> <call function="'testCase_Preamble'"/> <message> 'Backend: Export: Export Wrap Column' </message> <call function="'exportLdif'"> { 'ldifFile' : '%s/backends/ExportWrapCol.ldif' % logsRemoteDataDir, { 'ldifFile' : '%s/backends/ExportWrapCol.ldif' % logsRemoteDataDir, 'extraParams' : '-w 25' } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <call function="'importLdif'"> { 'ldifFile' : '%s/backends/ExportWrapCol.ldif' % logsRemoteDataDir, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <call function="'checktestRC'"> { 'returncode' : RC , 'result' : STAXResult } 'result' : STAXResult } </call> <!-- StartDS --> <call function="'StartDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)} 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME) } </call> <!-- Wait for DS to start --> <call function="'isAlive'"> { 'location' : mylocation, 'noOfLoops' : 1 , 'noOfMilliSeconds' : 2000, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsInstancePort' : DsInstancePort} 'dsInstancePort' : DsInstancePort } </call> <call function="'checkImport'"> { 'expectedEntries' : ['uid=tmorris,ou=People,dc=example,dc=com', 'uid=kvaughan,ou=People,dc=example,dc=com', 'uid=kwinters,ou=People,dc=example,dc=com'], 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'startDS' : 'no'} 'startDS' : 'no' } </call> <!-- StopDS --> <call function="'StopDsWithScript'"> { 'location' : mylocation, 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME), 'dsPort' : DsInstancePort, 'dsBindDN' : mydn, 'dsBindPwd' : mypswd} 'dsBindPwd' : mypswd } </call> <call function="'testCase_Postamble'"/> </sequence> </testcase> <!--- Test Case information @@ -2040,22 +2013,12 @@ #@TestPostamble #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0 --> <!-- Need to know what the error codes are --> <import machine="STAF_LOCAL_HOSTNAME" file="'%s/testcases/backends/backend_cleanup.xml' % (TESTS_DIR)"/> <call function="'backend_cleanup'"> { 'stopDS' : False } </call> </sequence> </block> </sequence> </function> </stax>