[Azure] Fix `Get Record by version` 500 Error for non matching version
Change Description:
- Issue reference: #181
-
Get Record by version: Fix GcsVersionPath checking condition from
contains
toendsWith
for givenversion
, to find the exact match of version path. - Below Response -
HTTP 404 status
with reason will be returned (instead ofHTTP 50O status
)
{
"code": 404,
"reason": "Version not found",
"message": "The version 2 can't be found for record opendes:master-data--Well:999310036787"
}
Changes in:
-
Azure
Dev Checklist:
-
Added Unit Tests, wherever applicable. -
Existing Tests pass -
Verified functionality locally -
Self Reviewed my code for formatting and complex business logic. -
renamed few methods & variables for better readability
Edited by Thulasi Dass Subramanian