Storage test cases failed after enabling policy service
Below 7 test cases are failing after enabling policy service call on storage.
1. should_receiveHttp403_when_userIsNotAuthorizedToPurgeRecord
2. should_receiveHttp403_when_userIsNotAuthorizedToDeleteRecord
3. should_receiveHttp403_when_userIsNotAuthorizedToListVersionsOfARecord
4. should_NoneRecords_when_fetchingMultipleRecords_and_notAuthorizedToRecords
5. should_receiveHttp403_when_userIsNotAuthorizedToUpdateARecord
6. should_returnErrorCode400_when_anInvalidChildLegalTagProvided
7. should_deleteIncompliantLegaltagAndInvalidateRecordsAndNotIngestAgain_whenIncompliantMessageSentToEndpoint
Authorization-related tests are failing because test case tries to PUT record with AUTH_USER_NO_ACCESS(no roles assigned) token and same token being used to make policy service call and hence 500 is thrown by storage.
Last two test cases failing because legal tag validation code is not being called.
Edited by Gokul Nagare