@@ -10644,6 +10644,7 @@ def doit(mock_pr, mock_r):
10644
10644
self._mock_rt().reportclient = reportclient
10645
10645
mock_pr.side_effect = test.TestingException
10646
10646
mock_r.side_effect = test.TestingException
10647
+ request_spec = objects.RequestSpec()
10647
10648
10648
10649
instance = objects.Instance(uuid=uuids.instance,
10649
10650
id=1,
@@ -10656,7 +10657,7 @@ def doit(mock_pr, mock_r):
10656
10657
self.compute.prep_resize,
10657
10658
self.context, mock.sentinel.image,
10658
10659
instance, flavor,
10659
- mock.sentinel. request_spec,
10660
+ request_spec,
10660
10661
{}, 'node', False,
10661
10662
migration, [])
10662
10663
@@ -10666,7 +10667,11 @@ def doit(mock_pr, mock_r):
10666
10667
migration.save.assert_called_once_with()
10667
10668
mock_r.assert_called_once_with(
10668
10669
self.context, instance, mock.ANY, flavor,
10669
- mock.sentinel.request_spec, {}, [])
10670
+ request_spec, {}, [])
10671
+ mock_pr.assert_called_once_with(
10672
+ self.context, mock.sentinel.image,
10673
+ instance, flavor, {}, 'node', migration,
10674
+ request_spec, False)
10670
10675
mock_notify_resize.assert_has_calls([
10671
10676
mock.call(self.context, instance, 'fake-mini',
10672
10677
'start', flavor),
0 commit comments