update product.name to OpenDJ in functional tests
| | |
| | | } |
| | | </call> |
| | | |
| | | <!-- The war file can be included in the OpenDS archive --> |
| | | <if expr="not PRODUCTNAME.startswith('OpenDS')"> |
| | | <!-- The war file can be included in the OpenDJ archive --> |
| | | <if expr="not PRODUCTNAME.startswith('OpenDJ')"> |
| | | <sequence> |
| | | <call function="'unZipFile'"> |
| | | { |
| | |
| | | </else> |
| | | </if> |
| | | |
| | | <!-- The war file can be included in the OpenDS archive --> |
| | | <!-- The war file can be included in the OpenDJ archive --> |
| | | <script> |
| | | if not PRODUCTNAME.startswith('OpenDS'): |
| | | if not PRODUCTNAME.startswith('OpenDJ'): |
| | | DSML_WARPATH = '%s/dsml/%s/addons/DSML.war' % (local.temp,OPENDSNAME) |
| | | </script> |
| | | <call function="'unZipFile'"> |
| | |
| | | 'setup: deploy DSML gateway webapp as described in config.py' |
| | | </message> |
| | | |
| | | <!-- The war file can be included in the OpenDS archive --> |
| | | <!-- The war file can be included in the OpenDJ archive --> |
| | | <script> |
| | | if not PRODUCTNAME.startswith('OpenDS'): |
| | | if not PRODUCTNAME.startswith('OpenDJ'): |
| | | DSML_WARPATH = '%s/dsml/%s/addons/DSML.war' % (local.temp,OPENDSNAME) |
| | | </script> |
| | | |
| | |
| | | } |
| | | </call> |
| | | |
| | | <!-- The war file can be included in the OpenDS archive --> |
| | | <!-- The war file can be included in the OpenDJ archive --> |
| | | <script> |
| | | if not PRODUCTNAME.startswith('OpenDS'): |
| | | if not PRODUCTNAME.startswith('OpenDJ'): |
| | | DSML_WARPATH = '%s/dsml/%s/addons/DSML.war' % (local.temp,OPENDSNAME) |
| | | </script> |
| | | <call function="'runSTAFCommand'"> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | </call> |
| | | |
| | | <call function="'runSTAFCommand'"> |
| | | { 'name' : 'Extract OpenDS ZIP file', |
| | | { 'name' : 'Extract OpenDJ ZIP file', |
| | | 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'service' : 'ZIP', |
| | | 'request' : 'UNZIP', |
| | |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC, |
| | | 'expected' : 0, |
| | | 'result' : 'FAIL to unzip OpenDS ZIP file', |
| | | 'result' : 'FAIL to unzip OpenDJ ZIP file', |
| | | } |
| | | </call> |
| | | |
| | |
| | | import LDAP entries and manage rejected and |
| | | skipped entries |
| | | #@TestPreamble |
| | | #@TestStep Unzip OpenDS distribution |
| | | Setup OpenDS with a LDIF file to import, and |
| | | #@TestStep Unzip OpenDJ distribution |
| | | Setup OpenDJ with a LDIF file to import, and |
| | | files for rejected and skipped entries |
| | | Check skipped and rejected entries |
| | | Stop OpenDS |
| | | Uninstall OpenDS |
| | | Stop OpenDJ |
| | | Uninstall OpenDJ |
| | | #@TestPostamble |
| | | #@TestResult PASS if all steps ran without errors |
| | | --> |
| | |
| | | </call> |
| | | |
| | | <script> |
| | | if PRODUCTNAME.startswith('OpenDS'): |
| | | if PRODUCTNAME.startswith('OpenDJ'): |
| | | if is_windows_platform(STAF_REMOTE_HOSTNAME): |
| | | expectedNb = 2 |
| | | else: |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | } |
| | | </call> |
| | | <!-- 'opendmkPath' exists so we can continue --> |
| | | <if expr="RC != 48 or not PRODUCTNAME.startswith('OpenDS')"> |
| | | <if expr="RC != 48 or not PRODUCTNAME.startswith('OpenDJ')"> |
| | | <sequence> |
| | | |
| | | <!--- Test Case information |
| | |
| | | test.plan.stress.default=import_ldif,ldap_operation,replication |
| | | verbose.mode=false |
| | | |
| | | product.name=OpenDS Directory Server |
| | | product.name=OpenDJ |
| | | logs.uri=file:// |
| | | tests.os.string=${os.name} |
| | | tests.jvm.string=${java.version}(${sun.arch.data.model} bits) |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS |
| | | ! --> |
| | | <stax> |
| | | <function name="createTopology"> |
| | |
| | | 'attribute' : 'TYPE' |
| | | } |
| | | </call> |
| | | |
| | | <if expr="RC == 48"> |
| | | <message> |
| | | 'OpenDMK jar %s not found.' % SNMP_OPENDMK_JARFILE |
| | | </message> |
| | | </if> |
| | | |
| | | <!-- 'SNMP_OPENDMK_JARFILE' exists so we can continue with SNMP --> |
| | | <if expr="RC != 48 or not PRODUCTNAME.startswith('OpenDS')"> |
| | | <if expr="RC != 48 or not PRODUCTNAME.startswith('OpenDJ')"> |
| | | <sequence> |
| | | <!--- Check if snmp java files are already compiled --> |
| | | <call function="'listFolderByExtension'" > |
| | |
| | | |
| | | <!-- The jdmkrt.jar can be included in the OpenDS archive --> |
| | | <script> |
| | | if not PRODUCTNAME.startswith('OpenDS'): |
| | | if not PRODUCTNAME.startswith('OpenDJ'): |
| | | SNMP_OPENDMK_JARFILE='%s/%s/addons/jdmkrt.jar' % (local.temp,OPENDSNAME) |
| | | </script> |
| | | |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2006-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 AS |
| | | ! --> |
| | | |
| | | <stax> |
| | |
| | | ServerPackage='%s/%s' % (ZIPPATH,ZIPNAME) |
| | | |
| | | # The jdmkrt.jar can be included in the OpenDS archive |
| | | if not PRODUCTNAME.startswith('OpenDS'): |
| | | if not PRODUCTNAME.startswith('OpenDJ'): |
| | | ServerSNMPJarFile='addons/jdmkrt.jar' |
| | | else: |
| | | ServerSNMPJarFile='%s' % SNMP_OPENDMK_JARFILE |
| | |
| | | <!-- Build the DSML Gateway Dictionary --> |
| | | <script> |
| | | # The war file can be included in the OpenDS archive |
| | | if not PRODUCTNAME.startswith('OpenDS'): |
| | | if not PRODUCTNAME.startswith('OpenDJ'): |
| | | DSMLName='DSML.war' |
| | | DSMLPackage='addons/DSML.war' |
| | | else: |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2006-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 Forgerock AS |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="main" /> |
| | |
| | | my_info['os label']=TEST_OS_STRING |
| | | my_info['server package']='%s/%s' % (ZIPPATH,ZIPNAME) |
| | | # The jdmkrt.jar can be included in the OpenDS archive |
| | | if not PRODUCTNAME.startswith('OpenDS'): |
| | | if not PRODUCTNAME.startswith('OpenDJ'): |
| | | my_info['snmp jarfile']='addons%s' % SNMP_OPENDMK_JARFILE |
| | | else: |
| | | my_info['snmp jarfile']=SNMP_OPENDMK_JARFILE |