Functional test for customized XML marshal/unmarshal for user defined aliases
@@ -406,6 +406,38 @@ var _ = Describe("[Serial][rfe_id:393][crit:high][vendor:cnv-qe@redhat.com][leve
})
})
Context("with a Cirros disk", func() {
+ It("should be successfully migrate with a tablet device", func() {
+ vmi := tests.NewRandomVMIWithEphemeralDisk(cd.ContainerDiskFor(cd.ContainerDiskCirros))
+ tests.AddUserData(vmi, "cloud-init", "#!/bin/bash\necho 'hello'\n")
+ vmi.Spec.Domain.Devices.Inputs = []v1.Input{
+ {
+ Name: "tablet0",
+ Type: "tablet",
+ Bus: "usb",
+ },
+ }
+
+ By("Starting the VirtualMachineInstance")
+ vmi = runVMIAndExpectLaunch(vmi, 240)
+
+ By("Checking that the VirtualMachineInstance console has expected output")
+ Expect(libnet.WithIPv6(console.LoginToCirros)(vmi)).To(Succeed())
+
+ By("starting the migration")
+ migration := tests.NewRandomMigration(vmi.Name, vmi.Namespace)
+ migrationUID := tests.RunMigrationAndExpectCompletion(virtClient, migration, migrationWaitTime)
+
+ // check VMI, confirm migration state
+ tests.ConfirmVMIPostMigration(virtClient, vmi, migrationUID)
+
+ // delete VMI
+ By("Deleting the VMI")
+ Expect(virtClient.VirtualMachineInstance(vmi.Namespace).Delete(vmi.Name, &metav1.DeleteOptions{})).To(Succeed())
+
+ By("Waiting for VMI to disappear")
+ tests.WaitForVirtualMachineToDisappearWithTimeout(vmi, 240)
+ })
+
It("[test_id:4113]should be successfully migrate with cloud-init disk with devices on the root bus", func() {
vmi := tests.NewRandomVMIWithEphemeralDisk(cd.ContainerDiskFor(cd.ContainerDiskCirros))
vmi.Annotations = map[string]string{
