How to use _reassociate_floating_ips method in tempest

Best Python code snippet using tempest_python

test_network_basic_ops.py

Source:test_network_basic_ops.py Github

copy

Full Screen

...193 def _disassociate_floating_ips(self):194 for floating_ip, server in self.floating_ips.iteritems():195 self._disassociate_floating_ip(floating_ip)196 self.floating_ips[floating_ip] = None197 def _reassociate_floating_ips(self):198 network = self.networks[0]199 for floating_ip in self.floating_ips.keys():200 name = data_utils.rand_name('new_server-smoke-')201 # create a new server for the floating ip202 server = self._create_server(name, network)203 self._associate_floating_ip(floating_ip, server)204 self.floating_ips[floating_ip] = server205 @attr(type='smoke')206 @services('compute', 'network')207 def test_network_basic_ops(self):208 self._create_security_groups()209 self._create_networks()210 self._check_networks()211 self._create_servers()212 self._create_and_associate_floating_ips()213 self._check_tenant_network_connectivity()214 self._check_public_network_connectivity(should_connect=True)215 self._disassociate_floating_ips()216 self._check_public_network_connectivity(should_connect=False,217 msg="after disassociate "218 "floating ip")219 self._reassociate_floating_ips()220 self._check_public_network_connectivity(should_connect=True,221 msg="after re-associate "...

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