Skip to content
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

Add PowerFlex Unit Tests to pkg/drivers #116

Merged
merged 14 commits into from
Oct 28, 2022
Merged

Add PowerFlex Unit Tests to pkg/drivers #116

merged 14 commits into from
Oct 28, 2022

Conversation

jooseppi-luna
Copy link
Contributor

@jooseppi-luna jooseppi-luna commented Oct 26, 2022

Description

Add unit tests for pkg/drivers to cover powerflex.go. Also broke tests out into three files instead of having everything in commonconfig.go. Coverage on powerflex.go went from 0.0% -> 98.8%. Total package coverage went from 65% to 95%.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
dell/csm#477

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have maintained backward compatibility

How Has This Been Tested?

Ran unit tests and confirmed passing. Also looked at go coverage reports.

Built new image based on my changes, installed it and successfully ran e2e tests on it.

@jooseppi-luna jooseppi-luna changed the title Pflex unit test Pflex unit test DRAFT PR DO NOT MERGE Oct 26, 2022
@jooseppi-luna jooseppi-luna changed the title Pflex unit test DRAFT PR DO NOT MERGE Add PowerFlex Unit Tests to pkg/drivers Oct 27, 2022
@jooseppi-luna jooseppi-luna marked this pull request as ready for review October 27, 2022 13:16
mbasha-dell
mbasha-dell previously approved these changes Oct 28, 2022
@jooseppi-luna jooseppi-luna merged commit 040644e into main Oct 28, 2022
@jooseppi-luna jooseppi-luna deleted the pflex-unit-test branch November 22, 2022 16:35
ChristianAtDell added a commit that referenced this pull request Oct 15, 2024
* breaking test code into multiple files

* coverage up to 91.4

* removed dead code added test

* cleaning up code

* reset test coverage threshold

* fixed format and lint

* added _ to read err

* minor changes

* fix merge issues

* make merge work

* adding Abrar and Karthik to codeowners
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.

3 participants