[Rt-commit] rt branch 5.0/remove-ldapimport-numeric-username-limit updated. rt-5.0.3-126-gaaff61feff

BPS Git Server git at git.bestpractical.com
Wed Sep 28 18:51:27 UTC 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/remove-ldapimport-numeric-username-limit has been updated
       via  aaff61feff24fb02b7bf49a2922a1d4a468ae798 (commit)
      from  738be6f09de72cb39571dbf4207f8e257ab4063f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit aaff61feff24fb02b7bf49a2922a1d4a468ae798
Author: Blaine Motsinger <blaine at bestpractical.com>
Date:   Wed Sep 28 13:50:49 2022 -0500

    Update ldapimport test for numeric username

diff --git a/t/ldapimport/user-import.t b/t/ldapimport/user-import.t
index c4f6a5934c..ef138ad07e 100644
--- a/t/ldapimport/user-import.t
+++ b/t/ldapimport/user-import.t
@@ -94,11 +94,11 @@ for my $entry (@ldap_entries) {
 # Check that we skipped numeric usernames
 my $user = RT::User->new($RT::SystemUser);
 $user->LoadByCols( EmailAddress => "numeric\@invalid.tld" );
-ok(!$user->Id);
+ok($user->Id, 'User with numeric Name is found by EmailAddress');
 $user->LoadByCols( Name => 9000 );
-ok(!$user->Id);
+ok($user->Id, 'User with numeric Name is found by Name');
 $user->Load( 9000 );
-ok(!$user->Id);
+ok(!$user->Id, 'User id 9000 is not found');
 
 $user->Load('testdisabled');
 ok( $user->Disabled, 'User testdisabled is disabled' );

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

Summary of changes:
 t/ldapimport/user-import.t | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list