From 424e9055c2f3e2180e5161f06e4f2cedb346f0f2 Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Tue, 18 Feb 2025 23:58:47 +0200 Subject: [PATCH] update test --- .../org/orcid/core/oauth/IETFExchangeTokenGranterTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orcid-core/src/test/java/org/orcid/core/oauth/IETFExchangeTokenGranterTest.java b/orcid-core/src/test/java/org/orcid/core/oauth/IETFExchangeTokenGranterTest.java index a277afcaa6f..1c5a67b7988 100644 --- a/orcid-core/src/test/java/org/orcid/core/oauth/IETFExchangeTokenGranterTest.java +++ b/orcid-core/src/test/java/org/orcid/core/oauth/IETFExchangeTokenGranterTest.java @@ -319,7 +319,7 @@ public void grantClientDisabledTokenWithActivitiesReadLimitedThrowExceptionTest( try { tokenGranter.grant(GRANT_TYPE, getTokenRequest(ACTIVE_CLIENT_ID, List.of("/activities/update"))); } catch(OrcidInvalidScopeException e) { - assertEquals("The id_token is disabled and does not contain any valid scope", e.getMessage()); + assertEquals("The id_token is disabled", e.getMessage()); } catch(Exception e) { fail("Unhandled exception:" + e.getMessage()); } @@ -335,7 +335,7 @@ public void grantStaffDisabledTokenWithActivitiesReadLimitedThrowExceptionTest() try { tokenGranter.grant(GRANT_TYPE, getTokenRequest(ACTIVE_CLIENT_ID, List.of("/activities/update"))); } catch(OrcidInvalidScopeException e) { - assertEquals("The id_token is disabled and does not contain any valid scope", e.getMessage()); + assertEquals("The id_token is disabled", e.getMessage()); } catch(Exception e) { fail("Unhandled exception:" + e.getMessage()); }