Skip to content

Commit

Permalink
FIX @test
Browse files Browse the repository at this point in the history
  • Loading branch information
vharseko committed Aug 6, 2024
1 parent 03a2195 commit 1d5ad0d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Connection getConnection(final String user,final String password) throws LdapExc
return connection;
}

@Test
public void test_user() throws LdapException {
try(Connection connection=getConnection("uid=user.1,ou=People,o=test","password")){
final SearchRequest request =Requests.newSearchRequest("ou=Services,o=test", SearchScope.WHOLE_SUBTREE,"(&)");
Expand All @@ -88,6 +89,7 @@ public void test_user() throws LdapException {
}
}

@Test
public void test_service() throws LdapException, SearchResultReferenceIOException {
try(Connection connection=getConnection("uid=service.1,ou=Services,o=test","password")){
final SearchRequest request =Requests.newSearchRequest("ou=Services,o=test", SearchScope.WHOLE_SUBTREE,"(&)");
Expand Down

0 comments on commit 1d5ad0d

Please sign in to comment.