Add a skip check for a migration tests if enough nodes are available
@@ -977,6 +977,10 @@ var _ = Describe("[rfe_id:1177][crit:medium][vendor:cnv-qe@redhat.com][level:com
})
It("[test_id:4119]should migrate a running VM", func() {
+ nodes := tests.GetAllSchedulableNodes(virtClient)
+ if len(nodes.Items) < 2 {
+ Skip("Migration tests require at least 2 nodes")
+ }
By("creating a VM with RunStrategyAlways")
virtualMachine := newVirtualMachineWithRunStrategy(v1.RunStrategyAlways)
