Skip to content

Commit

Permalink
Added setting of architecture in vmi spec explicitly to account for e…
Browse files Browse the repository at this point in the history
…xpectations of unit test architecture

Signed-off-by: David Aghaian <[email protected]>
  • Loading branch information
daghaian authored and aghaiand committed May 5, 2023
1 parent e668be0 commit f5bd3bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/virt-controller/watch/vmi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2976,6 +2976,7 @@ var _ = Describe("VirtualMachineInstance watcher", func() {

getVmiWithInvTsc := func() *virtv1.VirtualMachineInstance {
vmi := NewPendingVirtualMachine("testvmi")
vmi.Spec.Architecture = "amd64"
vmi.Spec.Domain.CPU = &v1.CPU{
Features: []virtv1.CPUFeature{
{
Expand All @@ -2990,6 +2991,7 @@ var _ = Describe("VirtualMachineInstance watcher", func() {

getVmiWithReenlightenment := func() *virtv1.VirtualMachineInstance {
vmi := NewPendingVirtualMachine("testvmi")
vmi.Spec.Architecture = "amd64"
vmi.Spec.Domain.Features = &v1.Features{
Hyperv: &v1.FeatureHyperv{
Reenlightenment: &v1.FeatureState{Enabled: pointer.Bool(true)},
Expand Down

0 comments on commit f5bd3bb

Please sign in to comment.