directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject [directory-server] 07/09: Fixed a failing test
Date Wed, 06 Nov 2019 14:33:05 GMT
This is an automated email from the ASF dual-hosted git repository.

elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-server.git

commit 076776f96c7ec9b97ffa51b0216eb78bc1b28ece
Author: emmanuel lecharny <emmanuel.lecharny@busit.com>
AuthorDate: Tue Sep 17 08:58:00 2019 +0200

    Fixed a failing test
---
 .../org/apache/directory/server/operations/extended/PwdModifyIT.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/server-integ/src/test/java/org/apache/directory/server/operations/extended/PwdModifyIT.java
b/server-integ/src/test/java/org/apache/directory/server/operations/extended/PwdModifyIT.java
index 82d48f2..3c3d77b 100644
--- a/server-integ/src/test/java/org/apache/directory/server/operations/extended/PwdModifyIT.java
+++ b/server-integ/src/test/java/org/apache/directory/server/operations/extended/PwdModifyIT.java
@@ -64,6 +64,7 @@ import org.apache.directory.server.core.integ.AbstractLdapTestUnit;
 import org.apache.directory.server.core.integ.FrameworkRunner;
 import org.apache.directory.server.ldap.handlers.extended.PwdModifyHandler;
 import org.junit.Before;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
@@ -83,6 +84,7 @@ import org.junit.runner.RunWith;
 //disable changelog, for more info see DIRSERVER-1528
 @CreateDS(enableChangeLog = false, name = "PasswordPolicyTest", additionalInterceptors =
     { Sha512PasswordHashingInterceptor.class })
+//@Ignore
 public class PwdModifyIT extends AbstractLdapTestUnit
 {
     private static final PasswordPolicyResponse PP_REQ_CTRL = new PasswordPolicyResponseImpl();
@@ -391,7 +393,8 @@ public class PwdModifyIT extends AbstractLdapTestUnit
         PasswordModifyResponse pwdModifyResponse = ( PasswordModifyResponse ) adminConnection.extended(
pwdModifyRequest );
 
         assertEquals( ResultCodeEnum.NO_SUCH_OBJECT, pwdModifyResponse.getLdapResult().getResultCode()
);
-        assertEquals( "Cannot find an entry for DN cn=baduser,ou=system", pwdModifyResponse.getLdapResult()
+        
+        assertEquals( "The entry does not exist, we can't modify its password", pwdModifyResponse.getLdapResult()
             .getDiagnosticMessage() );
 
         adminConnection.close();


Mime
View raw message