-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add tests for update endorsement status (#117)
* chore: create handleIllegalArgumentException * chore: unit tests for updateEndorsementStatus * fix: remove unnecessary stubbings * add boilerplate code for feat: update-endorsement-status * disable unit tests for update-endorsement-status for now * fix: switch to InsufficientAuthenticationException (401, Unauthorized) if user in not superuser * chore: add integration tests for update endorsement status * fix: code formatting * fix: assign userId instead of skillId in createEndorsement * move user role setup to a common function named setupUpdateEndorsementTests * fix: use superuser cookie in test 'Return 401 when request is made without using superuser cookie' * fix: 'detached entity passed to persist' exception for integration tests * fix: Formatting * chore: update message in case of Unauthorized access for updateEndorsementStatus * chore: Add more assertions to `UpdateEndorsementStatusGivenEndorsementId` * fix: use correct pathParam format and clearer message for unauthorized access * chore: update exception messages for update-endorsement-status * fix: update exceptions and fix test cases * chore: update tests according to the feature * chore: add more test cases for endorsement already updated case * chore: enable tests for update endorsement
- Loading branch information
Showing
2 changed files
with
290 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters