[java-identity-provider] branch main updated: Adjust test to reflect different timing for detection.

Scott Cantor cantor.2 at osu.edu
Tue Feb 18 23:00:37 UTC 2025


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

scantor pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=e793da6e03f4c7374c08f49bcec7e6b55148b1f7

The following commit(s) were added to refs/heads/main by this push:
     new e793da6e0 Adjust test to reflect different timing for detection.
e793da6e0 is described below

commit e793da6e03f4c7374c08f49bcec7e6b55148b1f7
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Feb 18 18:00:34 2025 -0500

    Adjust test to reflect different timing for detection.
---
 .../idp/authn/impl/InitializeRequestedPrincipalContextTest.java    | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/InitializeRequestedPrincipalContextTest.java b/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/InitializeRequestedPrincipalContextTest.java
index 487e47bae..26e505054 100644
--- a/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/InitializeRequestedPrincipalContextTest.java
+++ b/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/InitializeRequestedPrincipalContextTest.java
@@ -66,7 +66,14 @@ public class InitializeRequestedPrincipalContextTest {
      * @throws Exception if something goes wrong
      */
     @Test public void testNoReplace() throws Exception {
+        final Principal method = new TestPrincipal("test");
+        final MockAuthenticationProfileConfiguration mock =
+                new MockAuthenticationProfileConfiguration("mock", CollectionSupport.singletonList(method));
+        src = new RequestContextBuilder().setRelyingPartyProfileConfigurations(
+                CollectionSupport.singleton(mock)).buildRequestContext();
+        prc = new WebflowRequestContextProfileRequestContextLookup().apply(src);
         final AuthenticationContext authCtx = prc.ensureSubcontext(AuthenticationContext.class);
+        
         authCtx.ensureSubcontext(RequestedPrincipalContext.class).setOperator("foo");
 
         final Event event = action.execute(src);

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


More information about the commits mailing list