Best Python code snippet using tempest_python
test_multi_backend.py
Source:test_multi_backend.py
...66 for volume_type_id in volume_type_id_list:67 cls.client.delete_volume_type(volume_type_id)68 super(VolumeMultiBackendTest, cls).tearDownClass()69 @test.attr(type='smoke')70 def test_backend_name_reporting(self):71 # this test checks if os-vol-attr:host is populated correctly after72 # the multi backend feature has been enabled73 # if multi-backend is enabled: os-vol-attr:host should be like:74 # host@backend_name75 resp, volume = self.volume_client.get_volume(self.volume1['id'])76 self.assertEqual(200, resp.status)77 volume1_host = volume['os-vol-host-attr:host']78 msg = ("multi-backend reporting incorrect values for volume %s" %79 self.volume1['id'])80 self.assertTrue(len(volume1_host.split("@")) > 1, msg)81 @test.attr(type='gate')82 def test_backend_name_distinction(self):83 # this test checks that the two volumes created at setUp don't84 # belong to the same backend (if they are, than the...
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.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!