{ 'location' : masterHost , 'entry' : ldifFile , 'attribute' : 'TYPE' } 'replication_modify: File %s does not exist, create it' \ % ldifFile 'replication_modify: Make a make-ldif template file' { 'numEntries' : numberOfEntries, 'suffix' : synchroSuffix, 'startFrom' : lowRange, 'additionalAttributes' : True, 'templateFile' : ldifTemplate, 'templateLocation' : masterHost } 'replication_modify: Make the ldif file' { 'location' : masterHost, 'dsPath' : masterPath, 'templateFile' : ldifTemplate, 'ldifFile' : ldifFile } 'replication_modify: File %s exists, do nothing' % ldifFile 'replication_modify: Import large ldif file' { 'location' : masterHost, 'dsPath' : masterPath, 'dsHost' : masterHost, 'dsAdminPort' : master.getAdminPort(), 'dsBindDN' : master.getRootDn(), 'dsBindPwd' : master.getRootPwd() } { 'location' : masterHost, 'dsPath' : masterPath, 'dsBackEnd' : DIRECTORY_INSTANCE_BE, 'dsLdifFile' : ldifFile } { 'returnString' : returnString, 'expectedString' : 'Processed %s entries' % totalEntries } 'replication_modify: 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] } 'Test ECL: Install stand-alone instance whereto replay \ changes' { 'dsHost' : standaloneServer.getHostname(), 'dsDir' : standaloneServer.getDir(), 'dsPort' : standaloneServer.getPort(), 'dsAdminPort' : standaloneServer.getAdminPort(), 'dsSslPort' : standaloneServer.getSslPort(), 'dsJmxPort' : standaloneServer.getJmxPort(), 'dsBindDN' : standaloneServer.getRootDn(), 'dsBindPwd' : standaloneServer.getRootPwd(), 'dsBaseDN' : standaloneServer.getBaseDn() } { 'location' : masterHost, 'srcfile' : ldifFile, 'destfile' : standaloneLdifFile, 'remotehost' : standaloneServer.getHostname() } { 'location' : standaloneServer.getHostname(), 'dsPath' : '%s/%s' % \ (standaloneServer.getDir(), OPENDSNAME), 'dsBackEnd' : DIRECTORY_INSTANCE_BE, 'dsLdifFile' : standaloneLdifFile } { 'location' : standaloneServer.getHostname() } 'replication_modify: Run ldclt modify' 'replication_modify: modify threads' { 'location' : STAF_CLIENT_HOSTNAME, 'dsInstanceHost' : masterHost, 'dsInstancePort' : master.getPort(), 'dsInstanceDn' : master.getRootDn(), 'dsInstancePswd' : master.getRootPwd(), 'dsBaseDn' : baseDN, 'ldcltOptions' : opts, 'outputFile' : 'ldclt_modify-%s.res' % suffix, 'outputPath' : ldcltDir } 'LOOP %s out of %s' % (loop, jvmLoop) 'replication_modify: 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 } 'replication_modify: Test ECL: Read and replay \ changes' { 'location' : standaloneServer.getHostname(), 'standaloneHost' : standaloneServer.getHostname(), 'standalonePort' : standaloneServer.getPort(), 'replicaHost1' : consumer.getHostname(), 'replicaPort1' : consumer.getPort(), 'replicaHost2' : masterHost, 'replicaPort2' : master.getPort(), 'bindDn' : master.getRootDn(), 'bindPswd' : master.getRootPwd(), 'eclMode' : globalExternalChangelogMode, 'queueSize' : 1000, 'outputFilename' : '%s/eclReadAndPlay.output' \ % standaloneServer.getDir() } 'Copy %s/ldclt_modify-%s.res from %s to %s on %s' % \ (ldcltDir, suffix, STAF_CLIENT_HOSTNAME, logs.sut, STAXServiceMachine) { 'location' : STAF_CLIENT_HOSTNAME, 'srcfile' : '%s/ldclt_modify-%s.res' % (ldcltDir, suffix), 'destfile' : '%s/ldclt_modify-%s.res' % (logs.sut, suffix), 'remotehost' : STAXServiceMachine } 'replication_modify: 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_modify: Verify replication is still working' [ _topologyServerList, synchroSuffix ] 'replication_modify: Verify the tree synchronization' [ clientHost, clientPath, master, consumerList, synchroSuffix ] 'replication_modify: Verify the stand-alone server tree \ synchronization' { 'location' : masterHost, 'srcfile' : tmpFile, 'destfile' : attrsToIgnoreFile, 'remotehost' : clientHost } [ clientHost, clientPath, master, [standaloneServer], synchroSuffix, None, attrsToIgnoreFile ] { 'location' : standaloneServer.getHostname() } { 'suiteSuffix' : suffix }