Skip to content

Commit

Permalink
Merge pull request #22084 from Thisara-Welmilla/add-error-codes
Browse files Browse the repository at this point in the history
Update integration test with new error codes.
  • Loading branch information
Thisara-Welmilla authored Jan 2, 2025
2 parents 5e31a52 + 0f27944 commit 1751c3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void createUserDefinedLocalAuthenticatorInvalidName() throws JsonProcessi
.log().ifValidationFails()
.assertThat()
.statusCode(HttpStatus.SC_BAD_REQUEST)
.body("code", equalTo("AUT-60004"))
.body("code", equalTo("AUT-60014"))
.body("message", equalTo("Authenticator name is invalid."))
.body("description", equalTo("The provided authenticator name invalid@name is not in the " +
"expected format ^[a-zA-Z0-9][a-zA-Z0-9-_]*$."));
Expand All @@ -130,7 +130,7 @@ public void createUserDefinedLocalAuthenticatorMissingEndpointProperty() throws
.log().ifValidationFails()
.assertThat()
.statusCode(HttpStatus.SC_BAD_REQUEST)
.body("code", equalTo("AUT-60003"))
.body("code", equalTo("AUT-60011"))
.body("message", equalTo("Invalid endpoint configuration provided."))
.body("description", equalTo("The property username must be provided as an authentication " +
"property for the BASIC authentication type."));
Expand All @@ -146,7 +146,7 @@ public void createUserDefinedLocalAuthenticatorEmptyDisplayName() throws JsonPro
.log().ifValidationFails()
.assertThat()
.statusCode(HttpStatus.SC_BAD_REQUEST)
.body("code", equalTo("AUT-60004"))
.body("code", equalTo("AUT-60015"))
.body("message", equalTo("Invalid empty or blank value."))
.body("description", equalTo("Value for displayName should not be empty or blank."));
}
Expand Down Expand Up @@ -176,7 +176,7 @@ public void createUserDefinedLocalAuthenticatorEmptyEndpointProperty() throws Js
.log().ifValidationFails()
.assertThat()
.statusCode(HttpStatus.SC_BAD_REQUEST)
.body("code", equalTo("AUT-60003"))
.body("code", equalTo("AUT-60011"))
.body("message", equalTo("Invalid endpoint configuration provided."))
.body("description", equalTo("The Property username cannot be blank."));
}
Expand Down Expand Up @@ -240,7 +240,7 @@ public void createUserDefinedLocalAuthenticatorWithExistingAuthenticatorName() t
.log().ifValidationFails()
.assertThat()
.statusCode(HttpStatus.SC_BAD_REQUEST)
.body("code", equalTo("AUT-60003"))
.body("code", equalTo("AUT-60013"))
.body("message", equalTo("The authenticator already exists."))
.body("description", equalTo("The authenticator already exists for the given name:" +
" customAuthenticator."));
Expand All @@ -257,7 +257,7 @@ public void updateUserDefinedLocalAuthenticatorMissingEndpointProperty() throws
.log().ifValidationFails()
.assertThat()
.statusCode(HttpStatus.SC_BAD_REQUEST)
.body("code", equalTo("AUT-60003"))
.body("code", equalTo("AUT-60011"))
.body("message", equalTo("Invalid endpoint configuration provided."))
.body("description", equalTo("The property username must be provided as an authentication " +
"property for the BASIC authentication type."));
Expand All @@ -274,7 +274,7 @@ public void updateUserDefinedLocalAuthenticatorEmptyDisplayName() throws JsonPro
.log().ifValidationFails()
.assertThat()
.statusCode(HttpStatus.SC_BAD_REQUEST)
.body("code", equalTo("AUT-60004"))
.body("code", equalTo("AUT-60015"))
.body("message", equalTo("Invalid empty or blank value."))
.body("description", equalTo("Value for displayName should not be empty or blank."));
}
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2356,7 +2356,7 @@
<properties>

<!--Carbon Identity Framework Version-->
<carbon.identity.framework.version>7.7.60</carbon.identity.framework.version>
<carbon.identity.framework.version>7.7.66</carbon.identity.framework.version>
<carbon.identity.framework.version.range>[5.14.67, 8.0.0)</carbon.identity.framework.version.range>

<!--SAML Common Utils Version-->
Expand Down Expand Up @@ -2468,7 +2468,7 @@

<!-- Identity REST API feature -->
<identity.api.dispatcher.version>2.0.17</identity.api.dispatcher.version>
<identity.server.api.version>1.3.15</identity.server.api.version>
<identity.server.api.version>1.3.16</identity.server.api.version>
<identity.user.api.version>1.3.47</identity.user.api.version>

<identity.agent.sso.version>5.5.9</identity.agent.sso.version>
Expand Down

0 comments on commit 1751c3e

Please sign in to comment.