-
Notifications
You must be signed in to change notification settings - Fork 173
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
Automate tests for feature Prevent CSI session leaks #2533
Automate tests for feature Prevent CSI session leaks #2533
Conversation
Hi @nikhilbarge. 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. |
159730e
to
31f50f9
Compare
Started Vanilla block pre-checkin pipeline... Build Number: 2362 |
Started Vanilla file pre-checkin pipeline... Build Number: 702 |
Started Vanilla block pre-checkin pipeline... Build Number: 2363 |
|
|
Started Vanilla block pre-checkin pipeline... Build Number: 2364 |
Started Vanilla file pre-checkin pipeline... Build Number: 703 |
|
Started vanilla file pipeline... Build Number: 958 |
35a1640
to
56cacb9
Compare
Started vanilla Block pipeline... Build Number: 2147 |
|
|
Started Vanilla file pre-checkin pipeline... Build Number: 705 |
56cacb9
to
62efd3d
Compare
|
Started Vanilla block pre-checkin pipeline... Build Number: 2369 |
|
b686152
to
3a3286b
Compare
Started Vanilla block pre-checkin pipeline... Build Number: 2396 |
|
/ok-to-test |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: divyenpatel, nikhilbarge 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 |
c02053e
to
7183f02
Compare
admissionapi "k8s.io/pod-security-admission/api" | ||
) | ||
|
||
var _ = ginkgo.Describe("[csi-block-vanilla][csi-file-vanilla][csi-supervisor]"+ |
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.
can you attach the test logs from all applicable flavours (as gist)
admissionapi "k8s.io/pod-security-admission/api" | ||
) | ||
|
||
var _ = ginkgo.Describe("[csi-block-vanilla][csi-file-vanilla][csi-supervisor]"+ |
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.
Also, I don't see any tests here for restapi sessions
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.
there is common functionality for all session cleanup no specific logic required for for rest-api.
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.
we should verify if restapi sessions are getting created with correct user agent values
}) | ||
gomega.Expect(waitErr).NotTo(gomega.HaveOccurred()) | ||
|
||
// check sessions are cleaned up |
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.
shouldn't we check all the older csi sessions are gone since we are checking for session leaks
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.
we are checking if all sessions are cleaned up created from current installed driver, sessions created from driver with older versions will not be cleaned up with this feature.
7183f02
to
3916f94
Compare
3916f94
to
d9ddd70
Compare
What this PR does / why we need it:
PR will add e2e tests for feature prevent CSI vCenter session leaks, to verify sessions are created with unique user-agent (feature-wise) and session are cleaned up on container stops
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Testing done:
executed e2e tests
Special notes for your reviewer:
Release note: