def test_get_config_drive_type_cdrom(self): self.flags(config_drive_format='iso9660') config_drive_type = blockinfo.get_config_drive_type() self.assertEqual('cdrom', config_drive_type)
def test_get_config_drive_type_disk(self): self.flags(config_drive_format='vfat') config_drive_type = blockinfo.get_config_drive_type() self.assertEqual('disk', config_drive_type)
def test_get_config_drive_type_default(self): config_drive_type = blockinfo.get_config_drive_type() self.assertEqual('cdrom', config_drive_type)
def test_get_config_drive_type_disk(self): self.flags(config_drive_format="vfat") config_drive_type = blockinfo.get_config_drive_type() self.assertEqual("disk", config_drive_type)
def test_get_config_drive_type_cdrom(self): self.flags(config_drive_format="iso9660") config_drive_type = blockinfo.get_config_drive_type() self.assertEqual("cdrom", config_drive_type)
def test_get_config_drive_type_ploop(self): self.flags(config_drive_format=None) self.flags(virt_type='parallels', group='libvirt') config_drive_type = blockinfo.get_config_drive_type(vm_mode.EXE) self.assertEqual('fs', config_drive_type)