-
Notifications
You must be signed in to change notification settings - Fork 316
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
Adding File share unit test cases,coverage > 50% #1295
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1295 +/- ##
==========================================
- Coverage 41.48% 40.58% -0.91%
==========================================
Files 53 53
Lines 7752 6966 -786
==========================================
- Hits 3216 2827 -389
+ Misses 4021 3574 -447
- Partials 515 565 +50
|
assertTestResult(t, w.Code, 202) | ||
}) | ||
|
||
t.Run("Should return 500 if delete file share snapshot with bad request", 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.
Why Bad request is 500 error? Should it not be 400?
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 will check once, may be we need to change main code
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.
Is this 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.
LGTM
What type of PR is this?
/kind enhancement
What this PR does / why we need it:
Added test case for create file share in pkg/controller package
Which issue(s) this PR fixes:
Fixes #1270
Test Report Added?:
/kind TESTED
Test Report:
Special notes for your reviewer: