forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubevirt#9195 from fossedihelm/fix_migration_tls
[e2e] Fix flaky tls test
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2023,6 +2023,9 @@ var _ = Describe("[rfe_id:393][crit:high][vendor:[email protected]][level:system | |
vmi := tests.NewRandomFedoraVMIWithGuestAgent() | ||
vmi.Spec.Domain.Resources.Requests[k8sv1.ResourceMemory] = resource.MustParse(fedoraVMSize) | ||
|
||
By("Limiting the bandwidth of migrations in the test namespace") | ||
tests.CreateMigrationPolicy(virtClient, tests.PreparePolicyAndVMIWithBandwidthLimitation(vmi, migrationBandwidthLimit)) | ||
|
||
By("Starting the VirtualMachineInstance") | ||
vmi = tests.RunVMIAndExpectLaunch(vmi, 240) | ||
|
||
|
@@ -2032,12 +2035,11 @@ var _ = Describe("[rfe_id:393][crit:high][vendor:[email protected]][level:system | |
// Run | ||
Expect(console.LoginToFedora(vmi)).To(Succeed()) | ||
|
||
runStressTest(vmi, stressDefaultVMSize, stressDefaultTimeout) | ||
|
||
// execute a migration, wait for finalized state | ||
By("Starting the Migration") | ||
migration := tests.NewRandomMigration(vmi.Name, vmi.Namespace) | ||
migration, err = virtClient.VirtualMachineInstanceMigration(migration.Namespace).Create(migration, &metav1.CreateOptions{}) | ||
Expect(err).ToNot(HaveOccurred()) | ||
|
||
By("Waiting for the proxy connection details to appear") | ||
Eventually(func() bool { | ||
|