How to use test_verify_multiple_nics_order method in tempest

Best Python code snippet using tempest_python

test_create_server_multi_nic.py

Source:test_create_server_multi_nic.py Github

copy

Full Screen

...46 self.addCleanup(self.subnets_client.delete_subnet,47 subnet['subnet']['id'])48 return net49 @decorators.idempotent_id('0578d144-ed74-43f8-8e57-ab10dbf9b3c2')50 def test_verify_multiple_nics_order(self):51 # Verify that the networks order given at the server creation is52 # preserved within the server.53 net1 = self._create_net_subnet_ret_net_from_cidr('19.80.0.0/24')54 net2 = self._create_net_subnet_ret_net_from_cidr('19.86.0.0/24')55 networks = [{'uuid': net1['network']['id']},56 {'uuid': net2['network']['id']}]57 server_multi_nics = self.create_test_server(58 networks=networks, wait_until='ACTIVE')59 # Cleanup server; this is needed in the test case because with the LIFO60 # nature of the cleanups, if we don't delete the server first, the port61 # will still be part of the subnet and we'll get a 409 from Neutron62 # when trying to delete the subnet. The tear down in the base class63 # will try to delete the server and get a 404 but it's ignored so64 # we're OK....

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