Skip to content
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 vm.Shutdown() function and tests #496

Merged
merged 12 commits into from
Aug 23, 2022

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Aug 16, 2022

This PR works on top of good work done in #413 by @lelvisl and adds a test Test_VmShutdown which tracks status of Guest customization and triggers shutdown. The shutdown only works when guest tools are running.

A few additional things occured to comply with Go 1.19: * Additionally it does `make fmt` using Go 1.19 as it has a few doc comment changes. * Staticcheck complained about `package io/ioutil is deprecated`. In reality some of functions were moved to `io`, others to `os`, so only import paths changed.

All above was done in separate PR #497

Closes #413

lelvisl and others added 6 commits December 2, 2021 02:31
Shutdown triggers a VM undeploy and shutdown action. "Shut Down Guest OS" action in UI behaves this way.
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
@Didainius Didainius marked this pull request as ready for review August 16, 2022 08:47
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Didainius Didainius merged commit 06401aa into vmware:main Aug 23, 2022
@Didainius Didainius deleted the vm-shutdown-with-test branch August 23, 2022 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants