CR-1828 Updated import_ldif and operations stress tests
| | |
| | | opends.admin.pwd=password |
| | | snmp.opendmk.lib.dir= |
| | | ldclt.dir= |
| | | sdk.dir= |
| | | temp.dir=/tmp |
| | | test.plan.custom= |
| | | test.plan.functional.default=aci,backends,clu,clu_secure,core,dsconfig,dsml,fractional-replication,groups,i18n,indexes,logging,monitoring,password_policy,plugins,privileges,pta,replication,schema,security,setup,snmp,tasks,virtualAttributes,replication-safe-data,replication-safe-read |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2011 ForgeRock AS |
| | | ! Copyright 2011-2013 ForgeRock AS |
| | | ! --> |
| | | <stax> |
| | | <!-- SDK ldapsearch Function --> |
| | |
| | | |
| | | if extraParams: |
| | | STAFCmdParamsList.append('%s' % extraParams) |
| | | |
| | | |
| | | if attribute: |
| | | STAFCmdParamsList.append('%s' % attribute) |
| | | |
| | | if formatString: |
| | | STAFCmdParamsList.append(':%s' % formatString) |
| | | |
| | | if formatString: |
| | | STAFCmdParamsList.append('%s:%s' % (attribute,formatString)) |
| | | else: |
| | | STAFCmdParamsList.append('%s' % attribute) |
| | | |
| | | STAFCmdParams=' '.join(STAFCmdParamsList) |
| | | </script> |
| | | <call function="'runCommand'"> |
| | |
| | | |
| | | <if expr="checkRC != 48"> |
| | | <sequence> |
| | | <message> |
| | | <message log="1" level="'Error'"> |
| | | 'Server is not stopped after %sms \ |
| | | (%s/logs/server.pid still exists on %s)' \ |
| | | % (noOfLoops*noOfMilliSeconds,dsPath,location) |
| | |
| | | VERBOSE_MODE = '${verbose.mode}' |
| | | TEST_PLAN_CUSTOM = '${test.plan.custom}' |
| | | ORIGINAL_ARCHIVE = '${original.archive}' |
| | | SDK_BIN = '/path/to/sdk/bin' |
| | | SDK_BIN = '${sdk.dir}' |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2013 ForgeRock AS |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | testList.append('import_ldif_bin_attr') |
| | | testList.append('import_ldif_bin_attr_6m') |
| | | testList.append('import_ldif_bin_attr_10m') |
| | | #testList.append('import_ldif_large_import_buffer') |
| | | #testList.append('import_ldif_many_thrds') |
| | | #testList.append('import_ldif_low_index_entry_limit') |
| | | #testList.append('import_ldif_out-of-box') |
| | | #testList.append('import_ldif_many_indexes') |
| | | #testList.append('import_ldif_tasks_bin_attr') |
| | | #testList.append('import_ldif_tasks_bin_attr_with_load') |
| | | testList.append('import_ldif_large_import_buffer') |
| | | testList.append('import_ldif_many_thrds') |
| | | testList.append('import_ldif_low_index_entry_limit') |
| | | testList.append('import_ldif_out-of-box') |
| | | testList.append('import_ldif_many_indexes') |
| | | testList.append('import_ldif_tasks_bin_attr') |
| | | testList.append('import_ldif_tasks_bin_attr_with_load') |
| | | </script> |
| | | |
| | | <iterate var="__test" in="testList"> |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/import_ldif/import_ldif_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'import_ldif_cleanup'"> |
| | | { 'suiteSuffix' : 'import_1m' } |
| | | { 'suiteSuffix' : 'import_10m' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2009 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2013 ForgeRock AS |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/import_ldif/import_ldif_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'import_ldif_cleanup'"> |
| | | { 'suiteSuffix' : 'import_3m' } |
| | | { 'suiteSuffix' : 'import_6m' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2013 ForgeRock AS |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | </call> |
| | | |
| | | <script> |
| | | numberOfEntries='100000' |
| | | bin_attr_filename = '%s_entries.ldif' % numberOfEntries |
| | | |
| | | import os.path |
| | | curr_filename=remote.temp + "/" + bin_attr_filename |
| | | curr_file_exists='0' |
| | | if os.path.exists(curr_filename): |
| | | curr_file_exists='1' |
| | | |
| | | numberOfEntries='100000' |
| | | </script> |
| | | |
| | | <message> |
| | |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/import_ldif/import_ldif_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'import_ldif_cleanup'" /> |
| | | |
| | | <call function="'import_ldif_cleanup'"> |
| | | { 'suiteSuffix' : 'large_import_buffer' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | |
| | | </call> |
| | | |
| | | <script> |
| | | numberOfEntries='100000' |
| | | bin_attr_filename = '%s_entries.ldif' % numberOfEntries |
| | | |
| | | import os.path |
| | | curr_filename=remote.temp + "/" + bin_attr_filename |
| | | curr_file_exists='0' |
| | | if os.path.exists(curr_filename): |
| | | curr_file_exists='1' |
| | | |
| | | numberOfEntries='100000' |
| | | </script> |
| | | |
| | | <message> |
| | |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/import_ldif/import_ldif_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'import_ldif_cleanup'" /> |
| | | |
| | | <call function="'import_ldif_cleanup'"> |
| | | { 'suiteSuffix' : 'low_index_entry_limit' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2013 ForgeRock AS |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | 'subcommand' : 'create-local-db-index' , |
| | | 'objectType' : 'backend-name' , |
| | | 'objectName' : 'userRoot', |
| | | 'optionsString' : '--index-name description --add index-type:approximate --add index-type:equality --add index-type:presence --add index-type:substring ' , |
| | | 'optionsString' : '--index-name description --set index-type:approximate --set index-type:equality --set index-type:presence --set index-type:substring ' , |
| | | 'expectedRC' : 0 } |
| | | </call> |
| | | |
| | |
| | | 'subcommand' : 'create-local-db-index' , |
| | | 'objectType' : 'backend-name' , |
| | | 'objectName' : 'userRoot', |
| | | 'optionsString' : '--index-name employeeNumber --add index-type:approximate --add index-type:equality --add index-type:ordering --add index-type:presence --add index-type:substring ' , |
| | | 'optionsString' : '--index-name employeeNumber --set index-type:approximate --set index-type:equality --set index-type:ordering --set index-type:presence --set index-type:substring ' , |
| | | 'expectedRC' : 0 } |
| | | </call> |
| | | |
| | |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/import_ldif/import_ldif_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'import_ldif_cleanup'" /> |
| | | |
| | | <call function="'import_ldif_cleanup'"> |
| | | { 'suiteSuffix' : 'many_indexes' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | |
| | | </call> |
| | | |
| | | <script> |
| | | numberOfEntries='100000' |
| | | bin_attr_filename = '%s_entries.ldif' % numberOfEntries |
| | | |
| | | import os.path |
| | | curr_filename=remote.temp + "/" + bin_attr_filename |
| | | curr_file_exists='0' |
| | | if os.path.exists(curr_filename): |
| | | curr_file_exists='1' |
| | | |
| | | numberOfEntries='100000' |
| | | </script> |
| | | |
| | | <message> |
| | |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'difFile' : curr_filename , |
| | | 'ldifFile' : curr_filename , |
| | | 'backEnd' : 'userRoot'} |
| | | </call> |
| | | |
| | |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/import_ldif/import_ldif_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'import_ldif_cleanup'" /> |
| | | |
| | | <call function="'import_ldif_cleanup'"> |
| | | { 'suiteSuffix' : 'many_thrds' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2013 ForgeRock AS |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/import_ldif/import_ldif_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'import_ldif_cleanup'" /> |
| | | |
| | | <call function="'import_ldif_cleanup'"> |
| | | { 'suiteSuffix' : 'out_of_box' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <script> |
| | | numberOfEntries='100000' |
| | | bin_attr_filename = '%s_entries.ldif' % numberOfEntries |
| | | |
| | | import os.path |
| | | curr_filename=remote.temp + "/" + bin_attr_filename |
| | | curr_file_exists='0' |
| | | if os.path.exists(curr_filename): |
| | | curr_file_exists='1' |
| | | |
| | | numberOfEntries='100000' |
| | | </script> |
| | | |
| | | <message> |
| | |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/import_ldif/import_ldif_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'import_ldif_cleanup'" /> |
| | | |
| | | <call function="'import_ldif_cleanup'"> |
| | | { 'suiteSuffix' : 'tasks' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2013 ForgeRock AS |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | <script> |
| | | numberOfEntries='100000' |
| | | bin_attr_filename = '%s_entries.ldif' % numberOfEntries |
| | | |
| | | import os.path |
| | | curr_filename=remote.temp + "/" + bin_attr_filename |
| | | curr_file_exists='0' |
| | |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/import_ldif/import_ldif_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'import_ldif_cleanup'" /> |
| | | |
| | | <call function="'import_ldif_cleanup'"> |
| | | { 'suiteSuffix' : 'tasks_with_load' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2012 ForgeRock AS. |
| | | ! Copyright 2012-2013 ForgeRock AS. |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="main_importldif" /> |
| | |
| | | <call function="'testGroup_Preamble'" /> |
| | | <script> |
| | | suiteList = [] |
| | | #suiteList.append('basic') |
| | | #suiteList.append('binary_attributes') |
| | | #suiteList.append('properties') |
| | | #suiteList.append('indexes') |
| | | suiteList.append('basic') |
| | | suiteList.append('binary_attributes') |
| | | suiteList.append('properties') |
| | | suiteList.append('indexes') |
| | | suiteList.append('tasks') |
| | | |
| | | def get_testsuite_filename(testsdir,groupname,suitename): |