Skip migration in test 6870 if migration is not possible
@@ -273,21 +273,10 @@ var _ = Describe("[rfe_id:3423][crit:high][arm64][vendor:cnv-qe@redhat.com][leve
Expect(vmStatus).To(ConsistOf(vm.Name, MatchRegexp(vmAgeRegex), string(v12.VirtualMachineStatusRunning), MatchRegexp(vmReadyRegex)),
"VM should be in the %s status", v12.VirtualMachineStatusRunning)
- // The previous tests would be done, once succeed the following tests would be skipped on the Arm64 cluster
- // Otherwise, it would show the failures
- // TODO: remove this once we have more than one node in the Arm64 cluster
- tests.SkipIfARM64("arm64 cluster only have one node")
+ tests.SkipIfMigrationIsNotPossible()
By("Migrating the VirtualMachine")
- // Verify we have more than one scheduleable node
- virtClient, err := kubecli.GetKubevirtClient()
- Expect(err).ToNot(HaveOccurred())
-
- nodes := util.GetAllSchedulableNodes(virtClient)
- Expect(len(nodes.Items)).To(BeNumerically(">=", 2),
- "Migration requires at least 2 schedulable nodes")
-
migrateCommand := tests.NewRepeatableVirtctlCommand(virtctlvm.COMMAND_MIGRATE, "--namespace", vm.Namespace, vm.Name)
Expect(migrateCommand()).To(Succeed())
