You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2005/08/12 03:50:23 UTC
svn commit: r232181 -
/portals/jetspeed-2/trunk/components/security/src/test/org/apache/jetspeed/security/spi/TestInternalPasswordCredentialHistoryHandlingInterceptor.java
Author: taylor
Date: Thu Aug 11 18:50:21 2005
New Revision: 232181
URL: http://svn.apache.org/viewcvs?rev=232181&view=rev
Log:
had to up the sleep time to 1 second as still getting intermittent errors
If someone can clearly explain the seconds resolution on timestamps in MySQL, I will move it back down
test ran successfully with 500 ms, but im leaving at 1000 ms until a definitive answer can be provided
Modified:
portals/jetspeed-2/trunk/components/security/src/test/org/apache/jetspeed/security/spi/TestInternalPasswordCredentialHistoryHandlingInterceptor.java
Modified: portals/jetspeed-2/trunk/components/security/src/test/org/apache/jetspeed/security/spi/TestInternalPasswordCredentialHistoryHandlingInterceptor.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/security/src/test/org/apache/jetspeed/security/spi/TestInternalPasswordCredentialHistoryHandlingInterceptor.java?rev=232181&r1=232180&r2=232181&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/security/src/test/org/apache/jetspeed/security/spi/TestInternalPasswordCredentialHistoryHandlingInterceptor.java (original)
+++ portals/jetspeed-2/trunk/components/security/src/test/org/apache/jetspeed/security/spi/TestInternalPasswordCredentialHistoryHandlingInterceptor.java Thu Aug 11 18:50:21 2005
@@ -64,14 +64,14 @@
// create user and set password operations to ensure that
// passwords get unique timestamps
assertTrue("should be allowed to authenticate",ums.authenticate("testcred","password"));
- Thread.sleep(10);
+ Thread.sleep(1000);
ums.setPassword("testcred","password","password1");
- Thread.sleep(10);
+ Thread.sleep(1000);
ums.setPassword("testcred","password1","password2");
assertTrue("should be allowed to authenticate",ums.authenticate("testcred","password2"));
try
{
- Thread.sleep(10);
+ Thread.sleep(1000);
ums.setPassword("testcred","password2","password");
fail("Should not be allowed to reuse a password from password history");
}
@@ -79,12 +79,13 @@
{
assertTrue(SecurityException.PASSWORD_ALREADY_USED.equals(sex.getKeyedMessage()));
}
- Thread.sleep(10);
+ Thread.sleep(1000);
ums.setPassword("testcred","password2","password3");
- Thread.sleep(10);
+ Thread.sleep(1000);
ums.setPassword("testcred","password3","password4");
- Thread.sleep(10);
+ Thread.sleep(1000);
ums.setPassword("testcred","password4","password");
+
assertTrue("should be allowed to authenticate",ums.authenticate("testcred","password"));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org