summaryrefslogtreecommitdiff
path: root/nova/tests/functional/regressions/test_bug_1830747.py
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2019-05-22 17:19:29 +0100
committerStephen Finucane <sfinucan@redhat.com>2019-06-12 16:09:46 +0100
commit8d5359ca517be84a5fd551fea8246fd5c2ccebeb (patch)
tree74e4995ba337358004b42c4e3ad41281f52f8980 /nova/tests/functional/regressions/test_bug_1830747.py
parentf298973520420710a617e4d79e853f2416b29786 (diff)
downloadnova-8d5359ca517be84a5fd551fea8246fd5c2ccebeb.tar.gz
Remove cells v1 parameter from 'ComputeTaskAPI.resize_instance'
The 'extra_instance_updates' parameter was only used by cells v1 and can therefore be removed. Part of blueprint remove-cells-v1 Change-Id: I70012f7be863afc9d9ed8882cc5d9d193bbb7b6d Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'nova/tests/functional/regressions/test_bug_1830747.py')
-rw-r--r--nova/tests/functional/regressions/test_bug_1830747.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/nova/tests/functional/regressions/test_bug_1830747.py b/nova/tests/functional/regressions/test_bug_1830747.py
index c93e679772..5820540d5b 100644
--- a/nova/tests/functional/regressions/test_bug_1830747.py
+++ b/nova/tests/functional/regressions/test_bug_1830747.py
@@ -117,9 +117,8 @@ class MissingReqSpecInstanceGroupUUIDTestCase(
# This simulates the pre-Stein reschedule behavior.
original_resize_instance = conductor_api.ComputeTaskAPI.resize_instance
- def stub_resize_instance(_self, context, instance,
- extra_instance_updates, scheduler_hint,
- *args, **kwargs):
+ def stub_resize_instance(_self, context, instance, scheduler_hint,
+ flavor, *args, **kwargs):
# Only remove the request spec if we know we're rescheduling
# which we can determine from the filter_properties retry dict.
filter_properties = scheduler_hint['filter_properties']
@@ -129,8 +128,8 @@ class MissingReqSpecInstanceGroupUUIDTestCase(
self.assertEqual(group_id, filter_properties['group_uuid'])
kwargs.pop('request_spec', None)
return original_resize_instance(
- _self, context, instance, extra_instance_updates,
- scheduler_hint, *args, **kwargs)
+ _self, context, instance, scheduler_hint, flavor, *args,
+ **kwargs)
self.stub_out('nova.conductor.api.ComputeTaskAPI.resize_instance',
stub_resize_instance)