Skip to content

Conversation

@nguptaopensds
Copy link
Contributor

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind new feature
/kind bug fix
/kind cleanup
/kind revert change
/kind design
/kind documentation

/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?:

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind TESTED

/kind NOT-TESTED

Test Report:

Special notes for your reviewer:

@codecov-commenter
Copy link

codecov-commenter commented Jun 15, 2020

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 40.58%. Comparing base (7eb8236) to head (c8225b4).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            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     

see 53 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nguptaopensds nguptaopensds changed the title Adding create fileshare unit test case, coverage 17.7% to 25.1% Adding create and delete fileshare unit test case Jun 15, 2020
@nguptaopensds nguptaopensds changed the title Adding create and delete fileshare unit test case Adding File share unit test cases, coerage > 50% Jun 16, 2020
@nguptaopensds nguptaopensds changed the title Adding File share unit test cases, coerage > 50% Adding File share unit test cases,coverage > 50% Jun 16, 2020
assertTestResult(t, w.Code, 202)
})

t.Run("Should return 500 if delete file share snapshot with bad request", func(t *testing.T) {
Copy link
Collaborator

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?

Copy link
Contributor Author

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this resolved?

Copy link
Collaborator

@kumarashit kumarashit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding test cases to api/controller directory for getting coverage >60%

4 participants