Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Feb 18, 2025
1 parent 1d10841 commit 424e905
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand All @@ -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());
}
Expand Down

0 comments on commit 424e905

Please sign in to comment.