[java-identity-provider] branch master updated: Move failing Windows tests to unboundid LDAP provider.

Scott Cantor cantor.2 at osu.edu
Mon Mar 4 11:32:53 EST 2019


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

scantor 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=5c30d6eb6cd0d896b72de3b467e48bd0b64f32e6

The following commit(s) were added to refs/heads/master by this push:
       new  5c30d6e   Move failing Windows tests to unboundid LDAP provider.
5c30d6e is described below

commit 5c30d6eb6cd0d896b72de3b467e48bd0b64f32e6
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Mar 4 11:32:51 2019 -0500

    Move failing Windows tests to unboundid LDAP provider.
---
 idp-attribute-resolver-spring/pom.xml                                | 5 +++++
 .../idp/attribute/resolver/spring/AttributeResolverTest.java         | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/idp-attribute-resolver-spring/pom.xml b/idp-attribute-resolver-spring/pom.xml
index ad381e1..343d674 100644
--- a/idp-attribute-resolver-spring/pom.xml
+++ b/idp-attribute-resolver-spring/pom.xml
@@ -158,6 +158,11 @@
             <scope>test</scope>
         </dependency>
         <dependency>
+            <groupId>org.ldaptive</groupId>
+            <artifactId>ldaptive-unboundid</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
             <groupId>com.unboundid</groupId>
             <artifactId>unboundid-ldapsdk</artifactId>
             <scope>test</scope>
diff --git a/idp-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/AttributeResolverTest.java b/idp-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/AttributeResolverTest.java
index 234d901..d44ed6a 100644
--- a/idp-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/AttributeResolverTest.java
+++ b/idp-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/AttributeResolverTest.java
@@ -101,6 +101,8 @@ public class AttributeResolverTest extends OpenSAMLInitBaseTestCase {
 
     @BeforeTest public void setupDataConnectors() throws LDAPException {
 
+        System.setProperty("org.ldaptive.provider", "org.ldaptive.provider.unboundid.UnboundIDProvider");
+        
         // LDAP
         final InMemoryDirectoryServerConfig config = new InMemoryDirectoryServerConfig("dc=shibboleth,dc=net");
         config.setListenerConfigs(InMemoryListenerConfig.createLDAPConfig("default", 10391));
@@ -120,6 +122,8 @@ public class AttributeResolverTest extends OpenSAMLInitBaseTestCase {
      */
     @AfterTest public void teardownDataConnectors() {
         directoryServer.shutDown(true);
+        
+        System.clearProperty("org.ldaptive.provider");
     }
     
     private ReloadableService<AttributeResolver> getResolver(final String file) {

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


More information about the commits mailing list