[java-shib-attribute] branch main updated: Even More JSSH-71 debugging,

Codeberg noreply at shibboleth.net
Thu Jul 30 13:10:50 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository java-shib-attribute.

View the commit online:
https://codeberg.org/Shibboleth/java-shib-attribute/commit/a3fd7461dbf3d1ce65b9d2cae26d2e966c0d4949

The following commit(s) were added to refs/heads/main by this push:
     new a3fd7461d Even More JSSH-71 debugging,
a3fd7461d is described below

commit a3fd7461dbf3d1ce65b9d2cae26d2e966c0d4949
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Thu Jul 30 14:12:02 2026 +0100

    Even More JSSH-71 debugging,
    
    Sprinkle some LDAP server sensitive asserts into the non LDAP test which is breaks the LDAP in memory server
---
 .../idp/attribute/resolver/spring/AttributeResolverTest.java     | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/AttributeResolverTest.java b/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/AttributeResolverTest.java
index ef3719775..700c6beb1 100644
--- a/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/AttributeResolverTest.java
+++ b/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/AttributeResolverTest.java
@@ -116,6 +116,7 @@ public class AttributeResolverTest extends OpenSAMLInitBaseTestCase {
                 new ClassPathResource(LDAP_INIT_FILE),
                 10391);
         directoryServer.start();
+        assertEquals(directoryServer.openConnectionCount(), 0);
 
         // RDBMS
         datasource = DatabaseTestingSupport.GetMockDataSource(DB_INIT_FILE, "myTestDB");
@@ -447,7 +448,8 @@ public class AttributeResolverTest extends OpenSAMLInitBaseTestCase {
         final GenericApplicationContext context = new GenericApplicationContext();
         setTestContext(context);
         context.setDisplayName("ApplicationContext: " + AttributeResolverTest.class);
-
+        assertEquals(directoryServer.openConnectionCount(), 0);
+        
         final SchemaTypeAwareXMLBeanDefinitionReader beanDefinitionReader =
                 new SchemaTypeAwareXMLBeanDefinitionReader(context);
 
@@ -461,6 +463,7 @@ public class AttributeResolverTest extends OpenSAMLInitBaseTestCase {
 
         resolver.resolveAttributes(resolutionContext);
         assertEquals(resolutionContext.getResolvedIdPAttributes().size(), 2);
+        assertEquals(directoryServer.openConnectionCount(), 0);
         final IdPAttribute pre =  resolutionContext.getResolvedIdPAttributes().get("pre");
         /* 
          * pre:
@@ -472,6 +475,7 @@ public class AttributeResolverTest extends OpenSAMLInitBaseTestCase {
          * it is preresolved so...
          */
         assertEquals(pre.getValues().size(), 1);
+        assertEquals(directoryServer.openConnectionCount(), 0);
         assertEquals(pre.getValues().get(0).getDisplayValue(), "preValueOnly");
         final IdPAttribute postOnly =  resolutionContext.getResolvedIdPAttributes().get("postOnly");
         /*
@@ -481,7 +485,8 @@ public class AttributeResolverTest extends OpenSAMLInitBaseTestCase {
          */
         assertEquals(postOnly.getValues().size(), 1);
         assertEquals(postOnly.getValues().get(0).getDisplayValue(), "preOnly");
-    }
+        assertEquals(directoryServer.openConnectionCount(), 0);
+}
 
     @Test(enabled = false) public void selectiveNavigate() throws ResolutionException, ComponentInitializationException {
         final GenericApplicationContext context = new GenericApplicationContext();

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list