Skip to content

Commit

Permalink
Merge pull request kubevirt#9195 from fossedihelm/fix_migration_tls
Browse files Browse the repository at this point in the history
[e2e] Fix flaky tls test
  • Loading branch information
kubevirt-bot authored Feb 9, 2023
2 parents 47285aa + 54dab75 commit 1c54a9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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 {
Expand Down

0 comments on commit 1c54a9b

Please sign in to comment.