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

[WIP] Increase coverage for driver package #801

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

sakshi-garg1
Copy link
Contributor

Description

Increase coverage for driver package

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #

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
  • I have executed the relevant end-to-end test scenarios

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

make driver-unit-test

@sakshi-garg1 sakshi-garg1 changed the title Increase coverage for driver package [WIP] Increase coverage for driver package Nov 27, 2024
@sakshi-garg1 sakshi-garg1 merged commit 2773cfc into 1594_remove_extra_fields Nov 27, 2024
4 of 7 checks passed
@sakshi-garg1 sakshi-garg1 deleted the increase_coverage_branch branch November 27, 2024 10:19
AkshaySainiDell added a commit that referenced this pull request Dec 20, 2024
* set default replicas to 2 if not specified

* set default path for KUBELET_CONFIG_DIR

* set default path for KUBELET_CONFIG_DIR

* define DefaultKubeletConfigDir

* Same KUBECONFIG_DIR changes for powerscale and powerstore. Tested on
K8S.

* updated structs to pointers

* Remove mdm from CR. We still need to add the MDM var to the daemonset.

* fixed operator crashing

* [WIP] Increase coverage for driver package (#801)

* Update common_test.go to increase powerscale.go coverage

* Update powerscale_test.go

* Fixed initContainers in CR

* Update common_test.go for increaing powermax.go coverage

* Update common_test.go

* Update common_test.go to increase powerflex.go coverage

* fixed linting errors

* fixed linting errors

* fixed yaml linting errors

* To increase coverage for powerstore.go

* Increase coverage for unity.go file

* Increase coverage for unity.go file

* To increase coverage for unity.go

* To increase coverage for commonconfig.go

* To increase coverage for commonconfig.go

* Fixed Linting issues

* Fixed Linting issues

* Fixed Linting issues

* fixed linters error

* fixed linters error

* e2e tests for minimal sample

* Removing code that defaults replica count in deployment and CR to 2 when
it comes in as 0.

* Fix linter error.

* addressed @rajendraindukuri & @kumarp20 review comment

* fixed liniting errors for crd

* added no mdm unit test

* fixed reverseproxy envs

* Inject ReverseProxy directly into the deployment

* Refactor ReverseProxy code

* Fix unit test failures

* Fix step_defs.go

* Increase coverage of controller

* Increase coverage of controller

* Fix gosec error

* Fix lint error

* Increase coverage of reverseproxy

* Fix lint error

* Fix minimal e2e scenarios

* Fix driver UT

---------

Co-authored-by: Surya Gupta <[email protected]>
Co-authored-by: Rishabh Raj <[email protected]>
Co-authored-by: sakshi-garg1 <[email protected]>
Co-authored-by: Akshay Saini <[email protected]>
Co-authored-by: Akshay Saini <[email protected]>
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.

1 participant