@@ -155,61 +155,6 @@ my $getGroupsIn = $optionGroup->getGroupsIn();
155
155
cmp_deeply($getGroupsIn , [], ' new: noAdmin prevents the admin group from being added to this group' );
156
156
$optionGroup -> delete ;
157
157
158
- # ###############################################################
159
- #
160
- # LDAP specific group properties
161
- # These tests have to be done on an isolated group that will NEVER
162
- # have getGroups called on it
163
- #
164
- # ###############################################################
165
-
166
- my $ldapProps = WebGUI::Test-> getSmokeLDAPProps();
167
- $session -> db-> setRow(' ldapLink' , ' ldapLinkId' , $ldapProps , $ldapProps -> {ldapLinkId });
168
- my $ldap = WebGUI::LDAPLink-> new($session , $ldapProps -> {ldapLinkId });
169
- is($ldap -> getValue(" ldapLinkId" ),$ldapProps -> {ldapLinkId },' ldap link created properly' );
170
- WebGUI::Test-> addToCleanup($ldap );
171
-
172
- my @shawshank ;
173
-
174
- foreach my $idx (0..$#ldapTests ) {
175
- $shawshank [$idx ] = WebGUI::User-> new($session , " new" );
176
- $shawshank [$idx ]-> username(" shawshank$idx " );
177
- $shawshank [$idx ]-> authMethod(" LDAP" );
178
- my $auth = $shawshank [$idx ]-> authInstance;
179
- $auth -> saveParams($shawshank [$idx ]-> getId,$shawshank [$idx ]-> authMethod,{
180
- connectDN => $ldapTests [$idx ]-> {dn },
181
- ldapConnection => $ldap -> getValue(" ldapLinkId" ),
182
- ldapUrl => $ldap -> getValue(" ldapUrl" ),
183
- });
184
- }
185
-
186
- WebGUI::Test-> addToCleanup(@shawshank );
187
-
188
- my $lGroup = WebGUI::Group-> new($session , ' new' );
189
-
190
- $lGroup -> ldapGroup(' cn=Convicts,o=shawshank' );
191
- is($lGroup -> ldapGroup(), ' cn=Convicts,o=shawshank' , ' ldapGroup set and fetched correctly' );
192
-
193
- $lGroup -> ldapGroupProperty(' member' );
194
- is($lGroup -> ldapGroupProperty(), ' member' , ' ldapGroup set and fetched correctly' );
195
-
196
- $lGroup -> ldapLinkId($ldapProps -> {ldapLinkId });
197
- is($lGroup -> ldapLinkId(),$ldapProps -> {ldapLinkId }, ' ldapLinkId set and fetched correctly' );
198
-
199
- is_deeply(
200
- [ (map { $lGroup -> hasLDAPUser($_ -> getId) } @shawshank ) ],
201
- [0, 1, 1],
202
- ' shawshank user 2, and 3 found in lGroup users from LDAP'
203
- );
204
-
205
- $lGroup -> ldapRecursiveProperty(' LDAP recursive property' );
206
- is($lGroup -> ldapRecursiveProperty(), ' LDAP recursive property' , ' ldapRecursiveProperty set and fetched correctly' );
207
-
208
- $lGroup -> ldapRecursiveFilter(' LDAP recursive filter' );
209
- is($lGroup -> ldapRecursiveFilter(), ' LDAP recursive filter' , ' ldapRecursiveFilter set and fetched correctly' );
210
-
211
- $lGroup -> delete ;
212
-
213
158
my $gid = $g -> getId;
214
159
is (length ($gid ), 22, " GroupId is proper length" );
215
160
0 commit comments