Merge "Remove duplicate ServerMovingTests._resize_and_check_allocations"

This commit is contained in:
Zuul 2019-11-16 00:39:21 +00:00 committed by Gerrit Code Review
commit 709d0594cf
1 changed files with 0 additions and 13 deletions

View File

@ -1777,19 +1777,6 @@ class ServerMovingTests(integrated_helpers.ProviderUsageBaseTestCase):
def test_resize_confirm_reverse(self): def test_resize_confirm_reverse(self):
self._test_resize_confirm(dest_hostname='host2') self._test_resize_confirm(dest_hostname='host2')
def _resize_and_check_allocations(self, server, old_flavor, new_flavor,
source_rp_uuid, dest_rp_uuid):
self.flags(allow_resize_to_same_host=False)
resize_req = {
'resize': {
'flavorRef': new_flavor['id']
}
}
self._move_and_check_allocations(
server, request=resize_req, old_flavor=old_flavor,
new_flavor=new_flavor, source_rp_uuid=source_rp_uuid,
dest_rp_uuid=dest_rp_uuid)
def test_migration_confirm_resize_error(self): def test_migration_confirm_resize_error(self):
source_hostname = self.compute1.host source_hostname = self.compute1.host
dest_hostname = self.compute2.host dest_hostname = self.compute2.host