virt-handler: add domain type check to machine type check
@@ -7,9 +7,10 @@ import (
var _ = Describe("Defaults", func() {
- It("should set q35 machine type", func() {
+ It("should set q35 machine type and hvm domain type", func() {
domain := &Domain{}
SetDefaults_OSType(&domain.Spec.OS.Type)
Expect(domain.Spec.OS.Type.Machine).To(Equal("q35"))
+ Expect(domain.Spec.OS.Type.OS).To(Equal("hvm"))
})
})
