[java-idp-integration-tests] branch master updated: Fix tests using LDAP by exporting uid
Tom Zeller
tzeller at dragonacea.biz
Fri Mar 6 12:00:12 EST 2020
This is an automated email from the git hooks/post-receive script.
tzeller pushed a commit to branch master
in repository java-idp-integration-tests.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=d6d34724a583bb7b3c49de0b3ef8bc8fb296f1a6
The following commit(s) were added to refs/heads/master by this push:
new d6d3472 Fix tests using LDAP by exporting uid
d6d3472 is described below
commit d6d34724a583bb7b3c49de0b3ef8bc8fb296f1a6
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Fri Mar 6 10:59:57 2020 -0600
Fix tests using LDAP by exporting uid
---
.../java/net/shibboleth/idp/test/BaseIntegrationTest.java | 13 +++++++++++++
.../idp/test/saml2/AbstractSAML2IntegrationTest.java | 2 ++
.../idp/test/saml2/SAML2SSORedirectLDAPIntegrationTest.java | 2 ++
3 files changed, 17 insertions(+)
diff --git a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
index acda6ed..278a544 100644
--- a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
@@ -1215,6 +1215,19 @@ public abstract class BaseIntegrationTest
}
/**
+ * Export uid via LDAP Connector.
+ *
+ * @throws IOException ...
+ */
+ public void enableAttributeResolverLDAPExportUid() throws IOException {
+ final Path pathToAttributeResolverLdapXML = Paths.get("conf", "attribute-resolver-ldap.xml");
+
+ final String oldText = "mail displayName sn givenName departmentNumber employeeNumber eduPersonEntitlement eduPersonAssurance";
+ final String newText = "mail displayName sn givenName departmentNumber employeeNumber eduPersonEntitlement eduPersonAssurance uid";
+ replaceIdPHomeFile(pathToAttributeResolverLdapXML, oldText, newText);
+ }
+
+ /**
* Log unencrypted SAML.
*
* @throws IOException ...
diff --git a/src/test/java/net/shibboleth/idp/test/saml2/AbstractSAML2IntegrationTest.java b/src/test/java/net/shibboleth/idp/test/saml2/AbstractSAML2IntegrationTest.java
index c0b8b04..0656168 100644
--- a/src/test/java/net/shibboleth/idp/test/saml2/AbstractSAML2IntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/saml2/AbstractSAML2IntegrationTest.java
@@ -776,6 +776,8 @@ public abstract class AbstractSAML2IntegrationTest extends BaseIntegrationTest {
enableAttributeResolverLDAP();
+ enableAttributeResolverLDAPExportUid();
+
startSeleniumClient(browserData);
startServer();
diff --git a/src/test/java/net/shibboleth/idp/test/saml2/SAML2SSORedirectLDAPIntegrationTest.java b/src/test/java/net/shibboleth/idp/test/saml2/SAML2SSORedirectLDAPIntegrationTest.java
index 11f9bfc..261792d 100644
--- a/src/test/java/net/shibboleth/idp/test/saml2/SAML2SSORedirectLDAPIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/saml2/SAML2SSORedirectLDAPIntegrationTest.java
@@ -91,6 +91,8 @@ public class SAML2SSORedirectLDAPIntegrationTest extends AbstractSAML2Integratio
enableAttributeResolverLDAP();
+ enableAttributeResolverLDAPExportUid();
+
startSeleniumClient(browserData);
startServer();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list