{ 'location' : masterHost , 'entry' : ldifFile , 'attribute' : 'TYPE' } 'replication_search: File %s does not exist, create it' \ % ldifFile 'replication_search: Make a make-ldif template file' { 'numEntries' : numberOfEntries, 'suffix' : synchroSuffix, 'startFrom' : lowRange, 'additionalAttributes' : True, 'templateFile' : ldifTemplate, 'templateLocation' : masterHost } 'replication_search: Make the ldif file' { 'location' : masterHost, 'dsPath' : masterPath, 'templateFile' : ldifTemplate, 'ldifFile' : ldifFile } 'replication_search: File %s exists, do nothing' \ % ldifFile 'replication_search: Import large ldif file' { 'location' : masterHost, 'dsPath' : masterPath, 'dsHost' : masterHost, 'dsAdminPort' : master.getAdminPort(), 'dsBindDN' : master.getRootDn(), 'dsBindPwd' : master.getRootPwd() } { 'location' : masterHost, 'dsPath' : masterPath, 'backEnd' : DIRECTORY_INSTANCE_BE, 'ldifFile' : ldifFile } { 'returnString' : returnString, 'expectedString' : 'Processed 10002 entries' } 'replication_search: Start DS running on %s:%s' % \ (masterHost, master.getPort()) { 'location' : masterHost, 'dsPath' : masterPath } { 'location' : masterHost, 'dsPath' : masterPath, 'dsInstanceHost' : masterHost, 'dsInstancePort' : master.getPort(), 'dsInstanceDn' : master.getRootDn(), 'dsInstancePswd' : master.getRootPwd(), 'noOfLoops' : 10, 'noOfMilliSeconds' : 5000 } { 'location' : clientHost, 'dsPath' : clientPath, 'sourceInstanceHost' : masterHost, 'sourceInstanceAdminPort' : master.getAdminPort(), 'replicationDnList' : [synchroSuffix] } 'replication_search: Run ldclt search' 'replication_search: search threads' { 'location' : STAF_CLIENT_HOSTNAME, 'dsInstanceHost' : masterHost, 'dsInstancePort' : master.getPort(), 'dsInstanceDn' : master.getRootDn(), 'dsInstancePswd' : master.getRootPwd(), 'dsBaseDn' : baseDN, 'ldcltOptions' : opts, 'outputFile' : 'ldclt_search-%s.res' % suffix, 'outputPath' : ldcltDir } 'LOOP %s out of %s' % (loop, jvmLoop) 'replication_search: save jvm information' { 'location' : masterHost, 'dsPath' : masterPath, 'dsInstanceHost' : masterHost, 'dsInstancePort' : master.getPort(), 'dsInstanceDn' : master.getRootDn(), 'dsInstancePswd' : master.getRootPwd(), 'dsBaseDN' : 'cn=JVM Memory Usage,cn=monitor', 'dsFilter' : 'objectclass=*', 'expectedRC' : 'noCheck', 'outputFile' : 'jvm_%s_%s.out' % (suffix, loop), 'outputPath' : masterDir } { 'sleepForMilliSeconds' : jvmSleep } 'Copy %s/ldclt_search-%s.res from %s to %s on %s' % \ (ldcltDir, suffix, STAF_CLIENT_HOSTNAME, logs.sut, STAXServiceMachine) { 'location' : STAF_CLIENT_HOSTNAME, 'srcfile' : '%s/ldclt_search-%s.res' % (ldcltDir, suffix), 'destfile' : '%s/ldclt_search-%s.res' % (logs.sut, suffix), 'remotehost' : STAXServiceMachine } 'replication_search: Check server is still running on \ %s:%s' % (server.getHostname(), server.getPort()) { 'location' : server.getHostname(), 'dsPath' : serverPath, 'dsInstanceHost' : server.getHostname(), 'dsInstancePort' : server.getPort(), 'dsInstanceDn' : server.getRootDn(), 'dsInstancePswd' : server.getRootPwd(), 'noOfLoops' : 10, 'noOfMilliSeconds' : 5000 } 'replication_search: Verify replication is still working' [ _topologyServerList, synchroSuffix ] 'replication_search: Verify the tree synchronization' [ clientHost, clientPath, master, consumerList, synchroSuffix ] { 'suiteSuffix' : suffix }