[java-identity-provider] branch master updated: Debug Windows Server 12/Java11 build
Rod Widdowson
rdw at steadingsoftware.com
Wed Apr 3 05:44:43 EDT 2019
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch master
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=1902fdd00cb97d74d2e7026de8800140f158353d
The following commit(s) were added to refs/heads/master by this push:
new 1902fdd Debug Windows Server 12/Java11 build
1902fdd is described below
commit 1902fdd00cb97d74d2e7026de8800140f158353d
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Wed Apr 3 10:43:50 2019 +0100
Debug Windows Server 12/Java11 build
Add some explicit logging (at trace) into failing test and enable
trace logging for that class.
---
.../session/impl/StorageBackedSessionManagerTest.java | 16 ++++++++++++++++
idp-session-impl/src/test/resources/logback-test.xml | 3 +++
2 files changed, 19 insertions(+)
diff --git a/idp-session-impl/src/test/java/net/shibboleth/idp/session/impl/StorageBackedSessionManagerTest.java b/idp-session-impl/src/test/java/net/shibboleth/idp/session/impl/StorageBackedSessionManagerTest.java
index bf80755..a9b6e3d 100644
--- a/idp-session-impl/src/test/java/net/shibboleth/idp/session/impl/StorageBackedSessionManagerTest.java
+++ b/idp-session-impl/src/test/java/net/shibboleth/idp/session/impl/StorageBackedSessionManagerTest.java
@@ -52,6 +52,8 @@ import net.shibboleth.utilities.java.support.resolver.CriteriaSet;
import net.shibboleth.utilities.java.support.resolver.ResolverException;
import org.opensaml.storage.StorageSerializer;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.testng.Assert;
@@ -63,6 +65,8 @@ public class StorageBackedSessionManagerTest extends SessionManagerBaseTestCase
private static final Duration sessionSlop = Duration.ofMinutes(5);
+ private static final Logger log = LoggerFactory.getLogger(StorageBackedSessionManagerTest.class);
+
private Collection<AuthenticationFlowDescriptor> flowDescriptors;
private SPSessionSerializerRegistry serializerRegistry;
@@ -147,10 +151,22 @@ public class StorageBackedSessionManagerTest extends SessionManagerBaseTestCase
Assert.assertEquals(mockResponse.getCookie(StorageBackedSessionManager.DEFAULT_COOKIE_NAME).getValue(),
session.getId());
+ log.trace("testSimpleSession({}): \n\tTime before sleep: {} \n\tCreation Instant: {}\n\t Last Activity : {} ",
+ Thread.currentThread().toString(),
+ Instant.now().toString(), session.getCreationInstant().toString(),
+ session.getLastActivityInstant().toString());
Thread.sleep(1000);
+ log.trace("testSimpleSession({}): \n\tTime after sleep: {} \n\tCreation Instant: {}\n\t Last Activity : {} ",
+ Thread.currentThread().toString(),
+ Instant.now().toString(), session.getCreationInstant().toString(),
+ session.getLastActivityInstant().toString());
// checkTimeout should update the last activity time.
session.checkTimeout();
+ log.trace("testSimpleSession({}): \n\tTime after checkTimeOut : {} \n\tCreation Instant: {}\n\t Last Activity : {} ",
+ Thread.currentThread().toString(),
+ Instant.now().toString(), session.getCreationInstant().toString(),
+ session.getLastActivityInstant().toString());
Assert.assertNotEquals(session.getCreationInstant(), session.getLastActivityInstant());
// Do a lookup and compare the results.
diff --git a/idp-session-impl/src/test/resources/logback-test.xml b/idp-session-impl/src/test/resources/logback-test.xml
index 8f891b4..32238f9 100644
--- a/idp-session-impl/src/test/resources/logback-test.xml
+++ b/idp-session-impl/src/test/resources/logback-test.xml
@@ -2,6 +2,9 @@
<configuration>
+ <logger name="net.shibboleth.idp.session.impl.StorageBackedSessionManagerTest" level="TRACE"/>
+
+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%level [%logger:%line] - %msg%n</pattern>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list