{ 'ldifFile' : '%s/backends/Example.ldif' % remote.data, 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller, ou=People, dc=example,dc=com', 'uid=rhunt, ou=People, dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'noOfLoops' : 10 , 'noOfMilliSeconds' : 2000 } { 'subcommand' : 'create-backend', 'optionsString' : createBackendOptions } { 'ldifFile' : '%s/backends/nonDefault.ldif' % remote.data, 'backEnd' : 'nonDefault' } { 'expectedEntries' : ['uid=scarter,ou=People,dc=non-default,dc=com', 'uid=dmiller, ou=People, dc=non-default,dc=com', 'uid=rhunt, ou=People, dc=non-default,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'ldifFile' : '%s/backends/Include.ldif' % remote.data, 'includeBranches' : ['dc=com'] } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller, ou=People, dc=example,dc=com', 'uid=rhunt, ou=People, dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Include.ldif' % remote.data, 'includeBranches' : ['dc=com'], 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller, ou=People, dc=example,dc=com', 'uid=rhunt, ou=People, dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Include.ldif' % remote.data, 'includeBranches' : ['dc=com','dc=example,dc=com'] } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller, ou=People, dc=example,dc=com', 'uid=rhunt, ou=People, dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com'], 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller, ou=People, dc=example,dc=com', 'uid=rhunt, ou=People, dc=example,dc=com'] , 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com', 'ou=unit1, ou=People, dc=example,dc=com'], 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller, ou=People, dc=example,dc=com', 'uid=rhunt, ou=People, dc=example,dc=com'] , 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com', 'uid=arammell, ou=unit1, ou=People, dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, 'includeBranches' : ['dc=com'], 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com'] } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller, ou=People, dc=example,dc=com', 'uid=rhunt, ou=People, dc=example,dc=com'] , 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Include.ldif' % remote.data, 'includeAttributes' : ['dc'], 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['dc=com','dc=example,dc=com','ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Include.ldif' % remote.data, 'includeAttributes' : ['dc','cn','ou','sn'], 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller, ou=People, dc=example,dc=com', 'uid=rhunt, ou=People, dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, 'excludeAttributes' : ['userpassword'], 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'], 'missingAttributes' : ['userpassword'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, 'excludeAttributes' : ['userpassword','mail','roomnumber'], 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'], 'missingAttributes' : ['userpassword'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Example.ldif' % remote.data, 'includeAttributes' : ['dc','cn','ou','sn'], 'includeBranches' : ['dc=com','dc=example,dc=com','ou=People,dc=example,dc=com'], 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com'] } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller, ou=People, dc=example,dc=com', 'uid=rhunt, ou=People, dc=example,dc=com'], 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Include.ldif' % remote.data, 'includeFilters' : ['objectclass=*'], 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller,ou=People,dc=example,dc=com', 'uid=rhunt,ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, 'excludeFilters' : ['objectclass=person'], 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['dc=example,dc=com', 'ou=People,dc=example,dc=com'], 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller,ou=People,dc=example,dc=com', 'uid=rhunt,ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Include.ldif' % remote.data, 'includeFilters' : ['objectclass=domain','objectclass=organizationalunit'], 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['dc=example,dc=com', 'ou=People,dc=example,dc=com'], 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller,ou=People,dc=example,dc=com', 'uid=rhunt,ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, 'excludeFilters' : ['objectclass=person','objectclass=organizationalunit'], 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['dc=example,dc=com'], 'missingEntries' : ['ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Include.ldif' % remote.data, 'includeFilters' : ['|(objectclass=person)(objectclass=domain)(objectclass=organizationalunit)'], 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller,ou=People,dc=example,dc=com', 'uid=rhunt,ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, 'excludeFilters' : ['&(objectclass=person)(ou=Departed)'], 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=rhunt,ou=People,dc=example,dc=com'], 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Exclude.ldif' % remote.data, 'excludeFilters' : ['&(objectclass=person)(ou=Departed)'], 'includeBranches' : ['dc=com'], 'excludeAttributes' : ['userpassword'] } { 'expectedEntries' : ['uid=rhunt,ou=People,dc=example,dc=com'], 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'ldifFile' : '%s/backends/Example.ldif' % remote.data, 'backEnd' : DIRECTORY_INSTANCE_BE } { 'ldifFile' : '%s/backends/Append.ldif' % remote.data, 'append' : 'TRUE', 'backEnd' : DIRECTORY_INSTANCE_BE } { 'dsBaseDN' : 'dc=example,dc=com', 'expectedEntries' : ['ou=Departed,ou=People,dc=example,dc=com', 'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] , 'expectedNoEntries' : '163' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'ldifFile' : '%s/backends/Example.ldif' % remote.data, 'backEnd' : DIRECTORY_INSTANCE_BE } { 'ldifFile' : '%s/backends/Append.ldif' % remote.data, 'append' : 'TRUE', 'replaceExisting' : 'TRUE', 'backEnd' : DIRECTORY_INSTANCE_BE } { 'dsBaseDN' : 'dc=example,dc=com', 'expectedEntries' : ['ou=Departed,ou=People,dc=example,dc=com', 'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com', 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] , 'expectedNoEntries' : '163' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Example.ldif.gz' % remote.data, 'isCompressed' : 'TRUE', 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller,ou=People,dc=example,dc=com', 'uid=rhunt,ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Example.ldif' % remote.data, 'isEncrypted' : 'TRUE', 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller,ou=People,dc=example,dc=com', 'uid=rhunt,ou=People,dc=example,dc=com'] } { 'returncode' : 1 , 'expected' : 0 , 'result' : 'Encrypted LDIF import is not implemented', 'issue' : 'OPENDJ-448' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Example.ldif' % remote.data, 'isEncrypted' : 'TRUE', 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller,ou=People,dc=example,dc=com', 'uid=rhunt,ou=People,dc=example,dc=com'] } { 'returncode' : 1 , 'expected' : 0 , 'result' : 'Hash Signed LDIF import is not implemented', 'issue' : 'OPENDJ-448' } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Example.ldif' % remote.data, 'rejectFile' : '%s/backends/import_026-rejects.txt' % remote.temp, 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller,ou=People,dc=example,dc=com', 'uid=rhunt,ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Example.ldif' % remote.data, 'rejectFile' : '%s/backends/import_027-rejects.txt' % remote.temp, 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller,ou=People,dc=example,dc=com', 'uid=rhunt,ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Schema.ldif' % remote.data, 'skipSchemaValidation' : 'TRUE', 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=dmiller,ou=People,dc=example,dc=com', 'uid=kwinters,ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo) { 'location' : STAF_REMOTE_HOSTNAME, 'ldifFile' : '%s/backends/Schema.ldif' % remote.data, 'backEnd' : DIRECTORY_INSTANCE_BE } { 'expectedEntries' : ['uid=dmiller,ou=People,dc=example,dc=com'], 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com', 'uid=kwinters,ou=People,dc=example,dc=com'] } '%s: Test failed. eInfo(%s)' % (eType,eInfo)