Merge "Add flavor check after resize server"
This commit is contained in:
commit
f894cfecea
@ -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):
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user