-
Notifications
You must be signed in to change notification settings - Fork 40
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
OCPVE-677: chore: refactor vgmanager into different interfaces and introduce tests #406
OCPVE-677: chore: refactor vgmanager into different interfaces and introduce tests #406
Conversation
@jakobmoellerdev: This pull request references OCPVE-677 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Skipping CI for Draft Pull Request. |
/test all |
3fcf84a
to
98ebbd9
Compare
/test all |
@jakobmoellerdev: This pull request references OCPVE-677 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
98ebbd9
to
2ea1398
Compare
/test all |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #406 +/- ##
==========================================
+ Coverage 54.11% 54.87% +0.76%
==========================================
Files 27 28 +1
Lines 2360 2657 +297
==========================================
+ Hits 1277 1458 +181
- Misses 997 1067 +70
- Partials 86 132 +46
|
1dbd4ff
to
6f5fdd3
Compare
/test all |
/test lvm-operator-e2e-aws |
6f5fdd3
to
47548ce
Compare
/test all |
47548ce
to
554c5e9
Compare
/test all |
554c5e9
to
cd2ddf4
Compare
/test all |
cd2ddf4
to
52b4dad
Compare
/test all |
52b4dad
to
06a4c3d
Compare
/test all |
bf60dc6
to
57ff80b
Compare
/test all |
57ff80b
to
5f320d0
Compare
da7a0da
to
8ec2059
Compare
/test all |
8ec2059
to
ef14733
Compare
/test all |
1 similar comment
/test all |
84dec74
to
76720fa
Compare
11e556f
to
1221854
Compare
/test all |
1221854
to
793bec6
Compare
793bec6
to
d860120
Compare
@jakobmoellerdev: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@jakobmoellerdev: This pull request references OCPVE-677 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@jakobmoellerdev: This pull request references OCPVE-677 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jakobmoellerdev, suleymanakbas91 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This refactors vgmanager by using a new different Interface:
lvm.LVM
encapsulates ALL lvm commands in the entire code and simultaneously enables unit testing.This allows the mocking / replacement / redirection of these interfaces at will. Also there is a new
suite_test.go
with the accompanying test inpkg/vgmanager
. The tests are powered by mockery, a configuration generator for mocks using testify. (used instead of gomock because gomock has been moved to uber and we already have testify so I didnt need to introduce new direct dependencies). The mock generation is configured via a central.mockery.yaml
in the root of the repo.