コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
 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)
コード例 #4
0
 def test_get_config_drive_type_default(self):
     config_drive_type = blockinfo.get_config_drive_type()
     self.assertEqual('cdrom', config_drive_type)
コード例 #5
0
 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)
コード例 #6
0
 def test_get_config_drive_type_default(self):
     config_drive_type = blockinfo.get_config_drive_type()
     self.assertEqual('cdrom', config_drive_type)
コード例 #7
0
ファイル: test_blockinfo.py プロジェクト: sebrandon1/nova
 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)
コード例 #8
0
ファイル: test_blockinfo.py プロジェクト: sebrandon1/nova
 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)
コード例 #9
0
ファイル: test_blockinfo.py プロジェクト: zlzlnet/nova
 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)