| | |
| | | <!-- Import data into "master" server --> |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : masterHost, |
| | | 'dsPath' : masterPath, |
| | | 'dsPath' : masterPath, |
| | | 'dsBackEnd' : 'userRoot', |
| | | 'dsLdifFile' : '%s/replication/Example.ldif' % masterDataDir } |
| | | </call> |
| | | |
| | |
| | | <!-- Import data into "master" server --> |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : masterHost, |
| | | 'dsPath' : masterPath, |
| | | 'dsPath' : masterPath, |
| | | 'dsBackEnd' : 'userRoot', |
| | | 'dsLdifFile' : '%s/replication/Example.ldif' % masterDataDir } |
| | | </call> |
| | | |
| | |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : consumer.getHostname(), |
| | | 'dsPath' : '%s/%s' % (consumer.getDir(), OPENDSNAME), |
| | | 'dsPath' : '%s/%s' % (consumer.getDir(), OPENDSNAME), |
| | | 'dsBackEnd' : 'userRoot', |
| | | 'dsLdifFile' : '%s/%s/replication/master_export.ldif' % (consumer.getDir(),relativeDataDir) } |
| | | </call> |
| | | </sequence> |
| | |
| | | <!-- Import data into "master" server --> |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : masterHost, |
| | | 'dsPath' : masterPath, |
| | | 'dsPath' : masterPath, |
| | | 'dsBackEnd' : 'userRoot', |
| | | 'dsLdifFile' : '%s/replication/Example.ldif' % masterDataDir } |
| | | </call> |
| | | |
| | |
| | | |
| | | |
| | | |
| | | <!--- Test Case information |
| | | <!-- Test Case information |
| | | #@TestMarker Replication Schema Replication Tests |
| | | #@TestName Replication: Schema Replication: Delete objectclass |
| | | #@TestID Delete objectclass |
| | |
| | | #@TestSteps |
| | | #@TestPostamble |
| | | #@TestResult |
| | | |
| | | --> |
| | | <testcase name="getTestCaseName('Delete objectclass')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | |
| | | newObjectclass = '( testobjectclass-oid NAME \'testobjectclass-0\' SUP person MAY ( street $ c ) X-ORIGIN \'user defined\' )' |
| | | </script> |
| | | |
| | | <!-- Modify schema in "master" server |
| | | <!-- Modify schema in "master" server --> |
| | | <call function="'modifyAnAttribute'"> |
| | | { 'dsPath' : masterPath, |
| | | 'dsInstanceHost' : masterHost , |
| | |
| | | 'changetype' : 'delete' } |
| | | </call> |
| | | |
| | | <!-- Try to add entry to servers; should be rejected with error 65 (objectclass violation) |
| | | <!-- Try to add entry to servers; should be rejected with error 65 (objectclass violation) --> |
| | | <iterate var="server" in="_topologyServerList"> |
| | | <call function="'addEntry'"> |
| | | { 'location' : clientHost, |
| | |
| | | </call> |
| | | </iterate> |
| | | |
| | | <!-- Verify the synchronization of the schema among the servers in the topology |
| | | <!-- Verify the synchronization of the schema among the servers in the topology --> |
| | | <call function="'verifySchemas'"> |
| | | [ clientHost, clientPath, master, consumerList, '99-user.ldif' ] |
| | | </call> |
| | | |
| | | <!-- Verify the synchronization of the trees among the servers in the topology |
| | | <!-- Verify the synchronization of the trees among the servers in the topology --> |
| | | <call function="'verifyTrees'"> |
| | | [ clientHost, clientPath, master, consumerList, synchroSuffix ] |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | --> |
| | | </testcase> |
| | | |
| | | <import machine="STAF_LOCAL_HOSTNAME" |
| | | file="'%s/testcases/replication/replication_cleanup.xml' % (TESTS_DIR)"/> |
| | |
| | | <!-- Import data into Directory Server --> |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : server1.getHostname() , |
| | | 'dsPath' : '%s/%s' % (server1.getDir(),OPENDSNAME), |
| | | 'dsPath' : '%s/%s' % (server1.getDir(),OPENDSNAME), |
| | | 'dsBackEnd' : 'userRoot', |
| | | 'dsLdifFile' : '%s/replication/Example.ldif' % server1DataDir } |
| | | </call> |
| | | |