[Bps-public-commit] RT-Extension-LDAPImport branch, master, updated. 0.33_02-2-g2b3e4a6

Thomas Sibley trs at bestpractical.com
Thu Jan 31 14:35:58 EST 2013


The branch, master has been updated
       via  2b3e4a61fc47cee7ad6e0050a411711de1f5fb1c (commit)
      from  60058f98b051783919b8c214c4ae0a1ee796b5ad (commit)

Summary of changes:
 t/group-import.t           | 1 +
 t/user-import-cfs.t        | 2 ++
 t/user-import-privileged.t | 2 ++
 t/user-import.t            | 2 ++
 4 files changed, 7 insertions(+)

- Log -----------------------------------------------------------------
commit 2b3e4a61fc47cee7ad6e0050a411711de1f5fb1c
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Thu Jan 31 11:34:39 2013 -0800

    Explicitly create the base DN we use in tests
    
    Net::LDAP::Server::Test 0.16 requires that the base DN exist or it
    throws an "Object not found" LDAP error.  Tests now pass under this
    version.

diff --git a/t/group-import.t b/t/group-import.t
index 6d28e80..4515c7d 100644
--- a/t/group-import.t
+++ b/t/group-import.t
@@ -17,6 +17,7 @@ ok( my $server = Net::LDAP::Server::Test->new( $ldap_port, auto_schema => 1 ),
     "spawned test LDAP server on port $ldap_port");
 my $ldap = Net::LDAP->new("localhost:$ldap_port");
 $ldap->bind();
+$ldap->add("dc=bestpractical,dc=com");
 
 my @ldap_user_entries;
 for ( 1 .. 12 ) {
diff --git a/t/user-import-cfs.t b/t/user-import-cfs.t
index 3ab1c03..4f17a42 100644
--- a/t/user-import-cfs.t
+++ b/t/user-import-cfs.t
@@ -33,6 +33,8 @@ ok( my $server = Net::LDAP::Server::Test->new( $ldap_port, auto_schema => 1 ),
 
 my $ldap = Net::LDAP->new("localhost:$ldap_port");
 $ldap->bind();
+$ldap->add("ou=foo,dc=bestpractical,dc=com");
+
 my @ldap_entries;
 for ( 0 .. 12 ) {
     my $username = "testuser$_";
diff --git a/t/user-import-privileged.t b/t/user-import-privileged.t
index abca38b..337d862 100644
--- a/t/user-import-privileged.t
+++ b/t/user-import-privileged.t
@@ -18,6 +18,8 @@ ok( my $server = Net::LDAP::Server::Test->new( $ldap_port, auto_schema => 1 ),
 
 my $ldap = Net::LDAP->new("localhost:$ldap_port");
 $ldap->bind();
+$ldap->add("ou=foo,dc=bestpractical,dc=com");
+
 my @ldap_entries;
 for ( 1 .. 13 ) {
     my $username = "testuser$_";
diff --git a/t/user-import.t b/t/user-import.t
index 2611818..ba485a4 100644
--- a/t/user-import.t
+++ b/t/user-import.t
@@ -18,6 +18,8 @@ ok( my $server = Net::LDAP::Server::Test->new( $ldap_port, auto_schema => 1 ),
 
 my $ldap = Net::LDAP->new("localhost:$ldap_port");
 $ldap->bind();
+$ldap->add("ou=foo,dc=bestpractical,dc=com");
+
 my @ldap_entries;
 for ( 1 .. 13 ) {
     my $username = "testuser$_";

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list