-
Notifications
You must be signed in to change notification settings - Fork 706
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
Feat: Tests cases for Chaoscenter Rest handler in Chaoscenter #4238
Feat: Tests cases for Chaoscenter Rest handler in Chaoscenter #4238
Conversation
Signed-off-by: freedisch <[email protected]>
Can you resolve conflicts? |
Signed-off-by: Magnim BATALE <[email protected]>
Done |
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.
Test failed, Can you check @Freedisch ?
Signed-off-by: freedisch <[email protected]>
@namkyu1999, I just fixed the falling tests |
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.
LGTM 🚀 @Freedisch, Can you add more test cases in each unit test? In most unit tests, there is only one test case. Checking code coverage will help you figure out which cases you need to add.
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestDexLogin(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.
Can you also add positive case?
chaoscenter/authentication/api/handlers/rest/project_handler_test.go
Outdated
Show resolved
Hide resolved
chaoscenter/authentication/api/handlers/rest/project_handler_test.go
Outdated
Show resolved
Hide resolved
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.
Thank you for inproving the test suite.
Also please address the review comments left by @namkyu1999
Sure I'm working on it |
Signed-off-by: freedisch <[email protected]>
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.
Can you check failed cases? I will approve this pr when you fix it 🚀 @Freedisch
Signed-off-by: freedisch <[email protected]>
into rest_handler_tests Signed-off-by: freedisch <[email protected]>
@namkyu1999, I just finished fixing the falling test and added a few ones |
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.
LGTM🚀
Proposed changes
This PR add test cases for Chaoscenter authentication Rest handler
Types of changes
What types of changes does your code introduce to Litmus? Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Dependency
Special notes for your reviewer: