-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented test case for JwtMiddleware #4418 #4411
Conversation
@nikzayn Can you please attach screenshots for the executed testcases and coverage? |
@nikzayn please address the comments, so that we can merge this PR |
Sorry, for the delay. I was actually out of town. I came back yesterday. I will update you on the following soon..! |
I will update for sure..!! |
Signed-off-by: nikzayn <[email protected]>
Signed-off-by: nikzayn <[email protected]>
type MockApplicationService struct{} | ||
|
||
// AddMember implements services.ApplicationService. | ||
func (m *MockApplicationService) AddMember(projectID string, member *entities.Member) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikzayn you can remove all these generated functions that are unimplemented.
}) | ||
|
||
// Subtest for Missing Authorization Header | ||
t.Run("Missing Authorization Header", func(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see there's 30% code coverage with this TC, please check if you can add more TCs for more code coverage
@@ -0,0 +1,142 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikzayn you can remove both the coverage files, you don't need to commit those generated files.
@nikzayn are you still working on this PR? |
closing due to inactivity |
Proposed changes
Types of changes
What types of changes does your code introduce to Litmus? Put an
x
in the boxes that applyChecklist
Dependency
chaoscenter/authentication/api/middleware/jwt_middlware.go
#4410)Special notes for your reviewer: