add test id's for hostDisk and PV initialization tests
@@ -300,6 +300,8 @@ var _ = Describe("Storage", func() {
})
})
+ Context("[rfe_id:2298][crit:medium][vendor:cnv-qe@redhat.com][level:component] With HostDisk and PVC initialization", func() {
+
Context("With a HostDisk defined", func() {
const hostDiskDir = "/data"
@@ -361,7 +363,7 @@ var _ = Describe("Storage", func() {
Eventually(getStatus, 30, 1).Should(Equal(k8sv1.PodSucceeded))
})
- It("Should use existing disk image and start", func() {
+ It("[test_id:847]Should use existing disk image and start", func() {
By("Starting VirtualMachineInstance")
vmi := tests.NewRandomVMIWithHostDisk(diskPath, v1.HostDiskExists, nodeName)
tests.RunVMIAndExpectLaunch(vmi, 30)
@@ -386,6 +388,15 @@ var _ = Describe("Storage", func() {
tests.RemoveHostDiskImage(diskPath, nodeName)
})
})
+
+ Context("With unknown hostDisk type", func() {
+ It("[test_id:852]Should fail to start VMI", func() {
+ By("Starting VirtualMachineInstance")
+ vmi := tests.NewRandomVMIWithHostDisk("/data/unknown.img", "unknown", "")
+ _, err = virtClient.VirtualMachineInstance(tests.NamespaceTestDefault).Create(vmi)
+ Expect(err).To(HaveOccurred())
+ })
+ })
})
Context("With multiple empty PVCs", func() {
@@ -406,7 +417,7 @@ var _ = Describe("Storage", func() {
}
}, 120)
- It("Should initialize an empty PVC by creating a disk.img", func() {
+ It("[test_id:868]Should initialize an empty PVC by creating a disk.img", func() {
for _, pvc := range pvcs {
By("starting VirtualMachineInstance")
vmi := tests.NewRandomVMIWithPVC("disk-" + pvc)
@@ -514,6 +525,7 @@ var _ = Describe("Storage", func() {
objectEventWatcher.WaitFor(stopChan, tests.EventType(hostdisk.EventTypeToleratedSmallPV), hostdisk.EventReasonToleratedSmallPV)
})
})
+ })
Context("With Cirros BlockMode PVC", func() {
