-
Notifications
You must be signed in to change notification settings - Fork 5
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
Refactored create machine tests #345
base: main
Are you sure you want to change the base?
Conversation
7cebdb9
to
10f0f7e
Compare
22ac246
to
894bf0e
Compare
894bf0e
to
a5a876b
Compare
DeferCleanup(libvirtConn.ConnectClose) | ||
}) | ||
|
||
func isSocketAvailable(socketPath string) error { |
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.
this function is defined multiple times. Probably whole server_suite_test.go were copied. It has to be refactor.
@@ -107,6 +107,10 @@ test: manifests generate fmt vet envtest ## Run tests. Some test depend on Linux | |||
integration-tests: ## Run integration tests against code. For dependencies, refer to the integration-test workflow. | |||
go run github.com/onsi/ginkgo/v2/ginkgo run -r --label-filter="integration" -coverprofile cover.out | |||
|
|||
# .PHONY: integration-tests |
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.
this is duplicity. it can be deleted.
@@ -101,7 +101,7 @@ var _ = Describe("ListEvents", func() { | |||
|
|||
By("listing the machine events with matching label filter and non matching time filter") | |||
resp, err = machineClient.ListEvents(ctx, &iri.ListEventsRequest{Filter: &iri.EventFilter{ | |||
LabelSelector: map[string]string{machinepoolletv1alpha1.MachineUIDLabel: "foobar"}, | |||
LabelSelector: map[string]string{machinepoolletv1alpha1.MachineUIDLabel: "eventlist"}, |
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.
is this correct?
pluginOpts := networkinterfaceplugin.NewDefaultOptions() | ||
pluginOpts.PluginName = "isolated" | ||
|
||
// tempDir = "/home/pcmil/libvirt-provider/temptest" |
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.
code from testing
Proposed Changes
Fixes #