How to use test_shelve_unshelve_server method in tempest

Best Python code snippet using tempest_python

test_server_actions.py

Source:test_server_actions.py Github

copy

Full Screen

...276 resp, server = self.client.resume_server(self.server_id)277 self.assertEqual(202, resp.status)278 self.client.wait_for_server_status(self.server_id, 'ACTIVE')279 @attr(type='gate')280 def test_shelve_unshelve_server(self):281 resp, server = self.client.shelve_server(self.server_id)282 self.assertEqual(202, resp.status)283 offload_time = self.config.compute.shelved_offload_time284 if offload_time >= 0:285 self.client.wait_for_server_status(self.server_id,286 'SHELVED_OFFLOADED',287 extra_timeout=offload_time)288 else:289 self.client.wait_for_server_status(self.server_id,290 'SHELVED')291 resp, server = self.client.get_server(self.server_id)292 image_name = server['name'] + '-shelved'293 params = {'name': image_name}294 resp, images = self.images_client.list_images(params)...

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