-
Notifications
You must be signed in to change notification settings - Fork 808
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 csi-sanity tests #2254
base: master
Are you sure you want to change the base?
Add csi-sanity tests #2254
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold |
Code Coverage Diff
|
5d1d3b3
to
72c4b10
Compare
/retest |
1cd6007
to
79b840d
Compare
e328221
to
508b90e
Compare
508b90e
to
d8859ed
Compare
3dc7cd8
to
70c4ce9
Compare
70c4ce9
to
45ade56
Compare
45ade56
to
80ddf8b
Compare
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.
/lgtm
) | ||
|
||
var ( | ||
disks = make(map[string]*cloud.Disk) |
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.
np: Can make these members of FakeCloud
, instead of package level fields.
snapshotNameToID = make(map[string]string) | ||
) | ||
|
||
type FakeCloud struct { |
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.
np: can make this package-internal fakeCloud
if we're not going to be using it outside of this package.
mountPath := path.Join(tmpDir, "mount") | ||
stagePath := path.Join(tmpDir, "stage") | ||
|
||
fakeMounter, FakeCloud, fakeMetadataService, fakeKubernetesClient := createMockObjects(mockCtrl, mountPath) |
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.
np: consistent naming: fakeCloud
What type of PR is this?
/kind feature
What is this PR about? / Why do we need it?
This PR adds csi-sanity tests to the driver to be enable in CI afterwards.
How was this change tested?
Ran
make test-sanity
and received the following results
Does this PR introduce a user-facing change?