Merge "Fix libvirt driver tests to use LibvirtConfigCapsGuest instances"
This commit is contained in:
commit
ee6b69cadc
@ -15345,13 +15345,13 @@ class LibvirtConnTestCase(test.NoDBTestCase,
|
||||
caps.host = vconfig.LibvirtConfigCapsHost()
|
||||
caps.host.cpu = cpu
|
||||
|
||||
guest = vconfig.LibvirtConfigGuest()
|
||||
guest = vconfig.LibvirtConfigCapsGuest()
|
||||
guest.ostype = fields.VMMode.HVM
|
||||
guest.arch = fields.Architecture.X86_64
|
||||
guest.domtype = ["kvm"]
|
||||
caps.guests.append(guest)
|
||||
|
||||
guest = vconfig.LibvirtConfigGuest()
|
||||
guest = vconfig.LibvirtConfigCapsGuest()
|
||||
guest.ostype = fields.VMMode.HVM
|
||||
guest.arch = fields.Architecture.I686
|
||||
guest.domtype = ["kvm"]
|
||||
@ -16379,13 +16379,13 @@ class LibvirtConnTestCase(test.NoDBTestCase,
|
||||
def get_host_capabilities_stub(self):
|
||||
caps = vconfig.LibvirtConfigCaps()
|
||||
|
||||
guest = vconfig.LibvirtConfigGuest()
|
||||
guest = vconfig.LibvirtConfigCapsGuest()
|
||||
guest.ostype = 'hvm'
|
||||
guest.arch = fields.Architecture.X86_64
|
||||
guest.domtype = ['kvm', 'qemu']
|
||||
caps.guests.append(guest)
|
||||
|
||||
guest = vconfig.LibvirtConfigGuest()
|
||||
guest = vconfig.LibvirtConfigCapsGuest()
|
||||
guest.ostype = 'hvm'
|
||||
guest.arch = fields.Architecture.I686
|
||||
guest.domtype = ['kvm']
|
||||
@ -16393,7 +16393,7 @@ class LibvirtConnTestCase(test.NoDBTestCase,
|
||||
|
||||
# Include one that is not known to nova to make sure it
|
||||
# does not trip us up.
|
||||
guest = vconfig.LibvirtConfigGuest()
|
||||
guest = vconfig.LibvirtConfigCapsGuest()
|
||||
guest.ostype = 'hvm'
|
||||
guest.arch = 'itanic'
|
||||
guest.domtype = ['kvm']
|
||||
|
Loading…
x
Reference in New Issue
Block a user