reuse libvmi.NewAlpine() a few times
@@ -139,7 +139,7 @@ var _ = Describe("[rfe_id:127][posneg:negative][crit:medium][vendor:cnv-qe@redha
})
It("[test_id:1590]should be able to reconnect to console multiple times", func() {
- vmi := tests.NewRandomVMIWithEphemeralDisk(cd.ContainerDiskFor(cd.ContainerDiskAlpine))
+ vmi := libvmi.NewAlpine()
RunVMIAndWaitForStart(vmi)
@@ -149,7 +149,7 @@ var _ = Describe("[rfe_id:127][posneg:negative][crit:medium][vendor:cnv-qe@redha
})
It("[test_id:1591]should close console connection when new console connection is opened", func(done Done) {
- vmi := tests.NewRandomVMIWithEphemeralDisk(cd.ContainerDiskFor(cd.ContainerDiskAlpine))
+ vmi := libvmi.NewAlpine()
RunVMIAndWaitForStart(vmi)
@@ -174,9 +174,9 @@ var _ = Describe("[rfe_id:127][posneg:negative][crit:medium][vendor:cnv-qe@redha
}, 220)
It("[test_id:1592]should wait until the virtual machine is in running state and return a stream interface", func() {
- vmi := tests.NewRandomVMIWithEphemeralDisk(cd.ContainerDiskFor(cd.ContainerDiskAlpine))
+ vmi := libvmi.NewAlpine()
By("Creating a new VirtualMachineInstance")
- _, err := virtClient.VirtualMachineInstance(util.NamespaceTestDefault).Create(vmi)
+ vmi, err := virtClient.VirtualMachineInstance(util.NamespaceTestDefault).Create(vmi)
Expect(err).ToNot(HaveOccurred())
_, err = virtClient.VirtualMachineInstance(vmi.Namespace).SerialConsole(vmi.Name, &kubecli.SerialConsoleOptions{ConnectionTimeout: 30 * time.Second})
@@ -184,7 +184,7 @@ var _ = Describe("[rfe_id:127][posneg:negative][crit:medium][vendor:cnv-qe@redha
})
It("[test_id:1593]should fail waiting for the virtual machine instance to be running", func() {
- vmi := tests.NewRandomVMIWithEphemeralDisk(cd.ContainerDiskFor(cd.ContainerDiskAlpine))
+ vmi := libvmi.NewAlpine()
vmi.Spec.Affinity = &k8sv1.Affinity{
NodeAffinity: &k8sv1.NodeAffinity{
RequiredDuringSchedulingIgnoredDuringExecution: &k8sv1.NodeSelector{
@@ -209,7 +209,7 @@ var _ = Describe("[rfe_id:127][posneg:negative][crit:medium][vendor:cnv-qe@redha
})
It("[test_id:1594]should fail waiting for the expecter", func() {
- vmi := tests.NewRandomVMIWithEphemeralDisk(cd.ContainerDiskFor(cd.ContainerDiskAlpine))
+ vmi := libvmi.NewAlpine()
vmi.Spec.Affinity = &k8sv1.Affinity{
NodeAffinity: &k8sv1.NodeAffinity{
RequiredDuringSchedulingIgnoredDuringExecution: &k8sv1.NodeSelector{
