'rebuild-index: try to rebuild a single index while the server \
is running'
{
'dsBaseDN' : 'dc=com' ,
'dsIndexList' : [ 'uid' ] ,
'expectedRC' : 1
}
{
'returnString' : returnString ,
'expectedString' : '%s %s' % (msg1, msg2)
}
'rebuild-index: create a new index for the other testcases'
{
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'subcommand' : 'create-local-db-index' ,
'objectType' : 'backend-name' ,
'objectName' : 'userRoot' ,
'optionsString' : '--index-name st --set index-type:equality'
}
'rebuild-index: stop the server'
{ 'location' : STAF_REMOTE_HOSTNAME }
'rebuild-index: rebuild a single index with the server stopped'
{
'dsBaseDN' : 'dc=com' ,
'dsIndexList' : [ 'uid' ]
}
{
'returnString' : returnString ,
'expectedString' : '%s %s' % (msg1, msg2)
}
{
'returnString' : returnString ,
'expectedString' : 'Rebuild complete. Processed 1047 records'
}
'rebuild-index: without index'
{
'dsBaseDN' : 'dc=com' ,
'expectedRC' : 1
}
{
'returnString' : returnString ,
'expectedString' : '%s %s' % (msg1, msg2)
}
'rebuild-index: multiple indexes'
{
'dsBaseDN' : 'dc=com' ,
'dsIndexList' : [ 'uid', 'cn' ]
}
{
'returnString' : returnString ,
'expectedString' : '%s %s' % (msg1, msg2)
}
{
'returnString' : returnString ,
'expectedString' : 'Rebuild complete. Processed 2094 records'
}
'rebuild-index: non existing index'
{
'dsBaseDN' : 'dc=com' ,
'dsIndexList' : [ 'myindex' ] ,
'expectedRC' : 1
}
{
'returnString' : returnString ,
'expectedString' : '%s %s' % (msg1, msg2)
}
'rebuild-index: verify index st before rebuild'
{
'dsBaseDN' : 'dc=com' ,
'dsIndexList' : [ 'st' ]
}
{
'returnString' : returnString ,
'expectedString' : '%s %s %s' % (msg1, msg2, msg3)
}
{
'returnString' : returnString ,
'expectedString' : '%s %s' % (msg1, msg2)
}
{
'returnString' : returnString ,
'expectedString' : '%s %s' % (msg1, msg2)
}
'rebuild-index: rebuild index st'
{
'dsBaseDN' : 'dc=com' ,
'dsIndexList' : [ 'st' ]
}
{
'returnString' : returnString ,
'expectedString' : '%s %s %s' % (msg1, msg2, msg3)
}
{
'returnString' : returnString ,
'expectedString' : '%s %s' % (msg1, msg2)
}
{
'returnString' : returnString ,
'expectedString' : msg
}
'rebuild-index: verify index st after rebuild'
{
'dsBaseDN' : 'dc=com' ,
'dsIndexList' : [ 'st' ]
}
{
'returnString' : returnString ,
'testString' : '%s %s %s' % (msg1, msg2, msg3)
}
{
'returnString' : returnString ,
'expectedString' : msg
}
'rebuild-index: rebuild again index st'
{
'dsBaseDN' : 'dc=com' ,
'dsIndexList' : [ 'st' ]
}
{
'returnString' : returnString ,
'testString' : '%s %s %s' % (msg1, msg2, msg3)
}
{
'returnString' : returnString ,
'expectedString' : '%s %s' % (msg1, msg2)
}
{
'returnString' : returnString ,
'expectedString' : msg
}
'rebuild-index: start the server'
{ 'location' : STAF_REMOTE_HOSTNAME }
{
'noOfLoops' : 5 ,
'noOfMilliSeconds' : 2000
}