1625N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
1625N/A ! The contents of this file are subject to the terms of the 1625N/A ! Common Development and Distribution License, Version 1.0 only 1625N/A ! (the "License"). You may not use this file except in compliance 1625N/A ! See the License for the specific language governing permissions 1625N/A ! and limitations under the License. 1625N/A ! When distributing Covered Code, include this CDDL HEADER in each 6982N/A ! If applicable, add the following below this CDDL HEADER, with the 6982N/A ! fields enclosed by brackets "[]" replaced with your own identifying 1625N/A ! Portions Copyright [yyyy] [name of copyright owner] 5064N/A ! Copyright 2007-2010 Sun Microsystems, Inc. 6184N/A ! Portions Copyright 2013 ForgeRock AS 3660N/A <
defaultcall function="main_indexes" />
3660N/A <
function name="main_indexes">
3816N/A <
function-
required-
arg name="STAXParentID"/>
3816N/A <!--- Load the job environment for the test group execution --> 3816N/A <
import machine="STAF_LOCAL_HOSTNAME" 3816N/A <
call function="'loadJobEnvironment'">
3816N/A { 'parent' : STAXParentID }
3853N/A CurrentTestPath['group'] = 'indexes'
5098N/A _testSteps=['indexes_setup','indexes_search','indexes_modify',
5098N/A 'indexes_dynamic_modify','indexes_add',
5098N/A 'indexes_dynamic_add','indexes_remove',
5098N/A 'indexes_entry_limit','indexes_vlv_add','indexes_cleanup']
1914N/A #@TestSuitePurpose test the database index feature from ldap 1976N/A <!-- the pre-requisites are in a separate iteration --> 3853N/A <
call function="'testGroup_Preamble'"/>
1914N/A <
iterate in="_testSteps" var="_testStep" indexvar="_testStepNumber">
3853N/A <
call function="_testStep"/>
3142N/A <
message log="1" level="'fatal'">
3142N/A 'Could not create the topology. Bailing out.'
3142N/A <
message log="1" level="'fatal'">
3853N/A <
call function="'testGroup_Postamble'"/>
1914N/A <
function name="indexes_search" scope="local">
1914N/A This set of tests loop through a set of search filters to verify that 1914N/A the default indexes behave as expected 1914N/A #@TestIssue TODO: look up the issue in issue tracker 1914N/A #@TestPurpose harden the default indexes 1914N/A #@TestResult Success if entry are indexed correctly 3853N/A <
block name="'indexes_search'">
3853N/A CurrentTestPath['suite'] = STAXCurrentBlock
3853N/A <
call function="'testSuite_Preamble'"/>
1914N/A <
message log="1" level="'info'">
1914N/A 'starting the search tests'
1914N/A <
call function="'loopThroughFilters'">
3853N/A <
call function="'testSuite_Postamble'"/>
1914N/A <
function name="indexes_modify" scope="local">
1914N/A This test alters the uid default index so that it does subString search 1914N/A and then verifies that it worked 1914N/A #@TestIssue TODO: look up the issue in issue tracker 1914N/A #@TestPurpose harden the default indexes 1914N/A #@TestResult Success if entry are indexed correctly 3853N/A <
block name="'indexes_modify'">
3853N/A CurrentTestPath['suite'] = STAXCurrentBlock
3853N/A <
call function="'testSuite_Preamble'"/>
1914N/A <
call function="'loopThroughFilters'">
1914N/A { 'filters' : 'before-modify' }
5064N/A <
testcase name="getTestCaseName('Modify and rebuild uid index')">
5064N/A <
call function="'testCase_Preamble'"/>
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'modifyIndex',
5064N/A 'functionMessage' : 'Adding substring index to attribute uid',
5064N/A 'functionArguments' : { 'operation' : 'add',
5064N/A 'indexProperty' : 'index-type',
5064N/A 'indexPropertyValue' : 'substring'
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'StopDsWithScript',
5064N/A 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME,
5064N/A 'dsHost' : DIRECTORY_INSTANCE_HOST,
5064N/A 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5064N/A 'dsBindDN' : DIRECTORY_INSTANCE_DN ,
5064N/A 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD }
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'rebuildIndexWithScript' ,
5064N/A 'functionArguments' : { 'dsBaseDN' : DIRECTORY_INSTANCE_SFX ,
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'StartDsWithScript',
5064N/A 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME }
5064N/A <!--- Check that DS started --> 5064N/A <
call function="'isAlive'">
5064N/A <
call function="'testCase_Postamble'"/>
1914N/A <
call function="'loopThroughFilters'">
5064N/A { 'filters' : 'after-modify' }
5098N/A <
testcase name="getTestCaseName('Restore and rebuild uid index')">
5098N/A <
call function="'testCase_Preamble'"/>
5098N/A <
call function="'runFunction'">
5098N/A { 'functionName' : 'modifyIndex',
5098N/A 'functionMessage' : 'Adding substring index to attribute uid',
5098N/A 'functionArguments' : { 'operation' : 'remove',
5098N/A 'indexProperty' : 'index-type',
5098N/A 'indexPropertyValue' : 'substring'
5098N/A <
call function="'runFunction'">
5098N/A { 'functionName' : 'StopDsWithScript',
5098N/A 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME,
5098N/A 'dsHost' : DIRECTORY_INSTANCE_HOST,
5098N/A 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5098N/A 'dsBindDN' : DIRECTORY_INSTANCE_DN ,
5098N/A 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD }
5098N/A <
call function="'runFunction'">
5098N/A { 'functionName' : 'rebuildIndexWithScript' ,
5098N/A 'functionArguments' : { 'dsBaseDN' : DIRECTORY_INSTANCE_SFX ,
5098N/A <
call function="'runFunction'">
5098N/A { 'functionName' : 'StartDsWithScript',
5098N/A 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME }
5098N/A <!--- Check that DS started --> 5098N/A <
call function="'isAlive'">
5098N/A <
call function="'testCase_Postamble'"/>
3142N/A <
message log="1" level="'fatal'">
3142N/A 'Fatal Error: Failed to alter index for attribute uid'
3142N/A <
message log="1" level="'fatal'">
3142N/A 'Fatal Error: Failed to rebuild index for attribute uid'
3853N/A <
call function="'testSuite_Postamble'"/>
3142N/A <
function name="indexes_dynamic_modify" scope="local">
3142N/A This test alters dynamically the uid default index so that it does 3142N/A subString search and then verifies that it worked 3142N/A #@TestName indexes_dynamic_modify 3142N/A #@TestPurpose harden the default indexes 3142N/A #@TestResult Success if entry are indexed correctly 3853N/A <
block name="'indexes_dynamic_modify'">
3853N/A CurrentTestPath['suite'] = STAXCurrentBlock
3853N/A <
call function="'testSuite_Preamble'"/>
3142N/A <
call function="'loopThroughFilters'">
3142N/A { 'filters' : 'before-modify' }
5064N/A <
testcase name="getTestCaseName('Modify and rebuild uid index')">
5064N/A <
call function="'testCase_Preamble'"/>
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'modifyIndex',
5064N/A 'functionMessage' : 'Adding substring index to attribute uid',
5064N/A 'functionArguments' : { 'operation' : 'add',
5064N/A 'indexProperty' : 'index-type',
5064N/A 'indexPropertyValue' : 'substring'
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'rebuildIndexWithScript' ,
5064N/A { 'location' : STAF_REMOTE_HOSTNAME,
5064N/A 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5064N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5064N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
5064N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
5064N/A 'dsBaseDN' : DIRECTORY_INSTANCE_SFX,
5064N/A <
call function="'testCase_Postamble'"/>
3142N/A <
call function="'loopThroughFilters'">
3142N/A { 'filters' : 'after-modify' }
5098N/A <
testcase name="getTestCaseName('Restore and rebuild uid index')">
5098N/A <
call function="'testCase_Preamble'"/>
5098N/A <
call function="'runFunction'">
5098N/A { 'functionName' : 'modifyIndex',
5098N/A 'functionMessage' : 'Adding substring index to attribute uid',
5098N/A 'functionArguments' : { 'operation' : 'remove',
5098N/A 'indexProperty' : 'index-type',
5098N/A 'indexPropertyValue' : 'substring'
5098N/A <
call function="'runFunction'">
5098N/A { 'functionName' : 'StopDsWithScript',
5098N/A 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME,
5098N/A 'dsHost' : DIRECTORY_INSTANCE_HOST,
5098N/A 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5098N/A 'dsBindDN' : DIRECTORY_INSTANCE_DN ,
5098N/A 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD }
5098N/A <
call function="'runFunction'">
5098N/A { 'functionName' : 'rebuildIndexWithScript' ,
5098N/A 'functionArguments' : { 'dsBaseDN' : DIRECTORY_INSTANCE_SFX ,
5098N/A <
call function="'runFunction'">
5098N/A { 'functionName' : 'StartDsWithScript',
5098N/A 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME }
5098N/A <!--- Check that DS started --> 5098N/A <
call function="'isAlive'">
5098N/A <
call function="'testCase_Postamble'"/>
3142N/A <
message log="1" level="'fatal'">
3142N/A 'Fatal Error: Failed to alter index for attribute uid'
3142N/A <
message log="1" level="'fatal'">
3142N/A 'Fatal Error: Failed to rebuild index for attribute uid'
3853N/A <
call function="'testSuite_Postamble'"/>
1914N/A <
function name="indexes_add" scope="local">
3142N/A This test adds a new presence and equality index for l attribute 1933N/A and then verifies that it worked 3142N/A #@TestIssue TODO: look up the issue in issue tracker 3142N/A #@TestPurpose check if the user can add her own indexes 3142N/A #@TestStep iterate through filters prior to adding indexes 3142N/A #@TestStep iterate through filters after to adding indexes 3142N/A #@TestResult Success if entry are indexed correctly 3853N/A <
block name="'indexes_add'">
3853N/A CurrentTestPath['suite'] = STAXCurrentBlock
3853N/A <
call function="'testSuite_Preamble'"/>
1933N/A <
call function="'loopThroughFilters'">
1933N/A { 'filters' : 'before-add' }
5098N/A <
testcase name="getTestCaseName('Add and rebuild l index')">
5064N/A <
call function="'testCase_Preamble'"/>
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'addIndex',
5064N/A 'functionMessage' : 'Adding presence and equality index to \
5064N/A 'functionArguments' : { 'indexAttribute' : 'l',
5064N/A 'indexTypes' : [ 'presence',
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'StopDsWithScript',
5064N/A 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME,
5064N/A 'dsHost' : DIRECTORY_INSTANCE_HOST,
5064N/A 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5064N/A 'dsBindDN' : DIRECTORY_INSTANCE_DN,
5064N/A 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'rebuildIndexWithScript' ,
5064N/A 'functionArguments' : { 'dsBaseDN' : DIRECTORY_INSTANCE_SFX ,
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'StartDsWithScript',
5064N/A 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME }
5064N/A <!--- Check that DS started --> 5064N/A <
call function="'isAlive'">
5064N/A <
call function="'testCase_Postamble'"/>
1933N/A <
call function="'loopThroughFilters'">
1933N/A { 'filters' : 'after-add' }
5098N/A <
testcase name="getTestCaseName('Remove l index and rebuild all indexes')">
5098N/A <
call function="'testCase_Preamble'"/>
5098N/A <
call function="'runFunction'">
5098N/A { 'functionName' : 'removeIndex',
5098N/A 'functionMessage' : 'Removing index on attribute l' ,
5098N/A 'functionArguments' : { 'indexAttribute' : 'l' }
5098N/A <
call function="'testCase_Postamble'"/>
3142N/A <
message log="1" level="'fatal'">
3142N/A 'Fatal Error: Failed to add index for attribute l'
3142N/A <
message log="1" level="'fatal'">
3142N/A 'Fatal Error: Failed to rebuild index for attribute l'
3853N/A <
call function="'testSuite_Postamble'"/>
3142N/A <
function name="indexes_dynamic_add" scope="local">
3142N/A This test adds dynamically a new presence and equality index for l 3142N/A attribute and then verifies that it worked 3142N/A #@TestName indexes_dynamic_add 3142N/A #@TestPurpose check if the user can add her own indexes 3142N/A #@TestStep iterate through filters prior to adding indexes 3142N/A #@TestStep iterate through filters after to adding indexes 3142N/A #@TestResult Success if entry are indexed correctly 3853N/A <
block name="'indexes_dynamic_add'">
3853N/A CurrentTestPath['suite'] = STAXCurrentBlock
3853N/A <
call function="'testSuite_Preamble'"/>
3142N/A <
call function="'loopThroughFilters'">
3142N/A { 'filters' : 'before-add' }
5064N/A <
testcase name="getTestCaseName('Add and rebuild l index')">
5064N/A <
call function="'testCase_Preamble'"/>
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'addIndex',
5064N/A 'functionMessage' : 'Adding presence and equality index to \
5064N/A 'functionArguments' : { 'indexAttribute' : 'l',
5064N/A 'indexTypes' : [ 'presence',
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'rebuildIndexWithScript' ,
5064N/A { 'location' : STAF_REMOTE_HOSTNAME,
5064N/A 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5064N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5064N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
5064N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
5064N/A 'dsBaseDN' : DIRECTORY_INSTANCE_SFX,
5064N/A <
call function="'testCase_Postamble'"/>
3142N/A <
call function="'loopThroughFilters'">
5064N/A { 'filters' : 'after-add' }
5098N/A <
testcase name="getTestCaseName('Remove l index and rebuild all indexes')">
5098N/A <
call function="'testCase_Preamble'"/>
5098N/A <
call function="'runFunction'">
5098N/A { 'functionName' : 'removeIndex',
5098N/A 'functionMessage' : 'Removing index on attribute l' ,
5098N/A 'functionArguments' : { 'indexAttribute' : 'l' }
5098N/A <
call function="'testCase_Postamble'"/>
3142N/A <
message log="1" level="'fatal'">
3142N/A 'Fatal Error: Failed to add index for attribute l'
3142N/A <
message log="1" level="'fatal'">
3142N/A 'Fatal Error: Failed to rebuild index for attribute l'
3853N/A <
call function="'testSuite_Postamble'"/>
1976N/A <
function name="indexes_remove" scope="local">
1976N/A This test does a bunch of searches on the 1976N/A and then verifies that it worked 3142N/A #@TestIssue TODO: look up the issue in issue tracker 3142N/A #@TestPurpose Check if the user can remove indexes 3142N/A #@TestStep iterate through filters prior to removing index 3142N/A #@TestStep iterate through filters after to removing index 3142N/A #@TestResult Success if entry are indexed as expected 3853N/A <
block name="'indexes_remove'">
3853N/A CurrentTestPath['suite'] = STAXCurrentBlock
3853N/A <
call function="'testSuite_Preamble'"/>
5098N/A <
testcase name="getTestCaseName('Add and rebuild l index')">
5098N/A <
call function="'testCase_Preamble'"/>
5098N/A <
call function="'runFunction'">
5098N/A { 'functionName' : 'addIndex',
5098N/A 'functionMessage' : 'Adding presence and equality index to \
5098N/A 'functionArguments' : { 'indexAttribute' : 'l',
5098N/A 'indexTypes' : [ 'presence',
5098N/A <
call function="'runFunction'">
5098N/A { 'functionName' : 'StopDsWithScript',
5098N/A 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME,
5098N/A 'dsHost' : DIRECTORY_INSTANCE_HOST,
5098N/A 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5098N/A 'dsBindDN' : DIRECTORY_INSTANCE_DN,
5098N/A 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD
5098N/A <
call function="'runFunction'">
5098N/A { 'functionName' : 'rebuildIndexWithScript' ,
5098N/A 'functionArguments' : { 'dsBaseDN' : DIRECTORY_INSTANCE_SFX ,
5098N/A <
call function="'runFunction'">
5098N/A { 'functionName' : 'StartDsWithScript',
5098N/A 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME }
5098N/A <!--- Check that DS started --> 5098N/A <
call function="'isAlive'">
5098N/A <
call function="'testCase_Postamble'"/>
1976N/A <
call function="'loopThroughFilters'">
1976N/A { 'filters' : 'before-remove' }
5064N/A <
testcase name="getTestCaseName('Remove l index')">
5064N/A <
call function="'testCase_Preamble'"/>
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'removeIndex',
5064N/A 'functionMessage' : 'Removing index on attribute l' ,
5064N/A 'functionArguments' : { 'indexAttribute' : 'l' }
5064N/A <
call function="'testCase_Postamble'"/>
1976N/A <
call function="'loopThroughFilters'">
1976N/A { 'filters' : 'after-remove' }
3142N/A <
message log="1" level="'fatal'">
3142N/A 'Fatal Error: Failed to remove index for attribute l'
3853N/A <
call function="'testSuite_Postamble'"/>
1976N/A <
function name="indexes_entry_limit">
1976N/A This test does a bunch of searches on the 1976N/A and then verifies that it worked 3142N/A #@TestIssue TODO: look up the issue in issue tracker 3142N/A #@TestPurpose Check if the user can remove indexes 3142N/A #@TestStep iterate through filters prior to removing index 3142N/A #@TestStep iterate through filters after to removing index 3142N/A #@TestResult Success if entry are indexed as expected 3853N/A <
block name="'indexes_entry_limit'">
3853N/A CurrentTestPath['suite'] = STAXCurrentBlock
3853N/A <
call function="'testSuite_Preamble'"/>
1976N/A <
call function="'loopThroughFilters'">
5619N/A { 'filters' : 'before-modify' }
5064N/A <
testcase name="getTestCaseName('Modify uid index')">
5064N/A <
call function="'testCase_Preamble'"/>
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'modifyIndex',
5064N/A 'functionMessage' : 'Modify index entry limit on attribute \
5064N/A 'functionArguments' : { 'operation' : 'set',
5064N/A 'indexProperty' : 'index-entry-limit',
5064N/A <
call function="'testCase_Postamble'"/>
1976N/A <
call function="'loopThroughFilters'">
5619N/A { 'filters' : 'before-modify' }
3142N/A <
message log="1" level="'fatal'">
3142N/A 'Fatal Error: Failed to remove index for attribute l'
3853N/A <
call function="'testSuite_Postamble'"/>
2055N/A <
function name="indexes_vlv_add">
2055N/A This test does a bunch of searches on the 2055N/A and then verifies that it worked 3142N/A #@TestIssue TODO: look up the issue in issue tracker 3142N/A #@TestPurpose Check if the user can remove indexes 3142N/A #@TestStep iterate through filters prior to removing index 3142N/A #@TestStep iterate through filters after to removing index 3142N/A #@TestResult Success if entry are indexed as expected 3853N/A <
block name="'indexes_vlv_add'">
3853N/A CurrentTestPath['suite'] = STAXCurrentBlock
3853N/A <
call function="'testSuite_Preamble'"/>
2055N/A <
call function="'loopThroughFilters'">
5619N/A { 'filters' : 'before-modify' }
5064N/A <
testcase name="getTestCaseName('Modify uid index')">
5064N/A <
call function="'testCase_Preamble'"/>
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'modifyIndex',
5064N/A 'functionMessage' : 'Modify index entry limit on attribute \
5064N/A 'functionArguments' : { 'operation' : 'set',
5064N/A 'indexProperty' : 'index-entry-limit' ,
5064N/A <
call function="'testCase_Postamble'"/>
2055N/A <
call function="'loopThroughFilters'">
5619N/A { 'filters' : 'before-modify' }
3142N/A <
message log="1" level="'fatal'">
3142N/A 'Fatal Error: Failed to remove index for attribute l'
3853N/A <
call function="'testSuite_Postamble'"/>
1914N/A <
function name="loopThroughFilters" scope="local">
1914N/A <
function-
arg-
def name="filters" type="required" />
3142N/A "Describes an index test with indexed attribute, filter to test with \
4616N/A def __init__(self, attribute,testName,filter,expectedValue,isIndexed):
1625N/A <
iterate var="test" in="indexTests">
1914N/A indexTestNumber=indexTestNumber+1
3853N/A <
testcase name="getTestCaseName('%s: %03d-%03d.%s: %s%02d') 3853N/A % (filters, len(indexTests)-indexTestNumber, indexTestNumber, 5064N/A <
call function="'testCase_Preamble'"/>
1875N/A <
message log="1" level="'trace'">
3142N/A 'Searching attribute [%s] with filter[%s]' \
1625N/A <
call function="'SearchObject'">
3142N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
3142N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT,
3142N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
3142N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
3142N/A 'dsBaseDN' : 'ou=People,dc=example,%s' \
5064N/A 'attributes' : 'debugsearchindex'
5064N/A searchReturnCode, searchResultString = STAXResult[0]
5064N/A # chop off the first line that contains the dn
5064N/A # join multiple lines into a single one
5064N/A '%s\nsearchReturnCode=[%s]\nldapsearch return \
5064N/A string=[%s]\nchunk to parse=[%s]\nstring looked for=[%s]' \
5064N/A <
call function="'testCase_Postamble'"/>
1625N/A <!-- Setup the instance for indexes tests --> 1875N/A <
function name="indexes_setup">
3853N/A <
block name="'indexes_setup'">
3853N/A CurrentTestPath['suite'] = STAXCurrentBlock
3853N/A <
call function="'testSuite_Preamble'"/>
5064N/A <
testcase name="getTestCaseName('Setup')">
5064N/A <
call function="'testCase_Preamble'"/>
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'createTopology',
5064N/A 'functionArguments' : { 'initialiseInstance' : True }
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'StartDsWithScript' ,
5064N/A 'functionMessage' : 'Start DS to run on port %s' \
5064N/A % (DIRECTORY_INSTANCE_PORT) ,
5064N/A 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME }
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'isAlive',
5064N/A 'functionMessage' : 'Checking if the server is available',
5064N/A 'functionArguments' : { 'noOfLoops' : 10,
5064N/A <
call function="'testCase_Postamble'"/>
3853N/A <
call function="'testSuite_Postamble'"/>
1625N/A <!-- cleanup after the tests --> 1875N/A <
function name="indexes_cleanup">
3853N/A <
block name="'indexes_cleanup'">
3853N/A CurrentTestPath['suite'] = STAXCurrentBlock
3853N/A <
call function="'testSuite_Preamble'"/>
5064N/A <
testcase name="getTestCaseName('Cleanup')">
5064N/A <
call function="'testCase_Preamble'"/>
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'StopDsWithScript' ,
5064N/A 'functionMessage' : 'Stop DS running on port %s' \
5064N/A % (DIRECTORY_INSTANCE_PORT),
5064N/A 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME,
5064N/A 'dsHost' : DIRECTORY_INSTANCE_HOST,
5064N/A 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5064N/A 'dsBindDN' : DIRECTORY_INSTANCE_DN,
5064N/A 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD }
5064N/A <
call function="'runFunction'">
5064N/A { 'functionName' : 'removeTopology',
5064N/A 'functionMessage' : 'Remove DS topology created for the Test Suite'
5064N/A <
call function="'testCase_Postamble'"/>
3853N/A <
call function="'testSuite_Postamble'"/>