[java-idp-oidc] branch main updated: Fix additional tests.

Scott Cantor cantor.2 at osu.edu
Thu Feb 17 14:59:59 UTC 2022


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

scantor pushed a commit to branch main
in repository java-idp-oidc.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-oidc.git;a=commit;h=f606bd41deaef5145d2ec3a77c8500642d9ea86d

The following commit(s) were added to refs/heads/main by this push:
     new f606bd41 Fix additional tests.
f606bd41 is described below

commit f606bd41deaef5145d2ec3a77c8500642d9ea86d
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Feb 17 09:59:56 2022 -0500

    Fix additional tests.
---
 .../plugin/oidc/op/oauth2/profile/impl/ValidateAudienceTest.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/idp-oidc-extension-impl/src/test/java/net/shibboleth/idp/plugin/oidc/op/oauth2/profile/impl/ValidateAudienceTest.java b/idp-oidc-extension-impl/src/test/java/net/shibboleth/idp/plugin/oidc/op/oauth2/profile/impl/ValidateAudienceTest.java
index 22996232..89a1f8f4 100644
--- a/idp-oidc-extension-impl/src/test/java/net/shibboleth/idp/plugin/oidc/op/oauth2/profile/impl/ValidateAudienceTest.java
+++ b/idp-oidc-extension-impl/src/test/java/net/shibboleth/idp/plugin/oidc/op/oauth2/profile/impl/ValidateAudienceTest.java
@@ -26,9 +26,9 @@ import net.shibboleth.idp.plugin.oidc.op.messaging.context.OIDCMetadataContext;
 import net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest;
 import net.shibboleth.idp.plugin.oidc.op.token.support.AuthorizeCodeClaimsSet;
 import net.shibboleth.idp.profile.testing.ActionTestingSupport;
+import net.shibboleth.oidc.profile.core.OidcEventIds;
 import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
 
-import org.opensaml.profile.action.EventIds;
 import org.springframework.webflow.execution.Event;
 import org.testng.Assert;
 import org.testng.annotations.BeforeMethod;
@@ -89,7 +89,7 @@ public class ValidateAudienceTest extends BaseOIDCResponseActionTest {
         setTokenRequest(req);
         
         final Event event = action.execute(requestCtx);
-        ActionTestingSupport.assertEvent(event, EventIds.ACCESS_DENIED);
+        ActionTestingSupport.assertEvent(event, OidcEventIds.INVALID_TARGET);
     }
     
     /**
@@ -176,7 +176,7 @@ public class ValidateAudienceTest extends BaseOIDCResponseActionTest {
        respCtx.setAuthorizationGrantClaimsSet(claims);
        
        final Event event = action.execute(requestCtx);
-       ActionTestingSupport.assertEvent(event, EventIds.ACCESS_DENIED);
+       ActionTestingSupport.assertEvent(event, OidcEventIds.INVALID_TARGET);
    }
 
    /**
@@ -213,7 +213,7 @@ public class ValidateAudienceTest extends BaseOIDCResponseActionTest {
        respCtx.setAuthorizationGrantClaimsSet(claims);
        
        final Event event = action.execute(requestCtx);
-       ActionTestingSupport.assertEvent(event, EventIds.ACCESS_DENIED);
+       ActionTestingSupport.assertEvent(event, OidcEventIds.INVALID_TARGET);
    }
 
 }
\ No newline at end of file

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


More information about the commits mailing list