How to use test_aggregate_add_host_get_details method in tempest

Best Python code snippet using tempest_python

test_aggregates.py

Source:test_aggregates.py Github

copy

Full Screen

...156 self.assertEqual(aggregate_name, agg['name'])157 self.assertIsNone(agg['availability_zone'])158 self.assertIn(self.host, agg['hosts'])159 @test.idempotent_id('eeef473c-7c52-494d-9f09-2ed7fc8fc036')160 def test_aggregate_add_host_get_details(self):161 # Add a host to the given aggregate and get details.162 self.useFixture(fixtures.LockFixture('availability_zone'))163 aggregate_name = data_utils.rand_name(self.aggregate_name_prefix)164 aggregate = (self.client.create_aggregate(name=aggregate_name)165 ['aggregate'])166 self.addCleanup(self.client.delete_aggregate, aggregate['id'])167 self.client.add_host(aggregate['id'], host=self.host)168 self.addCleanup(self.client.remove_host, aggregate['id'],169 host=self.host)170 body = self.client.show_aggregate(aggregate['id'])['aggregate']171 self.assertEqual(aggregate_name, body['name'])172 self.assertIsNone(body['availability_zone'])173 self.assertIn(self.host, body['hosts'])174 @test.idempotent_id('96be03c7-570d-409c-90f8-e4db3c646996')...

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