[java-identity-provider] branch master updated: Fix and re-enable tests.
Scott Cantor
cantor.2 at osu.edu
Thu Sep 26 10:42:48 EDT 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=31b6079456ee865571ed18f63457559d3792ec6c
The following commit(s) were added to refs/heads/master by this push:
new 31b6079 Fix and re-enable tests.
31b6079 is described below
commit 31b6079456ee865571ed18f63457559d3792ec6c
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Sep 26 10:42:45 2019 -0400
Fix and re-enable tests.
---
.../filter/impl/ValidateExternalAuthenticationTest.java | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/idp-attribute-filter-impl/src/test/java/net/shibboleth/idp/attribute/filter/impl/ValidateExternalAuthenticationTest.java b/idp-attribute-filter-impl/src/test/java/net/shibboleth/idp/attribute/filter/impl/ValidateExternalAuthenticationTest.java
index b26b0c6..1f74c9f 100644
--- a/idp-attribute-filter-impl/src/test/java/net/shibboleth/idp/attribute/filter/impl/ValidateExternalAuthenticationTest.java
+++ b/idp-attribute-filter-impl/src/test/java/net/shibboleth/idp/attribute/filter/impl/ValidateExternalAuthenticationTest.java
@@ -36,6 +36,7 @@ import net.shibboleth.idp.attribute.filter.policyrule.filtercontext.impl.Attribu
import net.shibboleth.idp.authn.context.AuthenticationContext;
import net.shibboleth.idp.authn.context.ExternalAuthenticationContext;
import net.shibboleth.idp.authn.impl.BaseAuthenticationContextTest;
+import net.shibboleth.idp.authn.impl.ExternalAuthenticationImpl;
import net.shibboleth.idp.authn.impl.ValidateExternalAuthentication;
import net.shibboleth.idp.authn.principal.IdPAttributePrincipal;
import net.shibboleth.idp.authn.principal.UsernamePrincipal;
@@ -64,9 +65,10 @@ public class ValidateExternalAuthenticationTest extends BaseAuthenticationContex
action.initialize();
}
- @Test(enabled=false) public void testPrincipalName() {
+ @Test public void testPrincipalName() {
final AuthenticationContext ac = prc.getSubcontext(AuthenticationContext.class);
- final ExternalAuthenticationContext eac = ac.getSubcontext(ExternalAuthenticationContext.class, true);
+ final ExternalAuthenticationContext eac = (ExternalAuthenticationContext) ac.addSubcontext(
+ new ExternalAuthenticationContext(new ExternalAuthenticationImpl()), true);
eac.setPrincipalName("jdoe");
final IdPAttribute mail = new IdPAttribute("mail");
@@ -82,9 +84,10 @@ public class ValidateExternalAuthenticationTest extends BaseAuthenticationContex
Assert.assertTrue(ac.getAuthenticationResult().getSubject().getPrincipals(IdPAttributePrincipal.class).isEmpty());
}
- @Test(enabled=false) public void testAuthnAuthorities() {
+ @Test public void testAuthnAuthorities() {
final AuthenticationContext ac = prc.getSubcontext(AuthenticationContext.class);
- final ExternalAuthenticationContext eac = ac.getSubcontext(ExternalAuthenticationContext.class, true);
+ final ExternalAuthenticationContext eac = (ExternalAuthenticationContext) ac.addSubcontext(
+ new ExternalAuthenticationContext(new ExternalAuthenticationImpl()), true);
eac.setPrincipalName("jdoe");
eac.getAuthenticatingAuthorities().addAll(Arrays.asList("foo", "bar", "baz"));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list