-
Notifications
You must be signed in to change notification settings - Fork 288
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
Start the Keep Alive handler for VSphere client used in e2e tests #1518
Start the Keep Alive handler for VSphere client used in e2e tests #1518
Conversation
/retest |
Signed-off-by: Sagar Muchhal <muchhals@vmware.com>
aca12bd
to
0f2b832
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: srm09 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 |
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
/hold
feel free to remove the hold when you want
/unhold |
What this PR does / why we need it:
Some of the e2e test runs on testgrid keep failing due to failures in the test listed in
storage_policy_test.go
file. The reason for the failure is that the govmomi Client object we use to assert some conditions times out due to inactivity. As part of an earlier PR, aKeep-Alive
handler was added to the client which did not seem to solve the issue. The reason was that the groutine for the handler needs an explicit call toclient.Login()
method to get activated.This patch slightly modifies the creation of the govmomi Client object and adds an explicit call to login after adding the keep alive handler and also logs out the session once the test is finished.
Which issue(s) this PR fixes:
n/a
Release note: