Пример #1
0
 def test__clean_up_boot_iso_for_instance(self, swift_mock,
                                          boot_object_name_mock):
     swift_obj_mock = swift_mock.return_value
     CONF.ilo.swift_ilo_container = 'ilo-cont'
     boot_object_name_mock.return_value = 'boot-object'
     ilo_deploy._clean_up_boot_iso_for_instance(self.node)
     swift_obj_mock.delete_object.assert_called_once_with('ilo-cont',
                                                          'boot-object')
Пример #2
0
 def test__clean_up_boot_iso_for_instance(self, swift_mock,
                                          boot_object_name_mock):
     swift_obj_mock = swift_mock.return_value
     CONF.ilo.swift_ilo_container = 'ilo-cont'
     boot_object_name_mock.return_value = 'boot-object'
     ilo_deploy._clean_up_boot_iso_for_instance(self.node)
     swift_obj_mock.delete_object.assert_called_once_with(
         'ilo-cont', 'boot-object')