Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
vharseko committed Oct 22, 2024
1 parent df249d2 commit 4dcd2bb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* information: "Portions Copyright [year] [name of copyright owner]".
*
* Copyright 2015-2016 ForgeRock AS.
* Portions Copyright 2024 3A Systems, LLC
*/
package org.opends.server.backends.pluggable;

Expand Down Expand Up @@ -262,7 +263,7 @@ public void testDnValidationThrowsOnMissingBaseDn() throws DirectoryException
// Given
final SequentialCursor<ByteString, ByteString> source =
cursorOf(
of(dnKey("ou=people"), entryId(1)),
of(dnKey("ou=not-people"), entryId(1)),
of(dnKey("uid=user.0,ou=people"), entryId(2)));

// When
Expand All @@ -271,7 +272,7 @@ public void testDnValidationThrowsOnMissingBaseDn() throws DirectoryException
// Then
assertDirectoryExceptionThrown(exception, NO_SUCH_OBJECT);
assertThat(exception.getMessage()).contains("ou=people")
.doesNotContain("user.0");
.contains("user.0");
}

private ByteString dnKey(String dn)
Expand Down

0 comments on commit 4dcd2bb

Please sign in to comment.