Skip to content

Commit 0360298

Browse files
authored
Merge pull request #845 from malshaniS/apim460
Fix Schema Validation TG failure
2 parents 000d332 + 6563868 commit 0360298

File tree

1 file changed

+3
-3
lines changed
  • fs-integration-test-suite/accelerator-tests/gateway-tests/schema.validation/src/test/groovy/org/wso2/financial/services/accelerator/gateway/integration/test/schema/validation/request_header_validation

1 file changed

+3
-3
lines changed

fs-integration-test-suite/accelerator-tests/gateway-tests/schema.validation/src/test/groovy/org/wso2/financial/services/accelerator/gateway/integration/test/schema/validation/request_header_validation/RequestHeaderValidationTest.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ class RequestHeaderValidationTest extends FSAPIMConnectorTest {
168168
ConnectorTestConstants.ERROR_CODE_BAD_REQUEST)
169169
Assert.assertEquals(TestUtil.parseResponseBody(consentResponse, ConnectorTestConstants.ERROR_ERRORS_CODE),
170170
ConnectorTestConstants.STATUS_CODE_400.toString())
171-
Assert.assertEquals(TestUtil.parseResponseBody(consentResponse, ConnectorTestConstants.ERROR_ERRORS_DESCRIPTION),
172-
"Schema validation failed in the Request: Request Content-Type header '[text/plain; " +
173-
"charset=ISO-8859-1]' does not match any allowed types. Must be one of: [application/json; charset=utf-8].")
171+
Assert.assertTrue(TestUtil.parseResponseBody(consentResponse, ConnectorTestConstants.ERROR_ERRORS_DESCRIPTION)
172+
.contains("Schema validation failed in the Request: Request Content-Type header '[text/plain; " +
173+
"charset=ISO-8859-1]' does not match any allowed types. Must be one of: [application/json; charset=utf-8]."))
174174
}
175175

176176
@Test

0 commit comments

Comments
 (0)