-
Notifications
You must be signed in to change notification settings - Fork 250
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
test (machine) : add some unit tests for growing lvm size based on persistent-volume-size
config option in microshift preset
#4628
base: main
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
1fbfdeb
to
6e3ac93
Compare
81af69c
to
b762672
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anjannath 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 |
pkg/crc/machine/start_test.go
Outdated
type MockedSSHRunner struct { | ||
mockedSSHCommandToOutputMap map[string]string | ||
mockedSSHCommandToError map[string]error | ||
mockedSSHCommandToArgsMap map[string]string |
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.
nit: maybe remove the Map
suffix from the other two struct members (mockedSSHCommandToOutputMap
, mockedSSHCommandToArgsMap
) as well
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.
Thanks, let me update it as per your suggestion.
+ Replace sshRunner argument in growLVForMicroshift with an interface + Add unit tests for abovementioned method with various combinations of persistent-volume size and disk size + Add unit test for validatePersistentVolumeSize Signed-off-by: Rohan Kumar <[email protected]>
b762672
to
8faa870
Compare
New changes are detected. LGTM label has been removed. |
@rohanKanojia: The following test failed, say
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-sigs/prow repository. I understand the commands that are listed here. |
Description
Add some unit tests for method
growLVForMicroshift
Relates to: #4186, PR #4623
Type of change
test, version modification, documentation, etc.)
Proposed changes
*crcssh.Runner
growLVForMicroshift method argument to receive an interface insteadpersistent-volume-size
and size growth performed by the methodTesting
I've only verified that build is passing.
Contribution Checklist