File 0003-tests-Expect-PendingPopulation-phase.patch of Package kubevirt
From 6b8d3c4c638443751b4d96af68641652bb707686 Mon Sep 17 00:00:00 2001
From: Vasiliy Ulyanov <vulyanov@suse.de>
Date: Thu, 14 Mar 2024 08:34:44 +0100
Subject: [PATCH] tests: Expect PendingPopulation phase
If the test is run in an environment with volume populators, data volume
will transition to PendingPopulation phase.
Signed-off-by: Vasiliy Ulyanov <vulyanov@suse.de>
---
tests/migration/migration.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/migration/migration.go b/tests/migration/migration.go
index e6eb0a1aa..3a7656039 100644
--- a/tests/migration/migration.go
+++ b/tests/migration/migration.go
@@ -1050,7 +1050,7 @@ var _ = SIGMigrationDescribe("VM Live Migration", func() {
dataVolume, err = virtClient.CdiClient().CdiV1beta1().DataVolumes(testsuite.GetTestNamespace(nil)).Create(context.Background(), dataVolume, metav1.CreateOptions{})
Expect(err).ToNot(HaveOccurred())
- libstorage.EventuallyDV(dataVolume, 240, Or(HaveSucceeded(), BeInPhase(cdiv1.WaitForFirstConsumer)))
+ libstorage.EventuallyDV(dataVolume, 240, Or(HaveSucceeded(), BeInPhase(cdiv1.WaitForFirstConsumer), BeInPhase(cdiv1.PendingPopulation)))
vmi = tests.RunVMIAndExpectLaunch(vmi, 240)
--
2.44.0