-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a unit test for the UpdateCVE handler in the VulnHandlers. The test sets up custom mock client wrappers for Auth and Vuln services, simulates their behavior, and tests the UpdateCVE handler with a Fiber context. It also asserts that the GetUserRole and UpdateCVE functions are called with the expected parameters. The test provides coverage for the update functionality, ensuring proper handling of requests and interactions with the underlying gRPC services.
- Loading branch information
1 parent
5473cb3
commit 504f472
Showing
2 changed files
with
72 additions
and
0 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