Exemple #1
0
 def test__get_image_file_path(self):
     node = self._create_test_node(
         id=345,
         driver='fake_pxe',
         driver_info=INFO_DICT,
     )
     info = pxe._parse_driver_info(node)
     self.assertEqual('/var/lib/ironic/images/fake_instance_name/disk',
                      pxe._get_image_file_path(info))
Exemple #2
0
 def test__get_image_file_path(self):
     self.assertEqual(
         os.path.join(CONF.pxe.images_path, self.node.uuid, 'disk'),
         pxe._get_image_file_path(self.node.uuid))
Exemple #3
0
 def test__get_image_file_path(self):
     self.assertEqual(os.path.join(CONF.pxe.images_path,
                                   self.node.uuid,
                                   'disk'),
                      pxe._get_image_file_path(self.node.uuid))