export.xml revision 75e789577e089751d395faac10873e0285bf3a54
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync<?xml version="1.0" encoding="UTF-8" standalone="no"?>
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync ! CDDL HEADER START
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync ! The contents of this file are subject to the terms of the
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync ! Common Development and Distribution License, Version 1.0 only
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync ! (the "License"). You may not use this file except in compliance
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync ! with the License.
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync ! You can obtain a copy of the license at
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync ! See the License for the specific language governing permissions
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync ! and limitations under the License.
78a072e1b56619e3230735ae073668311232ec94vboxsync ! When distributing Covered Code, exclude this CDDL HEADER in each
78a072e1b56619e3230735ae073668311232ec94vboxsync ! file and exclude the License file at
78a072e1b56619e3230735ae073668311232ec94vboxsync ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
78a072e1b56619e3230735ae073668311232ec94vboxsync ! add the following below this CDDL HEADER, with the fields enclosed
78a072e1b56619e3230735ae073668311232ec94vboxsync ! by brackets "[]" replaced with your own identifying information:
c3d2b15ad840b405062f4c2c6b127d6fc107c7b2vboxsync ! Portions Copyright [yyyy] [name of copyright owner]
c3d2b15ad840b405062f4c2c6b127d6fc107c7b2vboxsync ! CDDL HEADER END
c3d2b15ad840b405062f4c2c6b127d6fc107c7b2vboxsync ! Copyright 2006-2008 Sun Microsystems, Inc.
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync if not CurrentTestPath.has_key('group'):
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync CurrentTestPath['group']='backends'
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync CurrentTestPath['suite']=STAXCurrentBlock
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync <!--- Test Suite information
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync #@TestSuiteName Backend: Export: Export Tests
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync #@TestSuitePurpose Verify that the export functionality is working in the Directory Server.
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync #@TestSuiteID Backend Export Tests
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync #@TestSuiteGroup Export
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestGroup Backend
e7184fff6d89903aed623860629a05047960ac2dvboxsync file="'%s/testcases/backends/backend_setup.xml' % (TESTS_DIR)"/>
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync { 'startDS' : False,
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync 'loadBackend' : True
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync <!-- Create a second instance to import data that was exported from the first instance -->
78a072e1b56619e3230735ae073668311232ec94vboxsync 'Creating another instance for verifing the exports'
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync DsInstancePort = int(DIRECTORY_INSTANCE_PORT)+1
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync DsInstanceSSLPort = int(DIRECTORY_INSTANCE_SSL_PORT)+1
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync DsInstanceDir = '%s/server2' % DIRECTORY_INSTANCE_DIR
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync { 'dsHost' : '%s' % DIRECTORY_INSTANCE_HOST,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsDir' : DsInstanceDir,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsSslPort' : DsInstanceSSLPort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindDN' : '%s' % DIRECTORY_INSTANCE_DN,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindPwd' : '%s' % DIRECTORY_INSTANCE_PSWD,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBaseDN' : '%s' % DIRECTORY_INSTANCE_SFX
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- Set the server backup the way it was before the backend tests -->
78a072e1b56619e3230735ae073668311232ec94vboxsync file="'%s/testcases/quickstart/quickstart.xml' % (TESTS_DIR)"/>
78a072e1b56619e3230735ae073668311232ec94vboxsync <!--- Test Case information
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestMarker Backend Export Tests
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestName Backend: Export: LDIF Default
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestID LDIF Default
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPurpose Verify an export of a LDIF file on the default backend.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPreamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestSteps Client calls exportLDIF with the parameters
08c4185261c17943cff6cc94522579696eeeb478vboxsync default backend, and ldifFile. Import the ldifFile to
08c4185261c17943cff6cc94522579696eeeb478vboxsync a second instance, then do a search to verify the import.
08c4185261c17943cff6cc94522579696eeeb478vboxsync #@TestPostamble
08c4185261c17943cff6cc94522579696eeeb478vboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
08c4185261c17943cff6cc94522579696eeeb478vboxsync <testcase name="getTestCaseName('Export default backend')">
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'Backend: Export: Export default backend'
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'ldifFile' : '%s/backends/Export_default.ldif' % remote.data,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'backEnd' : '%s' % DIRECTORY_INSTANCE_BE
08c4185261c17943cff6cc94522579696eeeb478vboxsync { 'returncode' : RC ,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'result' : STAXResult
08c4185261c17943cff6cc94522579696eeeb478vboxsync { 'ldifFile' : '%s/backends/Export_default.ldif' % remote.data,
9726c89eba6e777f3eb4d57f65ca6171a2241d29vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
08c4185261c17943cff6cc94522579696eeeb478vboxsync { 'returncode' : RC,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'result' : STAXResult
08c4185261c17943cff6cc94522579696eeeb478vboxsync <!-- StartDS -->
08c4185261c17943cff6cc94522579696eeeb478vboxsync { 'location' : mylocation,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- Wait for DS to start -->
08c4185261c17943cff6cc94522579696eeeb478vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfLoops' : 1 ,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'noOfMilliSeconds' : 2000,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'dsInstancePort' : DsInstancePort
034b3d77b1a08b77b1fa9bfd7489997421713f15vboxsync { 'expectedEntries' : ['uid=tmorris,ou=People,dc=example,dc=com',
a6ab77f04b22f0de7691f50dfdee8196024ce26dvboxsync 'uid=kvaughan,ou=People,dc=example,dc=com',
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync 'uid=kwinters,ou=People,dc=example,dc=com'],
a6ab77f04b22f0de7691f50dfdee8196024ce26dvboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
9726c89eba6e777f3eb4d57f65ca6171a2241d29vboxsync 'startDS' : 'no'
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync <!-- StopDS -->
08c4185261c17943cff6cc94522579696eeeb478vboxsync { 'location' : mylocation,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'dsPort' : DsInstancePort,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'dsBindDN' : mydn,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'dsBindPwd' : mypswd
08c4185261c17943cff6cc94522579696eeeb478vboxsync </sequence>
da31d917654e0b617e7a9bf8b0cf786136edf8e8vboxsync </testcase>
08c4185261c17943cff6cc94522579696eeeb478vboxsync <!--- Test Case information
08c4185261c17943cff6cc94522579696eeeb478vboxsync #@TestMarker Backend Export Tests
08c4185261c17943cff6cc94522579696eeeb478vboxsync #@TestName Backend: Export: LDIF Non Default
9726c89eba6e777f3eb4d57f65ca6171a2241d29vboxsync #@TestID LDIF Non Default
08c4185261c17943cff6cc94522579696eeeb478vboxsync #@TestPurpose Verify an export of a LDIF file on a differrent backend to the default.
da31d917654e0b617e7a9bf8b0cf786136edf8e8vboxsync #@TestPreamble
08c4185261c17943cff6cc94522579696eeeb478vboxsync #@TestSteps Client calls exportLDIF with the parameters
08c4185261c17943cff6cc94522579696eeeb478vboxsync non-default backend, and ldifFile
08c4185261c17943cff6cc94522579696eeeb478vboxsync #@TestPostamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestResult Success if Success if exportLDIF, importLDIF returns 0
78a072e1b56619e3230735ae073668311232ec94vboxsync <testcase name="getTestCaseName('Export non-default backend')">
78a072e1b56619e3230735ae073668311232ec94vboxsync 'Backend: Export: Export non-default backend'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'ldifFile' : '%s/backends/Export_schema.ldif' % remote.data,
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync 'backEnd' : 'schema'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync 'result' : STAXResult
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'ldifFile' : '%s/backends/Export_schema.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'backEnd' : 'schema',
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/server2/%s' % (DIRECTORY_INSTANCE_DIR, OPENDSNAME)
78a072e1b56619e3230735ae073668311232ec94vboxsync knownIssue(2173)
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync { 'returncode' : RC ,
22ecc39cb2e9aeb958d702b60fd677e8df0cdc70vboxsync 'result' : STAXResult
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync </sequence>
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync </testcase>
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync <!--- Test Case information
84ac4fe6468b328aadfe9994176e00504338a47avboxsync #@TestMarker Backend Export Tests
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync #@TestName Backend: Export: Fractional Include Branch
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync #@TestID Fractional Include Branch
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync #@TestPurpose Verify an export of a LDIF file specifying a branch that should be included in the export.
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync #@TestPreamble
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync #@TestSteps Client calls exportLDIF with the parameters
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync default backend, an ldifFile, and -b option. Import the ldifFile to
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync a second instance, then do a search to verify the import.
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync #@TestPostamble
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync <testcase name="getTestCaseName('Export Fractional Include Branch')">
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync 'Backend: Export: Export Fractional Include Branch'
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync { 'ldifFile' : '%s/backends/Export_IncludeBranch.ldif' % remote.data,
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync 'extraParams' : '-b "dc=com"'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'ldifFile' : '%s/backends/Export_IncludeBranch.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- StartDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- Wait for DS to start -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfLoops' : 1 ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfMilliSeconds' : 2000,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsInstancePort' : DsInstancePort
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'expectedEntries' : ['uid=tmorris,ou=People,dc=example,dc=com',
78a072e1b56619e3230735ae073668311232ec94vboxsync 'uid=kvaughan,ou=People,dc=example,dc=com',
78a072e1b56619e3230735ae073668311232ec94vboxsync 'uid=kwinters,ou=People,dc=example,dc=com'],
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'startDS' : 'no'
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- StopDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindDN' : mydn,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindPwd' : mypswd
78a072e1b56619e3230735ae073668311232ec94vboxsync </sequence>
78a072e1b56619e3230735ae073668311232ec94vboxsync </testcase>
78a072e1b56619e3230735ae073668311232ec94vboxsync <!--- Test Case information
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestMarker Backend Export Tests
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestName Backend: Export: Fractional Include Branches
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync #@TestID Fractional Include Branches
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync #@TestPurpose Verify an export of a LDIF file specifying multiple branches that should be included in the export.
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync #@TestPreamble
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync #@TestSteps Client calls exportLDIF with the parameters
78a072e1b56619e3230735ae073668311232ec94vboxsync default backend, an ldifFile, and two -b options. Import the ldifFile to
78a072e1b56619e3230735ae073668311232ec94vboxsync a second instance, then do a search to verify the import.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPostamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
78a072e1b56619e3230735ae073668311232ec94vboxsync <testcase name="getTestCaseName('Export Fractional Include Branches')">
ae072e31d733f2a7c9cb1b2b4c4901b66197aadavboxsync 'Backend: Export: Export Fractional Include Branches'
78a072e1b56619e3230735ae073668311232ec94vboxsync 'ldifFile' : '%s/backends/Export_IncludeBranches.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'extraParams' : '-b "dc=com" -b "dc=example,dc=com"'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
34aa2e97a2a6d7c3c0a5be5121edfd51a31281acvboxsync 'result' : STAXResult }
156101683587682f6d63b4af322f611d90b77fcevboxsync { 'ldifFile' : '%s/backends/Export_IncludeBranches.ldif' % remote.data,
156101683587682f6d63b4af322f611d90b77fcevboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
34aa2e97a2a6d7c3c0a5be5121edfd51a31281acvboxsync 'result' : STAXResult }
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- StartDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
34aa2e97a2a6d7c3c0a5be5121edfd51a31281acvboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync <!-- Wait for DS to start -->
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync { 'location' : mylocation,
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync 'noOfLoops' : 1 ,
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync 'noOfMilliSeconds' : 2000,
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync 'dsInstancePort' : DsInstancePort
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'expectedEntries' : ['uid=tmorris,ou=People,dc=example,dc=com',
78a072e1b56619e3230735ae073668311232ec94vboxsync 'uid=kvaughan,ou=People,dc=example,dc=com',
78a072e1b56619e3230735ae073668311232ec94vboxsync 'uid=kwinters,ou=People,dc=example,dc=com'],
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'startDS' : 'no'
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- StopDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindDN' : mydn,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindPwd' : mypswd
78a072e1b56619e3230735ae073668311232ec94vboxsync </sequence>
78a072e1b56619e3230735ae073668311232ec94vboxsync </testcase>
78a072e1b56619e3230735ae073668311232ec94vboxsync <!--- Test Case information
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestMarker Backend Export Tests
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestName Backend: Export: Fractional Exclude Branch
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestID Fractional Exclude Branch
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPurpose Verify an export of a LDIF file specifying a branch that should be excluded in the export.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPreamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestSteps Client calls exportLDIF with the parameters
78a072e1b56619e3230735ae073668311232ec94vboxsync default backend, an ldifFile, and -B option. Import the ldifFile to
78a072e1b56619e3230735ae073668311232ec94vboxsync a second instance, then do a search to verify the import.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPostamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
78a072e1b56619e3230735ae073668311232ec94vboxsync <testcase name="getTestCaseName('Export Fractional Exclude Branch')">
78a072e1b56619e3230735ae073668311232ec94vboxsync 'Backend: Export: Export Fractional Exclude Branch'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'ldifFile' : '%s/backends/Export_ExcludeBranch.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'extraParams' : '-B "dc=example,dc=com"'
34aa2e97a2a6d7c3c0a5be5121edfd51a31281acvboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
ae072e31d733f2a7c9cb1b2b4c4901b66197aadavboxsync { 'ldifFile' : '%s/backends/Export_ExcludeBranch.ldif' % remote.data,
ae072e31d733f2a7c9cb1b2b4c4901b66197aadavboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
ae072e31d733f2a7c9cb1b2b4c4901b66197aadavboxsync <!-- StartDS -->
ae072e31d733f2a7c9cb1b2b4c4901b66197aadavboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- Wait for DS to start -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfLoops' : 1 ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfMilliSeconds' : 2000,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsInstancePort' : DsInstancePort
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'missingEntries' : ['uid=tmorris,ou=People,dc=example,dc=com',
78a072e1b56619e3230735ae073668311232ec94vboxsync 'uid=kvaughan,ou=People,dc=example,dc=com'],
40d48df41519667fa639cfe552c097210b9685acvboxsync 'expectedEntries' : ['dc=com'],
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'startDS' : 'no'
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- StopDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindDN' : mydn,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindPwd' : mypswd
78a072e1b56619e3230735ae073668311232ec94vboxsync </sequence>
78a072e1b56619e3230735ae073668311232ec94vboxsync </testcase>
78a072e1b56619e3230735ae073668311232ec94vboxsync <!--- Test Case information
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestMarker Backend Export Tests
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestName Backend: Export: Fractional Exclude Branches
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestID Fractional Exclude Branches
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPurpose Verify an export of a LDIF file specifying multiple branches that should be excluded in the export.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPreamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestSteps Client calls exportLDIF with the parameters
78a072e1b56619e3230735ae073668311232ec94vboxsync default backend, an ldifFile, and two -B options. Import the ldifFile to
78a072e1b56619e3230735ae073668311232ec94vboxsync a second instance, then do a search to verify the import.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPostamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
78a072e1b56619e3230735ae073668311232ec94vboxsync <testcase name="getTestCaseName('Export Fractional Exclude Branches')">
78a072e1b56619e3230735ae073668311232ec94vboxsync 'Backend: Export: Export Fractional Exclude Branches'
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync { 'ldifFile' : '%s/backends/Export_ExcludeBranches.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'extraParams' : '-B "ou=People,dc=example,dc=com" -B "dc=example,dc=com"'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'ldifFile' : '%s/backends/Export_ExcludeBranches.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'result' : STAXResult
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- StartDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- Wait for DS to start -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfLoops' : 1 ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfMilliSeconds' : 2000,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsInstancePort' : DsInstancePort
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'missingEntries' : ['uid=tmorris,ou=People,dc=example,dc=com',
78a072e1b56619e3230735ae073668311232ec94vboxsync 'uid=kvaughan,ou=People,dc=example,dc=com'],
78a072e1b56619e3230735ae073668311232ec94vboxsync 'expectedEntries' : ['dc=com'],
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'startDS' : 'no'
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- StopDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindDN' : mydn,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindPwd' : mypswd
78a072e1b56619e3230735ae073668311232ec94vboxsync </sequence>
78a072e1b56619e3230735ae073668311232ec94vboxsync </testcase>
40fa6228bd9ab763bc67b51fe6290802e954eb8cvboxsync <!--- Test Case information
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestMarker Backend Export Tests
40fa6228bd9ab763bc67b51fe6290802e954eb8cvboxsync #@TestName Backend: Export: Fractional Branches Mix
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestID Fractional Branches Mix
40fa6228bd9ab763bc67b51fe6290802e954eb8cvboxsync #@TestPurpose Verify an export of a LDIF file specifying a mix of include and exclude branches.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPreamble
40fa6228bd9ab763bc67b51fe6290802e954eb8cvboxsync #@TestSteps Client calls exportLDIF with the parameters
78a072e1b56619e3230735ae073668311232ec94vboxsync default backend, an ldifFile, both -b and -B options. Import the ldifFile to
40fa6228bd9ab763bc67b51fe6290802e954eb8cvboxsync a second instance, then do a search to verify the import.
40fa6228bd9ab763bc67b51fe6290802e954eb8cvboxsync #@TestPostamble
40fa6228bd9ab763bc67b51fe6290802e954eb8cvboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
40fa6228bd9ab763bc67b51fe6290802e954eb8cvboxsync <testcase name="getTestCaseName('Export Fractional Branches Mix')">
319e4aeb44409b63822d495e4edb4cda8e1b158evboxsync 'Backend: Export: Export Fractional Branches Mix'
319e4aeb44409b63822d495e4edb4cda8e1b158evboxsync { 'ldifFile' : '%s/backends/Export_MixBranches.ldif' % remote.data,
319e4aeb44409b63822d495e4edb4cda8e1b158evboxsync 'extraParams' : '-b "dc=com" -B "ou=People,dc=example,dc=com"'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'ldifFile' : '%s/backends/Export_MixBranches.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult }
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- StartDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- Wait for DS to start -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfLoops' : 1 ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfMilliSeconds' : 2000,
eb563d667bee4ab4ac0ba8be38d68f911f1d53eavboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
eb563d667bee4ab4ac0ba8be38d68f911f1d53eavboxsync 'dsInstancePort' : DsInstancePort}
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync { 'missingEntries' : ['uid=tmorris,ou=People,dc=example,dc=com',
78a072e1b56619e3230735ae073668311232ec94vboxsync 'uid=kvaughan,ou=People,dc=example,dc=com'],
78a072e1b56619e3230735ae073668311232ec94vboxsync 'expectedEntries' : ['dc=com','dc=example,dc=com'],
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'startDS' : 'no'}
5142b6456c5cec38e0ee291e235201d4ac73f10bvboxsync <!-- StopDS -->
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindDN' : mydn,
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync 'dsBindPwd' : mypswd
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync </sequence>
36dd9dabf3f64468206cb74145b51245cf7fde54vboxsync </testcase>
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync <!--- Test Case information
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync #@TestMarker Backend Export Tests
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync #@TestName Backend: Export: Fractional Include Attribute
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestID Fractional Include Attribute
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPurpose Verify an export of a LDIF file specifying an attribute that should be included in the export.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPreamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestSteps Client calls exportLDIF with the parameters
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync default backend, an ldifFile, and -i option. Import the ldifFile to
78a072e1b56619e3230735ae073668311232ec94vboxsync a second instance, then do a search to verify the import.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPostamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
78a072e1b56619e3230735ae073668311232ec94vboxsync <testcase name="getTestCaseName('Export Fractional Include Attribute')">
78a072e1b56619e3230735ae073668311232ec94vboxsync 'Backend: Export: Export Fractional Include Attribute'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'ldifFile' : '%s/backends/Export_IncludeAttr.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'extraParams' : '-i dc'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
5142b6456c5cec38e0ee291e235201d4ac73f10bvboxsync 'result' : STAXResult
5142b6456c5cec38e0ee291e235201d4ac73f10bvboxsync { 'ldifFile' : '%s/backends/Export_IncludeAttr.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
5142b6456c5cec38e0ee291e235201d4ac73f10bvboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
5142b6456c5cec38e0ee291e235201d4ac73f10bvboxsync <!-- StartDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- Wait for DS to start -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfLoops' : 1 ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfMilliSeconds' : 2000,
85668909c68b5d0e67c89d6042535b41c4bffeccvboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
85668909c68b5d0e67c89d6042535b41c4bffeccvboxsync 'dsInstancePort' : DsInstancePort
034b3d77b1a08b77b1fa9bfd7489997421713f15vboxsync { 'expectedEntries' : ['dc=com','dc=example,dc=com'],
034b3d77b1a08b77b1fa9bfd7489997421713f15vboxsync 'missingEntries' : ['ou=People,dc=example,dc=com'],
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'startDS' : 'no'
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- StopDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
40fa6228bd9ab763bc67b51fe6290802e954eb8cvboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindDN' : mydn,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindPwd' : mypswd
78a072e1b56619e3230735ae073668311232ec94vboxsync </sequence>
78a072e1b56619e3230735ae073668311232ec94vboxsync </testcase>
78a072e1b56619e3230735ae073668311232ec94vboxsync <!--- Test Case information
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestMarker Backend Export Tests
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestName Backend: Export: Fractional Include Attributes
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestID Fractional Include Attributes
223d0cc6ed8bf5767cb97c734684460b8eae31a8vboxsync #@TestPurpose Verify an export of a LDIF file specifying multiple attributes that should be included in the export.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPreamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestSteps Client calls exportLDIF with the parameters
78a072e1b56619e3230735ae073668311232ec94vboxsync default backend, an ldifFile, and five -i options. Import the ldifFile to
78a072e1b56619e3230735ae073668311232ec94vboxsync a second instance, then do a search to verify the import.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPostamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
78a072e1b56619e3230735ae073668311232ec94vboxsync <testcase name="getTestCaseName('Export Fractional Include Attributes')">
78a072e1b56619e3230735ae073668311232ec94vboxsync 'Backend: Export: Export Fractional Include Attributes'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'ldifFile' : '%s/backends/Export_IncludeAttrs.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'extraParams' : '-i dc -i cn -i ou -i sn -i uid'
223d0cc6ed8bf5767cb97c734684460b8eae31a8vboxsync { 'returncode' : RC ,
223d0cc6ed8bf5767cb97c734684460b8eae31a8vboxsync 'result' : STAXResult
7a731cb139828206e59b084166bebe09e1e4d7c2vboxsync { 'ldifFile' : '%s/backends/Export_IncludeAttrs.ldif' % remote.data,
7a731cb139828206e59b084166bebe09e1e4d7c2vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
b0c4bd49112a99f00ef48b7a8eae6fb310a62bdavboxsync { 'returncode' : RC ,
6208fac57be110a1d341a36c75b362907b82d280vboxsync 'result' : STAXResult
7a731cb139828206e59b084166bebe09e1e4d7c2vboxsync <!-- StartDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
7a731cb139828206e59b084166bebe09e1e4d7c2vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
6208fac57be110a1d341a36c75b362907b82d280vboxsync <!-- Wait for DS to start -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfLoops' : 1 ,
7a731cb139828206e59b084166bebe09e1e4d7c2vboxsync 'noOfMilliSeconds' : 2000,
7a731cb139828206e59b084166bebe09e1e4d7c2vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsInstancePort' : DsInstancePort
04fb270f7378e5e38964b7da92abc2146c96e93avboxsync { 'expectedEntries' : ['uid=tmorris,ou=People,dc=example,dc=com',
04fb270f7378e5e38964b7da92abc2146c96e93avboxsync 'uid=kvaughan,ou=People,dc=example,dc=com',
04fb270f7378e5e38964b7da92abc2146c96e93avboxsync 'uid=kwinters,ou=People,dc=example,dc=com'],
7a731cb139828206e59b084166bebe09e1e4d7c2vboxsync 'missingAttributes' : ['userpassword'],
04fb270f7378e5e38964b7da92abc2146c96e93avboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
04fb270f7378e5e38964b7da92abc2146c96e93avboxsync 'dsPort' : DsInstancePort,
04fb270f7378e5e38964b7da92abc2146c96e93avboxsync 'startDS' : 'no'
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- StopDS -->
e068057c82b010bc7cc663e8f57ac3ef1890a33cvboxsync { 'location' : mylocation,
3f6d4775faa373634b2f3fc2a90fc517733f6fd6vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync 'dsPort' : DsInstancePort,
0614bee07b5f88aa8803df43fde6d7185a9a7fffvboxsync 'dsBindDN' : mydn,
0614bee07b5f88aa8803df43fde6d7185a9a7fffvboxsync 'dsBindPwd' : mypswd
78a072e1b56619e3230735ae073668311232ec94vboxsync </sequence>
78a072e1b56619e3230735ae073668311232ec94vboxsync </testcase>
78a072e1b56619e3230735ae073668311232ec94vboxsync <!--- Test Case information
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestMarker Backend Export Tests
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync #@TestName Backend: Export: Fractional Exclude Attribute
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync #@TestID Fractional Exclude Attribute
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPurpose Verify an export of a LDIF file specifying an attribute that should be excluded in the export.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPreamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestSteps Client calls exportLDIF with the parameters
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync default backend, an ldifFile, and -e option. Import the ldifFile to
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync a second instance, then do a search to verify the import.
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync #@TestPostamble
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync <testcase name="getTestCaseName('Export Fractional Exclude Attribute')">
6208fac57be110a1d341a36c75b362907b82d280vboxsync 'Backend: Export: Export Fractional Exclude Attribute'
6208fac57be110a1d341a36c75b362907b82d280vboxsync { 'ldifFile' : '%s/backends/Export_ExcludeAttr.ldif' % remote.data,
6208fac57be110a1d341a36c75b362907b82d280vboxsync 'extraParams' : '-e userpassword'
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync { 'returncode' : RC ,
6208fac57be110a1d341a36c75b362907b82d280vboxsync 'result' : STAXResult
6208fac57be110a1d341a36c75b362907b82d280vboxsync { 'ldifFile' : '%s/backends/Export_ExcludeAttr.ldif' % remote.data,
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
6208fac57be110a1d341a36c75b362907b82d280vboxsync { 'returncode' : RC ,
6208fac57be110a1d341a36c75b362907b82d280vboxsync 'result' : STAXResult
6208fac57be110a1d341a36c75b362907b82d280vboxsync <!-- StartDS -->
6208fac57be110a1d341a36c75b362907b82d280vboxsync { 'location' : mylocation,
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
6208fac57be110a1d341a36c75b362907b82d280vboxsync <!-- Wait for DS to start -->
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync { 'location' : mylocation,
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync 'noOfLoops' : 1 ,
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync 'noOfMilliSeconds' : 2000,
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync 'dsInstancePort' : DsInstancePort
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync { 'expectedEntries' : ['uid=tmorris,ou=People,dc=example,dc=com'],
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync 'missingAttributes' : ['userpassword'],
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
2d86fd6bcfe35a4bb83bb8a4fe68090693cdce95vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'startDS' : 'no'
22ecc39cb2e9aeb958d702b60fd677e8df0cdc70vboxsync <!-- StopDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindDN' : mydn,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindPwd' : mypswd
6208fac57be110a1d341a36c75b362907b82d280vboxsync </sequence>
6208fac57be110a1d341a36c75b362907b82d280vboxsync </testcase>
6208fac57be110a1d341a36c75b362907b82d280vboxsync <!--- Test Case information
6208fac57be110a1d341a36c75b362907b82d280vboxsync #@TestMarker Backend Export Tests
6208fac57be110a1d341a36c75b362907b82d280vboxsync #@TestName Backend: Export: Fractional Exclude Attributes
6208fac57be110a1d341a36c75b362907b82d280vboxsync #@TestID Fractional Exclude Attributes
6208fac57be110a1d341a36c75b362907b82d280vboxsync #@TestPurpose Verify an export of a LDIF file specifying multiple attribute that should be excluded in the export.
6208fac57be110a1d341a36c75b362907b82d280vboxsync #@TestPreamble
6208fac57be110a1d341a36c75b362907b82d280vboxsync #@TestSteps Client calls exportLDIF with the parameters
6208fac57be110a1d341a36c75b362907b82d280vboxsync default backend, an ldifFile, and three -e options. Import the ldifFile to
6208fac57be110a1d341a36c75b362907b82d280vboxsync a second instance, then do a search to verify the import.
6208fac57be110a1d341a36c75b362907b82d280vboxsync #@TestPostamble
6208fac57be110a1d341a36c75b362907b82d280vboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
6208fac57be110a1d341a36c75b362907b82d280vboxsync <testcase name="getTestCaseName('Export Fractional Exclude Attributes')">
6208fac57be110a1d341a36c75b362907b82d280vboxsync 'Backend: Export: Export Fractional Exclude Attributes'
6208fac57be110a1d341a36c75b362907b82d280vboxsync { 'ldifFile' : '%s/backends/Export_ExcludeAttrs.ldif' % remote.data,
6208fac57be110a1d341a36c75b362907b82d280vboxsync 'extraParams' : '-e userpassword -e mail -e roomnumber'
7f885f0672b805f94731e4b10ca8bdfaa2ba0e74vboxsync { 'returncode' : RC ,
7f885f0672b805f94731e4b10ca8bdfaa2ba0e74vboxsync 'result' : STAXResult
6208fac57be110a1d341a36c75b362907b82d280vboxsync { 'ldifFile' : '%s/backends/Export_ExcludeAttrs.ldif' % remote.data,
22ecc39cb2e9aeb958d702b60fd677e8df0cdc70vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
22ecc39cb2e9aeb958d702b60fd677e8df0cdc70vboxsync 'result' : STAXResult
22ecc39cb2e9aeb958d702b60fd677e8df0cdc70vboxsync <!-- StartDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
6208fac57be110a1d341a36c75b362907b82d280vboxsync <!-- Wait for DS to start -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfLoops' : 1 ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfMilliSeconds' : 2000,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsInstancePort' : DsInstancePort
b0c4bd49112a99f00ef48b7a8eae6fb310a62bdavboxsync { 'expectedEntries' : ['uid=tmorris,ou=People,dc=example,dc=com',
78a072e1b56619e3230735ae073668311232ec94vboxsync 'uid=kvaughan,ou=People,dc=example,dc=com',
78a072e1b56619e3230735ae073668311232ec94vboxsync 'uid=kwinters,ou=People,dc=example,dc=com'],
78a072e1b56619e3230735ae073668311232ec94vboxsync 'missingAttributes' : ['userpassword','mail','roomnumber'],
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'startDS' : 'no'
08c4185261c17943cff6cc94522579696eeeb478vboxsync <!-- StopDS -->
08c4185261c17943cff6cc94522579696eeeb478vboxsync { 'location' : mylocation,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'dsPort' : DsInstancePort,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'dsBindDN' : mydn,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'dsBindPwd' : mypswd
78a072e1b56619e3230735ae073668311232ec94vboxsync </sequence>
78a072e1b56619e3230735ae073668311232ec94vboxsync </testcase>
78a072e1b56619e3230735ae073668311232ec94vboxsync <!--- Test Case information
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestMarker Backend Export Tests
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestName Backend: Export: Fractional Mix
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestID Fractional Mix
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPurpose Verify an export of a LDIF file specifying a mix of fractional attributes and branches.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPreamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestSteps Client calls exportLDIF with the parameters
78a072e1b56619e3230735ae073668311232ec94vboxsync default backend, an ldifFile, and mixed -i, -b, and -B options. Import the ldifFile to
78a072e1b56619e3230735ae073668311232ec94vboxsync a second instance, then do a search to verify the import.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPostamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
78a072e1b56619e3230735ae073668311232ec94vboxsync <testcase name="getTestCaseName('Export Fractional Mix')">
78a072e1b56619e3230735ae073668311232ec94vboxsync 'Backend: Export: Export Fractional Mix'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'ldifFile' : '%s/backends/Export_FractionalMix.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'extraParams' : '-i dc -i cn -i ou -i sn -i uid -b "dc=com" -b "dc=example,dc=com" -b "ou=People,dc=example,dc=com" -B "ou=Departed,ou=People,dc=example,dc=com"'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'ldifFile' : '%s/backends/Export_FractionalMix.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
08c4185261c17943cff6cc94522579696eeeb478vboxsync { 'returncode' : RC ,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'result' : STAXResult
08c4185261c17943cff6cc94522579696eeeb478vboxsync <!-- StartDS -->
08c4185261c17943cff6cc94522579696eeeb478vboxsync { 'location' : mylocation,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
b9efdf4f2f5a547f76dc2e254656d83cab80ce73vboxsync <!-- Wait for DS to start -->
3f6d4775faa373634b2f3fc2a90fc517733f6fd6vboxsync { 'location' : mylocation,
3f6d4775faa373634b2f3fc2a90fc517733f6fd6vboxsync 'noOfLoops' : 1 ,
84ac4fe6468b328aadfe9994176e00504338a47avboxsync 'noOfMilliSeconds' : 2000,
84ac4fe6468b328aadfe9994176e00504338a47avboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
84ac4fe6468b328aadfe9994176e00504338a47avboxsync 'dsInstancePort' : DsInstancePort
10b0a25d6ecfb29654983229f431be0a5cfbff77vboxsync { 'expectedEntries' : ['uid=tmorris,ou=People,dc=example,dc=com',
10b0a25d6ecfb29654983229f431be0a5cfbff77vboxsync 'uid=kvaughan,ou=People,dc=example,dc=com',
10b0a25d6ecfb29654983229f431be0a5cfbff77vboxsync 'uid=kwinters,ou=People,dc=example,dc=com'],
3f6d4775faa373634b2f3fc2a90fc517733f6fd6vboxsync 'missingAttributes' : ['userpassword'],
3f6d4775faa373634b2f3fc2a90fc517733f6fd6vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync 'dsPort' : DsInstancePort,
84ac4fe6468b328aadfe9994176e00504338a47avboxsync 'startDS' : 'no'
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync <!-- StopDS -->
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync { 'location' : mylocation,
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync 'dsPort' : DsInstancePort,
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync 'dsBindDN' : mydn,
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync 'dsBindPwd' : mypswd
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync </sequence>
b9c1c047d827938b96c8c148c855cbe7f304e5f7vboxsync </testcase>
b9c1c047d827938b96c8c148c855cbe7f304e5f7vboxsync <!--- Test Case information
b9c1c047d827938b96c8c148c855cbe7f304e5f7vboxsync #@TestMarker Backend Export Tests
b9c1c047d827938b96c8c148c855cbe7f304e5f7vboxsync #@TestName Backend: Export: Filtered Include
b9c1c047d827938b96c8c148c855cbe7f304e5f7vboxsync #@TestID Filtered Include
b9c1c047d827938b96c8c148c855cbe7f304e5f7vboxsync #@TestPurpose Verify an export of a LDIF file specifying a search filter control which entries are included in the export.
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync #@TestPreamble
22ecc39cb2e9aeb958d702b60fd677e8df0cdc70vboxsync #@TestSteps Client calls exportLDIF with the parameters
e1273e247f21b61fae280d2aa95a7f4a0850bb46vboxsync default backend, an ldifFile, and -I option. Import the ldifFile to
5142b6456c5cec38e0ee291e235201d4ac73f10bvboxsync a second instance, then do a search to verify the import.
e3197fda68ad1e45cc3004f5b58a326a5270aa8fvboxsync #@TestPostamble
e3197fda68ad1e45cc3004f5b58a326a5270aa8fvboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
5142b6456c5cec38e0ee291e235201d4ac73f10bvboxsync <testcase name="getTestCaseName('Export Filtered Include')">
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync 'Backend: Export: Export Filtered Include'
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync { 'ldifFile' : '%s/backends/Export_FilteredInclude.ldif' % remote.data,
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync 'extraParams' : '-I "objectclass=*"'
08c4185261c17943cff6cc94522579696eeeb478vboxsync { 'returncode' : RC ,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'result' : STAXResult
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'ldifFile' : '%s/backends/Export_FilteredInclude.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- StartDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync <!-- Wait for DS to start -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfLoops' : 1 ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfMilliSeconds' : 2000,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsInstancePort' : DsInstancePort
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync { 'expectedEntries' : ['uid=tmorris,ou=People,dc=example,dc=com',
78a072e1b56619e3230735ae073668311232ec94vboxsync 'uid=kvaughan,ou=People,dc=example,dc=com',
78a072e1b56619e3230735ae073668311232ec94vboxsync 'uid=kwinters,ou=People,dc=example,dc=com'],
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'startDS' : 'no'
f001a45ec92f71f1e4c1015485fc1ddf84e8059cvboxsync <!-- StopDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindDN' : mydn,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindPwd' : mypswd
78a072e1b56619e3230735ae073668311232ec94vboxsync </sequence>
78a072e1b56619e3230735ae073668311232ec94vboxsync </testcase>
78a072e1b56619e3230735ae073668311232ec94vboxsync <!--- Test Case information
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestMarker Backend Export Tests
3f6d4775faa373634b2f3fc2a90fc517733f6fd6vboxsync #@TestName Backend: Export: Filtered Includes
3f6d4775faa373634b2f3fc2a90fc517733f6fd6vboxsync #@TestID Filtered Includes
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync #@TestPurpose Verify an export of a LDIF file specifying a search filter control which entries are included in the export.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPreamble
22ecc39cb2e9aeb958d702b60fd677e8df0cdc70vboxsync #@TestSteps Client calls exportLDIF with the parameters
22ecc39cb2e9aeb958d702b60fd677e8df0cdc70vboxsync default backend, an ldifFile, and two -I options. Import the ldifFile to
22ecc39cb2e9aeb958d702b60fd677e8df0cdc70vboxsync a second instance, then do a search to verify the import.
22ecc39cb2e9aeb958d702b60fd677e8df0cdc70vboxsync #@TestPostamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
78a072e1b56619e3230735ae073668311232ec94vboxsync <testcase name="getTestCaseName('Export Filtered Includes')">
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'Backend: Export: Export Filtered Includes'
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync { 'ldifFile' : '%s/backends/Export_FilteredIncludes.ldif' % remote.data,
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'extraParams' : '-I "objectclass=domain" -I "objectclass=organizationalunit"'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync { 'ldifFile' : '%s/backends/Export_FilteredIncludes.ldif' % remote.data,
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
3f6d4775faa373634b2f3fc2a90fc517733f6fd6vboxsync <!-- StartDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync <!-- Wait for DS to start -->
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync { 'location' : mylocation,
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'noOfLoops' : 1 ,
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'noOfMilliSeconds' : 2000,
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'dsInstancePort' : DsInstancePort
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync { 'expectedEntries' : ['dc=example,dc=com', 'dc=com'],
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'uid=dmiller,ou=People,dc=example,dc=com',
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'uid=rhunt,ou=People,dc=example,dc=com'],
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'dsPort' : DsInstancePort,
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'startDS' : 'no'}
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync <!-- StopDS -->
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync { 'location' : mylocation,
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'dsPort' : DsInstancePort,
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'dsBindDN' : mydn,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindPwd' : mypswd
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync </sequence>
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync </testcase>
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync <!--- Test Case information
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestMarker Backend Export Tests
40fa6228bd9ab763bc67b51fe6290802e954eb8cvboxsync #@TestName Backend: Export: Filtered Exclude
40fa6228bd9ab763bc67b51fe6290802e954eb8cvboxsync #@TestID Filtered Exclude
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPurpose Verify an export of a LDIF file specifying search filter control which entries are excluded in the export.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPreamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestSteps Client calls exportLDIF with the parameters
78a072e1b56619e3230735ae073668311232ec94vboxsync default backend, an ldifFile, and -E option. Import the ldifFile to
78a072e1b56619e3230735ae073668311232ec94vboxsync a second instance, then do a search to verify the import.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPostamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
78a072e1b56619e3230735ae073668311232ec94vboxsync <testcase name="getTestCaseName('Export Filtered Exclude')">
142b664dbe3b1246e0156eb657a1c858d92fdd0dvboxsync 'Backend: Export: Export Filtered Exclude'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'ldifFile' : '%s/backends/Export_FilteredExclude.ldif' % remote.data,
08c4185261c17943cff6cc94522579696eeeb478vboxsync 'extraParams' : '-E "objectclass=person"'
08c4185261c17943cff6cc94522579696eeeb478vboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'ldifFile' : '%s/backends/Export_FilteredExclude.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- StartDS -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- Wait for DS to start -->
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfLoops' : 1 ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'noOfMilliSeconds' : 2000,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsInstancePort' : DsInstancePort
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync { 'expectedEntries' : ['dc=example,dc=com',
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'ou=People,dc=example,dc=com'],
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'uid=dmiller,ou=People,dc=example,dc=com',
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'uid=rhunt,ou=People,dc=example,dc=com'],
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
f06e830c9fdbc3d9e89867d4429404c5446bc513vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'startDS' : 'no'
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- StopDS -->
40fa6228bd9ab763bc67b51fe6290802e954eb8cvboxsync { 'location' : mylocation,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME),
cc260ed3418d1fd2771d0395f818f76808b60238vboxsync 'dsPort' : DsInstancePort,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindDN' : mydn,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsBindPwd' : mypswd
7eff7a99cc12167a92df5ca1498fbbfeec3d0010vboxsync </sequence>
78a072e1b56619e3230735ae073668311232ec94vboxsync </testcase>
78a072e1b56619e3230735ae073668311232ec94vboxsync <!--- Test Case information
3f6d4775faa373634b2f3fc2a90fc517733f6fd6vboxsync #@TestMarker Backend Export Tests
3f6d4775faa373634b2f3fc2a90fc517733f6fd6vboxsync #@TestName Backend: Export: Filtered Excludes
3f6d4775faa373634b2f3fc2a90fc517733f6fd6vboxsync #@TestID Filtered Excludes
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPurpose Verify an export of a LDIF file specifying multiple search filters control which entries are excluded in the export.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPreamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestSteps Client calls exportLDIF with the parameters
78a072e1b56619e3230735ae073668311232ec94vboxsync default backend, and ldifFile. Import the ldifFile to
78a072e1b56619e3230735ae073668311232ec94vboxsync a second instance, then do a search to verify the import.
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestPostamble
78a072e1b56619e3230735ae073668311232ec94vboxsync #@TestResult Success if exportLDIF, importLDIF, and checkImport returns 0
78a072e1b56619e3230735ae073668311232ec94vboxsync <testcase name="getTestCaseName('Export Filtered Excludes')">
78a072e1b56619e3230735ae073668311232ec94vboxsync 'Backend: Export: Export Filtered Excludes'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'ldifFile' : '%s/backends/Export_FilteredExcludes.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'extraParams' : '-E "objectclass=person" -E "objectclass=organizationalunit"'
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
4812e739fb948c67e874594ecf6ffa14131cb384vboxsync { 'ldifFile' : '%s/backends/Export_FilteredExcludes.ldif' % remote.data,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'dsPath' : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
78a072e1b56619e3230735ae073668311232ec94vboxsync { 'returncode' : RC ,
78a072e1b56619e3230735ae073668311232ec94vboxsync 'result' : STAXResult
78a072e1b56619e3230735ae073668311232ec94vboxsync <!-- StartDS -->
#@TestPurpose Verify an export of a LDIF file specifying multiple search filters control which entries are included in the export.
#@TestPurpose Verify an export of a LDIF file specifying complex search filters control which entries are included in the export.
#@TestPurpose Verify an export of a LDIF file specifying complex search filters control which entries are excluded in the export.
#@TestPurpose Verify an export of a LDIF file specifying that the export process should append to the existing LDIF file.
file="'%s/testcases/backends/backend_cleanup.xml' % (TESTS_DIR)"/>