How to use test_preserve_preexisting_port 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

...533 @testtools.skipUnless(CONF.compute_feature_enabled.preserve_ports,534 'Preserving ports on instance delete may not be '535 'supported in the version of Nova being tested.')536 @test.services('compute', 'network')537 def test_preserve_preexisting_port(self):538 """Tests that a pre-existing port provided on server boot is not539 deleted if the server is deleted.540 Nova should unbind the port from the instance on delete if the port was541 not created by Nova as part of the boot request.542 """543 # Setup the network, create a port and boot the server from that port.544 self._setup_network_and_servers(boot_with_port=True)545 _, server = self.floating_ip_tuple546 self.assertIsNotNone(self.port_id,547 'Server should have been created from a '548 'pre-existing port.')549 # Assert the port is bound to the server.550 port_list = self._list_ports(device_id=server['id'],551 network_id=self.network['id'])...

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