Skip to content

Commit

Permalink
Merge pull request kubevirt#11303 from Barakmor1/removeNewRvmi
Browse files Browse the repository at this point in the history
component_monitoring.go: Remove use of NewRandomVMI func
  • Loading branch information
kubevirt-bot authored Mar 6, 2024
2 parents e19b730 + 2b835c6 commit 9a6dd81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/monitoring/component_monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import (
"kubevirt.io/kubevirt/tests/flags"
"kubevirt.io/kubevirt/tests/framework/kubevirt"
"kubevirt.io/kubevirt/tests/libmonitoring"
"kubevirt.io/kubevirt/tests/libvmi"
"kubevirt.io/kubevirt/tests/util"
)

Expand Down Expand Up @@ -224,7 +225,7 @@ var _ = Describe("[Serial][sig-monitoring]Component Monitoring", Serial, decorat
err = virtClient.RbacV1().ClusterRoleBindings().Delete(context.Background(), "kubevirt-controller", metav1.DeleteOptions{})
Expect(err).ToNot(HaveOccurred())

vmi := tests.NewRandomVMI()
vmi := libvmi.NewGuestless()

Eventually(func(g Gomega) {
_, _ = virtClient.VirtualMachineInstance(util.NamespaceTestDefault).Create(context.Background(), vmi)
Expand All @@ -239,7 +240,7 @@ var _ = Describe("[Serial][sig-monitoring]Component Monitoring", Serial, decorat
err = virtClient.RbacV1().ClusterRoleBindings().Delete(context.Background(), "kubevirt-handler", metav1.DeleteOptions{})
Expect(err).ToNot(HaveOccurred())

vmi := tests.NewRandomVMI()
vmi := libvmi.NewGuestless()

Eventually(func(g Gomega) {
_, _ = virtClient.VirtualMachineInstance(util.NamespaceTestDefault).Create(context.Background(), vmi)
Expand Down

0 comments on commit 9a6dd81

Please sign in to comment.