Skip to content

Commit

Permalink
add a RNG device to the nfs test vmi
Browse files Browse the repository at this point in the history
Signed-off-by: Vladik Romanovsky <[email protected]>
  • Loading branch information
vladikr committed Jun 28, 2019
1 parent d0073af commit 8396632
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions tests/migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ var _ = Describe("[rfe_id:393][crit:high[vendor:[email protected]][level:system]
By("Creating the VMI")
vmi = tests.NewRandomVMIWithPVC(pvName)
vmi.Spec.Domain.Resources.Requests[k8sv1.ResourceMemory] = resource.MustParse("1G")
vmi.Spec.Domain.Devices.Rng = &v1.Rng{}

// add userdata for guest agent and service account mount
secretDiskSerial := "D23YZ9W6WA5DJ487"
Expand Down Expand Up @@ -721,9 +722,6 @@ var _ = Describe("[rfe_id:393][crit:high[vendor:[email protected]][level:system]
// check VMI, confirm migration state
confirmVMIPostMigration(vmi, migrationUID)

// Wait for cloud init to finish and start the agent inside the vmi.
tests.WaitAgentConnected(virtClient, vmi)

By("Checking that the migrated VirtualMachineInstance console has expected output")
expecter, err = tests.ReLoggedInFedoraExpecter(vmi, 60)
defer expecter.Close()
Expand Down
1 change: 1 addition & 0 deletions tests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1757,6 +1757,7 @@ func addCloudInitDiskAndVolume(vmi *v1.VirtualMachineInstance, name string, volu

func NewRandomVMIWithPVC(claimName string) *v1.VirtualMachineInstance {
vmi := NewRandomVMI()
vmi.Spec.Domain.Resources.Requests[k8sv1.ResourceMemory] = resource.MustParse("64M")
vmi = AddPVCDisk(vmi, "disk0", "virtio", claimName)
return vmi
}
Expand Down

0 comments on commit 8396632

Please sign in to comment.