Skip to content
Snippets Groups Projects
Commit 53809164 authored by Abhay Joshi's avatar Abhay Joshi
Browse files

changing assert statement to match expected behavior

parent d0235ebc
No related branches found
No related tags found
4 merge requests!760Vulnerability fixes,!745Draft: M18 Upgraded packages to mitigate vulns in netty, guava, snakeyaml,!744Upgraded packages to mitigated vulns in netty, guava, snakeyaml,!692M18 service and CICD updates
......@@ -77,13 +77,9 @@ public class TestRecordsApiAcceptance extends RecordsApiAcceptanceTests {
response = TestUtils.send("records/" + ENCODED_RECORD_ID, "GET", HeaderUtils.getHeaders(TenantUtils.getTenantName(), testUtils.getToken()), "", "");
GetRecordResponse recordResult = TestUtils.getResult(response, 200, GetRecordResponse.class);
assertEquals("TestSpecialCharacters", recordResult.data.get("name"));
// Service does not allow URLs with suspicious characters, Which is the default setting.
// Different CSPs are responding with different status code for this error when a special character like %25 is present in the URL.
// Hence the Assert Statement is marked not to be 200.
// More details - https://community.opengroup.org/osdu/platform/system/storage/-/issues/61
assertNotEquals(200, response.getStatus());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment