Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update integration test with new error codes. #22084

Merged
merged 3 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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