[java-identity-provider] 21/23: Adjust test to reflect different timing for detection.

Scott Cantor cantor.2 at osu.edu
Mon Mar 17 15:04:00 UTC 2025


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

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

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

commit f1d89ec81972fd673c9b28b9586141f5d1c5ff2d
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