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 VZVirtualMachineConfiguration:SocketDevices and VZVirtualMachineConfiguration:NetworkDevices #82

Merged
merged 5 commits into from
Oct 19, 2022

Conversation

cfergeau
Copy link
Contributor

Since only a single VZVirtioSocketDevice is allowed per virtual machine
instance, it's useful to be able to check whether one is already set or not
in the VZVirtualMachineConfiguration object.

This fixes #81

Which issue(s) this PR fixes:

Fixes #

Additional documentation

Since only a single VZVirtioSocketDevice is allowed per virtual machine
instance, it's useful to be able to check whether one is already set or
not in the VZVirtualMachineConfiguration object.

This fixes Code-Hex#81
@@ -112,3 +120,57 @@ func TestIssue43(t *testing.T) {
}
})
}

func TestIssue81(t *testing.T) {
Copy link
Owner

@Code-Hex Code-Hex Oct 19, 2022

Choose a reason for hiding this comment

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

The meaning of TestIssueXXX is used to indicate that the bug has been fixed, in line with the official Go repository. (In fact, it is created for each file, but because of the volume, it is created as a single function. e.g. issue21104_test.go)

This is not a bug and should be created as a functional test.

I will correct this on our side for clarity later.

Copy link
Owner

@Code-Hex Code-Hex left a comment

Choose a reason for hiding this comment

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

Thanks

@Code-Hex Code-Hex merged commit 1ed2037 into Code-Hex:master Oct 19, 2022
@cfergeau cfergeau deleted the vsock-config branch October 19, 2022 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add accessor for VZVirtualMachineConfiguration:socketDevices
2 participants