How to use _test_update_subnetpool method in tempest

Best Python code snippet using tempest_python

test_subnetpools_client.py

Source:test_subnetpools_client.py Github

copy

Full Screen

...90 {'subnetpool': self.FAKE_SUBNETPOOLS['subnetpools'][0]},91 bytes_body,92 200,93 subnetpool_id=self.FAKE_SUBNETPOOL_ID)94 def _test_update_subnetpool(self, bytes_body=False):95 update_kwargs = {96 "name": "my-new-subnetpool-name",97 "prefixes": [98 "2001:db8::/64",99 "2001:db8:0:1::/64",100 "2001:db8:0:2::/64"101 ],102 "min_prefixlen": 64,103 "default_prefixlen": 64,104 "max_prefixlen": 64105 }106 resp_body = {107 'subnetpool': copy.deepcopy(108 self.FAKE_SUBNETPOOLS['subnetpools'][0])109 }110 resp_body['subnetpool'].update(update_kwargs)111 self.check_service_client_function(112 self.subnetpools_client.update_subnetpool,113 'tempest.lib.common.rest_client.RestClient.put',114 resp_body,115 bytes_body,116 200,117 subnetpool_id=self.FAKE_SUBNETPOOL_ID,118 **update_kwargs)119 def test_list_subnetpools_with_str_body(self):120 self._test_list_subnetpools()121 def test_list_subnetpools_with_bytes_body(self):122 self._test_list_subnetpools(bytes_body=True)123 def test_create_subnetpool_with_str_body(self):124 self._test_create_subnetpool()125 def test_create_subnetpool_with_bytes_body(self):126 self._test_create_subnetpool(bytes_body=True)127 def test_show_subnetpool_with_str_body(self):128 self._test_show_subnetpool()129 def test_show_subnetpool_with_bytes_body(self):130 self._test_show_subnetpool(bytes_body=True)131 def test_update_subnet_with_str_body(self):132 self._test_update_subnetpool()133 def test_update_subnet_with_bytes_body(self):134 self._test_update_subnetpool(bytes_body=True)135 def test_delete_subnetpool(self):136 self.check_service_client_function(137 self.subnetpools_client.delete_subnetpool,138 'tempest.lib.common.rest_client.RestClient.delete',139 {},140 status=204,...

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