Skip to content

Commit

Permalink
Merge pull request #21924 from mpmadhavig/fix-test
Browse files Browse the repository at this point in the history
Fix test
  • Loading branch information
sadilchamishka authored Dec 5, 2024
2 parents 69ba4a0 + 3aa6aa7 commit b19a361
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,15 @@ public void testUpdateAccessTokenAttributes() throws Exception {
accessTokenConfig.setUserAccessTokenExpiryInSeconds(3600L);
accessTokenConfig.setApplicationAccessTokenExpiryInSeconds(3600L);
// Add access token attributes
accessTokenConfig.setAccessTokenAttributes(new ArrayList<>());
List<String> accessTokenAttributes = new ArrayList<>();
accessTokenAttributes.add("username");
accessTokenConfig.setAccessTokenAttributes(accessTokenAttributes);
oidcInboundConfig.setAccessToken(accessTokenConfig);
updateApplicationInboundConfig(application.getApplicationId(), oidcInboundConfig, OIDC);

OpenIDConnectConfiguration updatedOidcInboundConfig =
getOIDCInboundDetailsOfApplication(application.getApplicationId());
Assert.assertFalse(updatedOidcInboundConfig.getAccessToken().getAccessTokenAttributes().isEmpty(),
Assert.assertEquals(updatedOidcInboundConfig.getAccessToken().getAccessTokenAttributes().size(),1,
"Access token attribute should not be empty.");
}

Expand Down

0 comments on commit b19a361

Please sign in to comment.