FINERACT-2421: Updated e2e test covering External Asset Owner creation

This commit is contained in:
Rustam Zeinalov
2026-02-12 10:58:24 +01:00
committed by Adam Saghy
parent 955222ee82
commit badc2594dd
@@ -988,7 +988,7 @@ public class AssetExternalizationStepDef extends AbstractStepDef {
assertThat(exception.getStatus()).as("Expected HTTP %d for duplicate ownerExternalId", expectedStatusCode) assertThat(exception.getStatus()).as("Expected HTTP %d for duplicate ownerExternalId", expectedStatusCode)
.isEqualTo(expectedStatusCode); .isEqualTo(expectedStatusCode);
assertThat(exception.getDeveloperMessage()).as("Error message should indicate duplicate external id") assertThat(exception.getDeveloperMessage()).as("Error message should indicate duplicate external id")
.contains("External Asset Owner id already exist"); .contains("Provided external id already exists");
} }
@When("Admin tries to create an external asset owner with empty JSON body then it should fail with {int} status code") @When("Admin tries to create an external asset owner with empty JSON body then it should fail with {int} status code")