Skip to content

Commit

Permalink
change expected response to 400
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasasr1 committed Nov 14, 2023
1 parent e22de73 commit 51543b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public void testTokenExchangeForLocalUserWithImplicitAssociationConfigDisabled()
updateAssertLocalSubjectIdentifierConfig(IdentityConstants.AssertLocalSubjectMode.MANDATORY);
List<NameValuePair> postParameters = getTokenExchangePostParameters();
int responseCode = getResponseStatus(postParameters);
Assert.assertEquals(responseCode, 401, "401 response expected but got: " + responseCode);
Assert.assertEquals(responseCode, 400, "400 response expected but got: " + responseCode);

}

Expand Down Expand Up @@ -264,7 +264,7 @@ public void testTokenExchangeForLocalUserWithNoLocalAccount() throws Exception {
deleteUser(PORT_OFFSET_0, NEW_USER_USERNAME);
List<NameValuePair> postParameters = getTokenExchangePostParameters();
int responseCode = getResponseStatus(postParameters);
Assert.assertEquals(responseCode, 401, "401 response expected but got: " + responseCode);
Assert.assertEquals(responseCode, 400, "400 response expected but got: " + responseCode);
}

private List<NameValuePair> getTokenExchangePostParameters() {
Expand Down

0 comments on commit 51543b1

Please sign in to comment.