How to use _delete_extra_routes method in tempest

Best Python code snippet using tempest_python

test_routers.py

Source:test_routers.py Github

copy

Full Screen

...193 for i in range(routes_num):194 self.assertEqual(test_routes[i]['destination'],195 routes[i]['destination'])196 self.assertEqual(test_routes[i]['nexthop'], routes[i]['nexthop'])197 self._delete_extra_routes(router['id'])198 show_body_after_deletion = self.routers_client.show_router(199 router['id'])200 self.assertEmpty(show_body_after_deletion['router']['routes'])201 def _delete_extra_routes(self, router_id):202 self.routers_client.update_router(router_id, routes=None)203 @decorators.idempotent_id('a8902683-c788-4246-95c7-ad9c6d63a4d9')204 def test_update_router_admin_state(self):205 router = self._create_router()206 self.assertFalse(router['admin_state_up'])207 # Update router admin state208 update_body = self.routers_client.update_router(router['id'],209 admin_state_up=True)210 self.assertTrue(update_body['router']['admin_state_up'])211 show_body = self.routers_client.show_router(router['id'])212 self.assertTrue(show_body['router']['admin_state_up'])213 @decorators.attr(type='smoke')214 @decorators.idempotent_id('802c73c9-c937-4cef-824b-2191e24a6aab')215 def test_add_multiple_router_interfaces(self):...

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