How to use test_server_connectivity_cold_migration_revert method in tempest

Best Python code snippet using tempest_python

test_network_advanced_server_ops.py

Source:test_network_advanced_server_ops.py Github

copy

Full Screen

...201 @testtools.skipUnless(CONF.compute.min_compute_nodes > 1,202 'Less than 2 compute nodes, skipping multinode '203 'tests.')204 @test.services('compute', 'network')205 def test_server_connectivity_cold_migration_revert(self):206 keypair = self.create_keypair()207 server = self._setup_server(keypair)208 floating_ip = self._setup_network(server, keypair)209 src_host = self._get_host_for_server(server['id'])210 self._wait_server_status_and_check_network_connectivity(211 server, keypair, floating_ip)212 self.admin_servers_client.migrate_server(server['id'])213 waiters.wait_for_server_status(self.servers_client, server['id'],214 'VERIFY_RESIZE')215 self.servers_client.revert_resize_server(server['id'])216 self._wait_server_status_and_check_network_connectivity(217 server, keypair, floating_ip)218 dst_host = self._get_host_for_server(server['id'])219 self.assertEqual(src_host, dst_host)

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run tempest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful