Merge "Add flavor check after resize server"

This commit is contained in:
Zuul 2018-01-17 16:56:32 +00:00 committed by Gerrit Code Review
commit f894cfecea
2 changed files with 7 additions and 0 deletions

View File

@ -376,6 +376,11 @@ class BaseV2ComputeTest(api_version_utils.BaseMicroversionTest,
'VERIFY_RESIZE')
cls.servers_client.confirm_resize_server(server_id)
waiters.wait_for_server_status(cls.servers_client, server_id, 'ACTIVE')
server = cls.servers_client.show_server(server_id)['server']
if new_flavor_id != server['flavor']['id']:
msg = ('Flavor id of %s is not equal to new_flavor_id.'
% server_id)
raise lib_exc.TempestException(msg)
@classmethod
def delete_volume(cls, volume_id):

View File

@ -195,6 +195,8 @@ class TestNetworkAdvancedServerOps(manager.NetworkScenarioTest):
waiters.wait_for_server_status(self.servers_client, server['id'],
'VERIFY_RESIZE')
self.servers_client.confirm_resize_server(server['id'])
server = self.servers_client.show_server(server['id'])['server']
self.assertEqual(resize_flavor, server['flavor']['id'])
self._wait_server_status_and_check_network_connectivity(
server, keypair, floating_ip)