Skip to content

Commit

Permalink
AUT-759 Update error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Steinhain committed Oct 13, 2021
1 parent 64a2ad3 commit ddb0fac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void authApi1_countryParameterMissingShouldReturnError() {

assertEquals("Status code should be: 400", 400, response.statusCode());
assertEquals("Bad request error should be returned", BAD_REQUEST, getValueFromJsonResponse(response, STATUS_ERROR));
assertEquals("Bad request error should be returned", "Required String parameter 'Country' is not present", getValueFromJsonResponse(response, STATUS_ERROR_MESSAGE));
assertEquals("Bad request error should be returned", "Required request parameter 'Country' for method parameter type String is not present", getValueFromJsonResponse(response, STATUS_ERROR_MESSAGE));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

import ee.ria.eidas.config.IntegrationTest;
import io.qameta.allure.restassured.AllureRestAssured;
import io.restassured.path.json.JsonPath;
import io.restassured.path.xml.XmlPath;
import io.restassured.response.Response;
import org.apache.commons.lang3.RandomStringUtils;
import org.junit.Ignore;
Expand Down Expand Up @@ -107,7 +105,7 @@ public void respApi3_samlResponseMissingShouldReturnErrorStatus() {

assertEquals("Status code should be: 400", 400, response.statusCode());
assertEquals("Bad request error should be returned", BAD_REQUEST, getValueFromJsonResponse(response, STATUS_ERROR));
assertThat("Correct error message", getValueFromJsonResponse(response, STATUS_ERROR_MESSAGE), startsWith("Required String parameter 'SAMLResponse' is not present"));
assertThat("Correct error message", getValueFromJsonResponse(response, STATUS_ERROR_MESSAGE), startsWith("Required request parameter 'SAMLResponse' for method parameter type String is not present"));
}

@Test
Expand Down

0 comments on commit ddb0fac

Please sign in to comment.