-
Notifications
You must be signed in to change notification settings - Fork 145
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
Tests: Add unit test and run tests with root privileges #288
Tests: Add unit test and run tests with root privileges #288
Conversation
Hi @animeshk08. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Partially fixes the issue: #258 |
/ok-to-test |
@chewong some unit tests needs root permission, do you know where should we put
|
Opened kubernetes/test-infra#17685, which might fix the issue. I don't think sudo is available in the test container. Could you try removing it? |
/test pull-azurefile-csi-driver-verify |
@animeshk08 could you remove |
01aba3d
to
b409741
Compare
Thanks @andyzhangx |
b409741
to
24d1070
Compare
@animeshk08 can you squash commits next time, e.g.
|
cc6cacd
to
d14078f
Compare
/test pull-azurefile-csi-driver-verify |
the error is different now:
|
6d4b41d
to
4b5b3b8
Compare
The commit adds tests for nodeserver and safe mounter The commit also updates .tarvis.yaml and github actions to run the tests with root permission. This is necessary as some operations in the unit tests require root priviledges e.g. mounting. Signed-off-by: Animesh Kumar <animuz111@gmail.com>
4b5b3b8
to
57ce226
Compare
Thank you for the help @andyzhangx. The build is passing now 🚀 I have updated Github actions to run with The new coverage is: |
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, animeshk08 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 |
What type of PR is this?
/kind test
What this PR does / why we need it:
Improves test coverage
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
The unit test now requires root privileges to run.
This is necessary as some operation like mounting need root priviledge
Release note: