コード例 #1
0
 def setUp(self):
     super(TestImageExtension, self).setUp()
     self.agent_extension = image.ImageExtension()
     self.fake_dev = '/dev/fake'
     self.fake_efi_system_part = '/dev/fake1'
     self.fake_root_part = '/dev/fake2'
     self.fake_root_uuid = '11111111-2222-3333-4444-555555555555'
     self.fake_efi_system_part_uuid = '45AB-2312'
     self.fake_dir = '/tmp/fake-dir'
コード例 #2
0
 def setUp(self):
     super(TestImageExtension, self).setUp()
     self.agent_extension = image.ImageExtension()
     self.fake_dev = '/dev/fake'
     self.fake_efi_system_part = '/dev/fake1'
     self.fake_root_part = '/dev/fake2'
     self.fake_prep_boot_part = '/dev/fake3'
     self.fake_root_uuid = '11111111-2222-3333-4444-555555555555'
     self.fake_efi_system_part_uuid = '45AB-2312'
     self.fake_prep_boot_part_uuid = '76937797-3253-8843-999999999999'
     self.fake_dir = '/tmp/fake-dir'
     self.agent_extension.agent = mock.Mock()
     self.agent_extension.agent.iscsi_started = True