Make setup/cleanup a tescase in replication tests.
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS. |
| | | ! Portions Copyright 2011-2012 ForgeRock AS. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | file="'%s/testcases/replication/replication_setup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_setup'"> |
| | | { 'dataFile' : 'Short_Example.ldif' } |
| | | { 'dataFile' : 'Short_Example.ldif' , |
| | | 'label' : 'Replication ACI' } |
| | | </call> |
| | | |
| | | <script> |
| | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_cleanup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_cleanup'" /> |
| | | <call function="'replication_cleanup'" > |
| | | { 'label' : 'Replication ACI' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_setup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_setup'" /> |
| | | <call function="'replication_setup'" > |
| | | { 'label' : 'Replication Basic' } |
| | | </call> |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/basic/replication_basic_setup.xml' |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_cleanup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_cleanup'" /> |
| | | <call function="'replication_cleanup'"> |
| | | { 'label' : 'Replication Basic' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2008 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS. |
| | | ! Portions Copyright 2011-2012 ForgeRock AS. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | |
| | | <function name="replication_basic_setup"> |
| | | |
| | | <block name="'replication-basic-setup'"> |
| | | |
| | | <testcase name="getTestCaseName('Basic Preamble')"> |
| | | |
| | | <try> |
| | | |
| | | <sequence> |
| | | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <!--- Setup the client for the Basic test suite --> |
| | | <message> |
| | | 'Replication: Basic: Setup. Get client ready for Basic tests.' |
| | |
| | | } |
| | | </call> |
| | | |
| | | <tcstatus result="'pass'"></tcstatus> |
| | | |
| | | </sequence> |
| | | |
| | | <catch exception="'STAXException'" typevar="eType" var="eInfo"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'"> |
| | | '%s: Failed to cleanup. eInfo(%s)' % (eType,eInfo) |
| | | </message> |
| | | <throw exception="'STAFException.TestSuite.CleanupException'" /> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <!-- Test Case postamble --> |
| | | <call function="'testCase_Postamble'"/> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </testcase> |
| | | |
| | | </block> |
| | | |
| | | </function> |
| | | |
| | | </stax> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS. |
| | | ! Portions Copyright 2011-2012 ForgeRock AS. |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="replication_binarycopy"/> |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_setup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_setup'" /> |
| | | <call function="'replication_setup'" > |
| | | { 'label' : 'Replication Binarycopy' } |
| | | </call> |
| | | |
| | | |
| | | <!--- Test Case information |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_cleanup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_cleanup'" /> |
| | | <call function="'replication_cleanup'" > |
| | | { 'label' : 'Replication Binarycopy' } |
| | | </call> |
| | | <call function="'testSuite_Postamble'"/> |
| | | </sequence> |
| | | </block> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS. |
| | | ! Portions Copyright 2011-2012 ForgeRock AS. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | file="'%s/testcases/replication/replication_setup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_setup'"> |
| | | { 'dataFile' : 'Example.ldif' } |
| | | { 'dataFile' : 'Example.ldif', |
| | | 'label' : 'Replication Changelog' } |
| | | </call> |
| | | |
| | | |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_cleanup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_cleanup'" /> |
| | | <call function="'replication_cleanup'" > |
| | | { 'label' : 'Replication Changelog' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | </sequence> |
| | |
| | | % REPLICATION_CONFIG_DIR, |
| | | 'dataFile' : 'Short_Example.ldif', |
| | | 'isolateLdapServers' : True, |
| | | 'enableDebugLogs' : False |
| | | 'enableDebugLogs' : False, |
| | | 'label' : 'Replication Conflict' |
| | | } |
| | | </call> |
| | | |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_cleanup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_cleanup'" /> |
| | | <call function="'replication_cleanup'" > |
| | | { 'label' : 'Replication Conflict' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS. |
| | | ! Portions Copyright 2011-2012 ForgeRock AS. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | { 'topologyFile' : '%s/3server_topology.txt' \ |
| | | % REPLICATION_CONFIG_DIR, |
| | | 'secureReplication': True, |
| | | 'dataFile' : 'Example.ldif' |
| | | 'dataFile' : 'Example.ldif', |
| | | 'label' : 'Replication Encryption' |
| | | } |
| | | </call> |
| | | |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_cleanup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_cleanup'" /> |
| | | <call function="'replication_cleanup'" > |
| | | { 'label' : 'Replication Encryption' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS. |
| | | ! Portions Copyright 2011-2012 ForgeRock AS. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_setup.xml' % (TESTS_DIR)"/> |
| | | <call function="'replication_setup'"> |
| | | { 'topologyFile' : '%s/3server_topology.txt' % REPLICATION_CONFIG_DIR } |
| | | { 'topologyFile' : '%s/3server_topology.txt' % REPLICATION_CONFIG_DIR , |
| | | 'label' : 'Replication Failover' } |
| | | </call> |
| | | |
| | | <script> |
| | |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_cleanup.xml' % (TESTS_DIR)"/> |
| | | <call function="'replication_cleanup'" /> |
| | | <call function="'replication_cleanup'" > |
| | | { 'label' : 'Replication Failover' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS. |
| | | ! Portions Copyright 2011-2012 ForgeRock AS. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_setup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_setup'" /> |
| | | <call function="'replication_setup'" > |
| | | { 'label' : 'Replication LDIFimport' } |
| | | </call> |
| | | |
| | | |
| | | <!--- Test Case information |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_cleanup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_cleanup'" /> |
| | | <call function="'replication_cleanup'" > |
| | | { 'label' : 'Replication LDIFimport' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2008 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2012 ForgeRock AS. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="label" |
| | | type="optional" |
| | | default="'Replication'"> |
| | | <function-arg-description> |
| | | Friendly label name |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | |
| | | <block name="'replication-cleanup'"> |
| | | |
| | | <testcase name="getTestCaseName('%s Cleanup' % label)"> |
| | | |
| | | <try> |
| | | |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <!-- Stop the servers in the topology --> |
| | | <call function="'stopServers'"> |
| | |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <tcstatus result="'pass'"></tcstatus> |
| | | |
| | | </sequence> |
| | | |
| | | <catch exception="'STAXException'" typevar="eType" var="eInfo"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'"> |
| | | '%s: Failed to cleanup. eInfo(%s)' % (eType,eInfo) |
| | | </message> |
| | | <throw exception="'STAFException.TestSuite.CleanupException'" /> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <!-- Test Case postamble --> |
| | | <call function="'testCase_Postamble'"/> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </testcase> |
| | | |
| | | </block> |
| | | |
| | | </sequence> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS. |
| | | ! Portions Copyright 2011-2012 ForgeRock AS. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="boolean"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="label" |
| | | type="optional" |
| | | default="'Replication'"> |
| | | <function-arg-description> |
| | | Friendly label name |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | | |
| | | <block name="'replication-setup'"> |
| | | |
| | | <testcase name="getTestCaseName('%s Setup' % label)"> |
| | | |
| | | <try> |
| | | |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <message> |
| | | 'Create DS topology as described in %s' % topologyFile |
| | |
| | | </paralleliterate> |
| | | </if> |
| | | |
| | | <tcstatus result="'pass'"></tcstatus> |
| | | |
| | | </sequence> |
| | | |
| | | <catch exception="'STAXException'" typevar="eType" var="eInfo"> |
| | | <sequence> |
| | | <message log="1" level="'fatal'"> |
| | | '%s: Failed to cleanup. eInfo(%s)' % (eType,eInfo) |
| | | </message> |
| | | <throw exception="'STAFException.TestSuite.CleanupException'" /> |
| | | </sequence> |
| | | </catch> |
| | | <finally> |
| | | <!-- Test Case postamble --> |
| | | <call function="'testCase_Postamble'"/> |
| | | </finally> |
| | | |
| | | </try> |
| | | |
| | | </testcase> |
| | | |
| | | </block> |
| | | |
| | | </sequence> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS. |
| | | ! Portions Copyright 2011-2012 ForgeRock AS. |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="replication_resynchronization"/> |
| | |
| | | <call function="'replication_setup'"> |
| | | { 'topologyFile' : '%s/3server_topology.txt' \ |
| | | % REPLICATION_CONFIG_DIR, |
| | | 'dataFile' : 'Example.ldif' |
| | | 'dataFile' : 'Example.ldif' , |
| | | 'label' : 'Replication Resync' |
| | | } |
| | | </call> |
| | | |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_cleanup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_cleanup'" /> |
| | | <call function="'replication_cleanup'" > |
| | | { 'label' : 'Replication Resync' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | </sequence> |
| | |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_setup.xml' % TESTS_DIR"/> |
| | | <call function="'replication_setup'" /> |
| | | <call function="'replication_setup'" > |
| | | { 'label' : 'Replication Schema' } |
| | | </call> |
| | | |
| | | <script> |
| | | synchroSuffix = master.getSynchronizedSuffixList()[0].getSuffixDn() |
| | |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_cleanup.xml' % TESTS_DIR"/> |
| | | <call function="'replication_cleanup'" /> |
| | | <call function="'replication_cleanup'" > |
| | | { 'label' : 'Replication Schema' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_setup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_setup'" /> |
| | | <call function="'replication_setup'" > |
| | | { 'label' : 'Replication Totalupdate' } |
| | | </call> |
| | | |
| | | <script> |
| | | server1DataDir = '%s' % server1.getDataDir() |
| | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_cleanup.xml' |
| | | % (TESTS_DIR)"/> |
| | | <call function="'replication_cleanup'" /> |
| | | <call function="'replication_cleanup'" > |
| | | { 'label' : 'Replication Totalupdate' } |
| | | </call> |
| | | |
| | | <call function="'testSuite_Postamble'"/> |
| | | </sequence> |