How to use check_service_client_function method in tempest

Best Python code snippet using tempest_python

test_servers_client.py

Source:test_servers_client.py Github

copy

Full Screen

...172 self._test_list_servers()173 def test_list_servers_with_bytes_body(self):174 self._test_list_servers(bytes_body=True)175 def _test_list_servers(self, bytes_body=False):176 self.check_service_client_function(177 self.client.list_servers,178 'tempest.lib.common.rest_client.RestClient.get',179 self.FAKE_SERVERS,180 bytes_body)181 def test_show_server_with_str_body(self):182 self._test_show_server()183 def test_show_server_with_bytes_body(self):184 self._test_show_server(bytes_body=True)185 def _test_show_server(self, bytes_body=False):186 self.check_service_client_function(187 self.client.show_server,188 'tempest.lib.common.rest_client.RestClient.get',189 self.FAKE_SERVER_GET,190 bytes_body,191 server_id=self.server_id192 )193 def test_delete_server(self, bytes_body=False):194 self.check_service_client_function(195 self.client.delete_server,196 'tempest.lib.common.rest_client.RestClient.delete',197 {},198 status=204,199 server_id=self.server_id200 )201 def test_create_server_with_str_body(self):202 self._test_create_server()203 def test_create_server_with_bytes_body(self):204 self._test_create_server(True)205 def _test_create_server(self, bytes_body=False):206 self.check_service_client_function(207 self.client.create_server,208 'tempest.lib.common.rest_client.RestClient.post',209 self.FAKE_SERVER_POST,210 bytes_body,211 status=202,212 name='fake-name',213 imageRef='fake-image-ref',214 flavorRef='fake-flavor-ref'215 )216 def test_list_addresses_with_str_body(self):217 self._test_list_addresses()218 def test_list_addresses_with_bytes_body(self):219 self._test_list_addresses(True)220 def _test_list_addresses(self, bytes_body=False):221 self.check_service_client_function(222 self.client.list_addresses,223 'tempest.lib.common.rest_client.RestClient.get',224 self.FAKE_ADDRESS,225 bytes_body,226 server_id=self.server_id227 )228 def test_list_addresses_by_network_with_str_body(self):229 self._test_list_addresses_by_network()230 def test_list_addresses_by_network_with_bytes_body(self):231 self._test_list_addresses_by_network(True)232 def _test_list_addresses_by_network(self, bytes_body=False):233 self.check_service_client_function(234 self.client.list_addresses_by_network,235 'tempest.lib.common.rest_client.RestClient.get',236 self.FAKE_ADDRESS['addresses'],237 server_id=self.server_id,238 network_id=self.network_id239 )240 def test_action_with_str_body(self):241 self._test_action()242 def test_action_with_bytes_body(self):243 self._test_action(True)244 def _test_action(self, bytes_body=False):245 self.check_service_client_function(246 self.client.action,247 'tempest.lib.common.rest_client.RestClient.post',248 {},249 server_id=self.server_id,250 action_name='fake-action-name',251 schema={'status_code': 200}252 )253 def test_create_backup_with_str_body(self):254 self._test_create_backup()255 def test_create_backup_with_bytes_body(self):256 self._test_create_backup(True)257 def _test_create_backup(self, bytes_body=False):258 self.check_service_client_function(259 self.client.create_backup,260 'tempest.lib.common.rest_client.RestClient.post',261 {},262 status=202,263 server_id=self.server_id,264 backup_type='fake-backup',265 rotation='fake-rotation',266 name='fake-name'267 )268 def test_change_password_with_str_body(self):269 self._test_change_password()270 def test_change_password_with_bytes_body(self):271 self._test_change_password(True)272 def _test_change_password(self, bytes_body=False):273 self.check_service_client_function(274 self.client.change_password,275 'tempest.lib.common.rest_client.RestClient.post',276 {},277 status=202,278 server_id=self.server_id,279 adminPass='fake-admin-pass'280 )281 def test_show_password_with_str_body(self):282 self._test_show_password()283 def test_show_password_with_bytes_body(self):284 self._test_show_password(True)285 def _test_show_password(self, bytes_body=False):286 self.check_service_client_function(287 self.client.show_password,288 'tempest.lib.common.rest_client.RestClient.get',289 {'password': 'fake-password'},290 server_id=self.server_id291 )292 def test_delete_password_with_str_body(self):293 self._test_delete_password()294 def test_delete_password_with_bytes_body(self):295 self._test_delete_password(True)296 def _test_delete_password(self, bytes_body=False):297 self.check_service_client_function(298 self.client.delete_password,299 'tempest.lib.common.rest_client.RestClient.delete',300 {},301 status=204,302 server_id=self.server_id303 )304 def test_reboot_server_with_str_body(self):305 self._test_reboot_server()306 def test_reboot_server_with_bytes_body(self):307 self._test_reboot_server(True)308 def _test_reboot_server(self, bytes_body=False):309 self.check_service_client_function(310 self.client.reboot_server,311 'tempest.lib.common.rest_client.RestClient.post',312 {},313 status=202,314 server_id=self.server_id,315 type='fake-reboot-type'316 )317 def test_rebuild_server_with_str_body(self):318 self._test_rebuild_server()319 def test_rebuild_server_with_bytes_body(self):320 self._test_rebuild_server(True)321 def _test_rebuild_server(self, bytes_body=False):322 self.check_service_client_function(323 self.client.rebuild_server,324 'tempest.lib.common.rest_client.RestClient.post',325 self.FAKE_REBUILD_SERVER,326 status=202,327 server_id=self.server_id,328 image_ref='fake-image-ref'329 )330 def test_resize_server_with_str_body(self):331 self._test_resize_server()332 def test_resize_server_with_bytes_body(self):333 self._test_resize_server(True)334 def _test_resize_server(self, bytes_body=False):335 self.check_service_client_function(336 self.client.resize_server,337 'tempest.lib.common.rest_client.RestClient.post',338 {},339 status=202,340 server_id=self.server_id,341 flavor_ref='fake-flavor-ref'342 )343 def test_confirm_resize_server_with_str_body(self):344 self._test_confirm_resize_server()345 def test_confirm_resize_server_with_bytes_body(self):346 self._test_confirm_resize_server(True)347 def _test_confirm_resize_server(self, bytes_body=False):348 self.check_service_client_function(349 self.client.confirm_resize_server,350 'tempest.lib.common.rest_client.RestClient.post',351 {},352 status=204,353 server_id=self.server_id354 )355 def test_revert_resize_server_with_str_body(self):356 self._test_revert_resize()357 def test_revert_resize_server_with_bytes_body(self):358 self._test_revert_resize(True)359 def _test_revert_resize(self, bytes_body=False):360 self.check_service_client_function(361 self.client.revert_resize_server,362 'tempest.lib.common.rest_client.RestClient.post',363 {},364 status=202,365 server_id=self.server_id366 )367 def test_list_server_metadata_with_str_body(self):368 self._test_list_server_metadata()369 def test_list_server_metadata_with_bytes_body(self):370 self._test_list_server_metadata()371 def _test_list_server_metadata(self, bytes_body=False):372 self.check_service_client_function(373 self.client.list_server_metadata,374 'tempest.lib.common.rest_client.RestClient.get',375 {'metadata': {'fake-key': 'fake-meta-data'}},376 server_id=self.server_id377 )378 def test_set_server_metadata_with_str_body(self):379 self._test_set_server_metadata()380 def test_set_server_metadata_with_bytes_body(self):381 self._test_set_server_metadata(True)382 def _test_set_server_metadata(self, bytes_body=False):383 self.check_service_client_function(384 self.client.set_server_metadata,385 'tempest.lib.common.rest_client.RestClient.put',386 {'metadata': {'fake-key': 'fake-meta-data'}},387 server_id=self.server_id,388 meta='fake-meta'389 )390 def test_update_server_metadata_with_str_body(self):391 self._test_update_server_metadata()392 def test_update_server_metadata_with_bytes_body(self):393 self._test_update_server_metadata(True)394 def _test_update_server_metadata(self, bytes_body=False):395 self.check_service_client_function(396 self.client.update_server_metadata,397 'tempest.lib.common.rest_client.RestClient.post',398 {'metadata': {'fake-key': 'fake-meta-data'}},399 server_id=self.server_id,400 meta='fake-meta'401 )402 def test_show_server_metadata_item_with_str_body(self):403 self._test_show_server_metadata()404 def test_show_server_metadata_item_with_bytes_body(self):405 self._test_show_server_metadata(True)406 def _test_show_server_metadata(self, bytes_body=False):407 self.check_service_client_function(408 self.client.show_server_metadata_item,409 'tempest.lib.common.rest_client.RestClient.get',410 {'meta': {'fake-key': 'fake-meta-data'}},411 server_id=self.server_id,412 key='fake-key'413 )414 def test_set_server_metadata_item_with_str_body(self):415 self._test_set_server_metadata_item()416 def test_set_server_metadata_item_with_bytes_body(self):417 self._test_set_server_metadata_item(True)418 def _test_set_server_metadata_item(self, bytes_body=False):419 self.check_service_client_function(420 self.client.set_server_metadata_item,421 'tempest.lib.common.rest_client.RestClient.put',422 {'meta': {'fake-key': 'fake-meta-data'}},423 server_id=self.server_id,424 key='fake-key',425 meta='fake-meta'426 )427 def test_delete_server_metadata_item_with_str_body(self):428 self._test_delete_server_metadata()429 def test_delete_server_metadata_item_with_bytes_body(self):430 self._test_delete_server_metadata(True)431 def _test_delete_server_metadata(self, bytes_body=False):432 self.check_service_client_function(433 self.client.delete_server_metadata_item,434 'tempest.lib.common.rest_client.RestClient.delete',435 {},436 status=204,437 server_id=self.server_id,438 key='fake-key'439 )440 def test_stop_server_with_str_body(self):441 self._test_stop_server()442 def test_stop_server_with_bytes_body(self):443 self._test_stop_server(True)444 def _test_stop_server(self, bytes_body=False):445 self.check_service_client_function(446 self.client.stop_server,447 'tempest.lib.common.rest_client.RestClient.post',448 {},449 status=202,450 server_id=self.server_id451 )452 def test_start_server_with_str_body(self):453 self._test_start_server()454 def test_start_server_with_bytes_body(self):455 self._test_start_server(True)456 def _test_start_server(self, bytes_body=False):457 self.check_service_client_function(458 self.client.start_server,459 'tempest.lib.common.rest_client.RestClient.post',460 {},461 status=202,462 server_id=self.server_id463 )464 def test_attach_volume_with_str_body(self):465 self._test_attach_volume_server()466 def test_attach_volume_with_bytes_body(self):467 self._test_attach_volume_server(True)468 def _test_attach_volume_server(self, bytes_body=False):469 self.check_service_client_function(470 self.client.attach_volume,471 'tempest.lib.common.rest_client.RestClient.post',472 {'volumeAttachment': self.FAKE_COMMON_VOLUME},473 server_id=self.server_id474 )475 def test_update_attached_volume(self):476 self.check_service_client_function(477 self.client.update_attached_volume,478 'tempest.lib.common.rest_client.RestClient.put',479 {},480 status=202,481 server_id=self.server_id,482 attachment_id='fake-attachment-id',483 volumeId='fake-volume-id'484 )485 def test_detach_volume_with_str_body(self):486 self._test_detach_volume_server()487 def test_detach_volume_with_bytes_body(self):488 self._test_detach_volume_server(True)489 def _test_detach_volume_server(self, bytes_body=False):490 self.check_service_client_function(491 self.client.detach_volume,492 'tempest.lib.common.rest_client.RestClient.delete',493 {},494 status=202,495 server_id=self.server_id,496 volume_id=self.FAKE_COMMON_VOLUME['volumeId']497 )498 def test_show_volume_attachment_with_str_body(self):499 self._test_show_volume_attachment()500 def test_show_volume_attachment_with_bytes_body(self):501 self._test_show_volume_attachment(True)502 def _test_show_volume_attachment(self, bytes_body=False):503 self.check_service_client_function(504 self.client.show_volume_attachment,505 'tempest.lib.common.rest_client.RestClient.get',506 {'volumeAttachment': self.FAKE_COMMON_VOLUME},507 server_id=self.server_id,508 volume_id=self.FAKE_COMMON_VOLUME['volumeId']509 )510 def test_list_volume_attachments_with_str_body(self):511 self._test_list_volume_attachments()512 def test_list_volume_attachments_with_bytes_body(self):513 self._test_list_volume_attachments(True)514 def _test_list_volume_attachments(self, bytes_body=False):515 self.check_service_client_function(516 self.client.list_volume_attachments,517 'tempest.lib.common.rest_client.RestClient.get',518 {'volumeAttachments': [self.FAKE_COMMON_VOLUME]},519 server_id=self.server_id520 )521 def test_add_security_group_with_str_body(self):522 self._test_add_security_group()523 def test_add_security_group_with_bytes_body(self):524 self._test_add_security_group(True)525 def _test_add_security_group(self, bytes_body=False):526 self.check_service_client_function(527 self.client.add_security_group,528 'tempest.lib.common.rest_client.RestClient.post',529 {},530 status=202,531 server_id=self.server_id,532 name='fake-name'533 )534 def test_remove_security_group_with_str_body(self):535 self._test_remove_security_group()536 def test_remove_security_group_with_bytes_body(self):537 self._test_remove_security_group(True)538 def _test_remove_security_group(self, bytes_body=False):539 self.check_service_client_function(540 self.client.remove_security_group,541 'tempest.lib.common.rest_client.RestClient.post',542 {},543 status=202,544 server_id=self.server_id,545 name='fake-name'546 )547 def test_live_migrate_server_with_str_body(self):548 self._test_live_migrate_server()549 def test_live_migrate_server_with_bytes_body(self):550 self._test_live_migrate_server(True)551 def _test_live_migrate_server(self, bytes_body=False):552 self.check_service_client_function(553 self.client.live_migrate_server,554 'tempest.lib.common.rest_client.RestClient.post',555 {},556 status=202,557 server_id=self.server_id558 )559 def test_migrate_server_with_str_body(self):560 self._test_migrate_server()561 def test_migrate_server_with_bytes_body(self):562 self._test_migrate_server(True)563 def _test_migrate_server(self, bytes_body=False):564 self.check_service_client_function(565 self.client.migrate_server,566 'tempest.lib.common.rest_client.RestClient.post',567 {},568 status=202,569 server_id=self.server_id570 )571 def test_lock_server_with_str_body(self):572 self._test_lock_server()573 def test_lock_server_with_bytes_body(self):574 self._test_lock_server(True)575 def _test_lock_server(self, bytes_body=False):576 self.check_service_client_function(577 self.client.lock_server,578 'tempest.lib.common.rest_client.RestClient.post',579 {},580 status=202,581 server_id=self.server_id582 )583 def test_unlock_server_with_str_body(self):584 self._test_unlock_server()585 def test_unlock_server_with_bytes_body(self):586 self._test_unlock_server(True)587 def _test_unlock_server(self, bytes_body=False):588 self.check_service_client_function(589 self.client.unlock_server,590 'tempest.lib.common.rest_client.RestClient.post',591 {},592 status=202,593 server_id=self.server_id594 )595 def test_suspend_server_with_str_body(self):596 self._test_suspend_server()597 def test_suspend_server_with_bytes_body(self):598 self._test_suspend_server(True)599 def _test_suspend_server(self, bytes_body=False):600 self.check_service_client_function(601 self.client.suspend_server,602 'tempest.lib.common.rest_client.RestClient.post',603 {},604 status=202,605 server_id=self.server_id606 )607 def test_resume_server_with_str_body(self):608 self._test_resume_server()609 def test_resume_server_with_bytes_body(self):610 self._test_resume_server(True)611 def _test_resume_server(self, bytes_body=False):612 self.check_service_client_function(613 self.client.resume_server,614 'tempest.lib.common.rest_client.RestClient.post',615 {},616 status=202,617 server_id=self.server_id618 )619 def test_pause_server_with_str_body(self):620 self._test_pause_server()621 def test_pause_server_with_bytes_body(self):622 self._test_pause_server(True)623 def _test_pause_server(self, bytes_body=False):624 self.check_service_client_function(625 self.client.pause_server,626 'tempest.lib.common.rest_client.RestClient.post',627 {},628 status=202,629 server_id=self.server_id630 )631 def test_unpause_server_with_str_body(self):632 self._test_unpause_server()633 def test_unpause_server_with_bytes_body(self):634 self._test_unpause_server(True)635 def _test_unpause_server(self, bytes_body=False):636 self.check_service_client_function(637 self.client.unpause_server,638 'tempest.lib.common.rest_client.RestClient.post',639 {},640 status=202,641 server_id=self.server_id642 )643 def test_reset_state_with_str_body(self):644 self._test_reset_state()645 def test_reset_state_with_bytes_body(self):646 self._test_reset_state(True)647 def _test_reset_state(self, bytes_body=False):648 self.check_service_client_function(649 self.client.reset_state,650 'tempest.lib.common.rest_client.RestClient.post',651 {},652 status=202,653 server_id=self.server_id,654 state='fake-state'655 )656 def test_shelve_server_with_str_body(self):657 self._test_shelve_server()658 def test_shelve_server_with_bytes_body(self):659 self._test_shelve_server(True)660 def _test_shelve_server(self, bytes_body=False):661 self.check_service_client_function(662 self.client.shelve_server,663 'tempest.lib.common.rest_client.RestClient.post',664 {},665 status=202,666 server_id=self.server_id667 )668 def test_unshelve_server_with_str_body(self):669 self._test_unshelve_server()670 def test_unshelve_server_with_bytes_body(self):671 self._test_unshelve_server(True)672 def _test_unshelve_server(self, bytes_body=False):673 self.check_service_client_function(674 self.client.unshelve_server,675 'tempest.lib.common.rest_client.RestClient.post',676 {},677 status=202,678 server_id=self.server_id679 )680 def test_shelve_offload_server_with_str_body(self):681 self._test_shelve_offload_server()682 def test_shelve_offload_server_with_bytes_body(self):683 self._test_shelve_offload_server(True)684 def _test_shelve_offload_server(self, bytes_body=False):685 self.check_service_client_function(686 self.client.shelve_offload_server,687 'tempest.lib.common.rest_client.RestClient.post',688 {},689 status=202,690 server_id=self.server_id691 )692 def test_get_console_output_with_str_body(self):693 self._test_get_console_output()694 def test_get_console_output_with_bytes_body(self):695 self._test_get_console_output(True)696 def _test_get_console_output(self, bytes_body=False):697 self.check_service_client_function(698 self.client.get_console_output,699 'tempest.lib.common.rest_client.RestClient.post',700 {'output': 'fake-output'},701 server_id=self.server_id,702 length='fake-length'703 )704 def test_list_virtual_interfaces_with_str_body(self):705 self._test_list_virtual_interfaces()706 def test_list_virtual_interfaces_with_bytes_body(self):707 self._test_list_virtual_interfaces(True)708 def _test_list_virtual_interfaces(self, bytes_body=False):709 self.check_service_client_function(710 self.client.list_virtual_interfaces,711 'tempest.lib.common.rest_client.RestClient.get',712 {'virtual_interfaces': [self.FAKE_VIRTUAL_INTERFACES]},713 server_id=self.server_id714 )715 def test_rescue_server_with_str_body(self):716 self._test_rescue_server()717 def test_rescue_server_with_bytes_body(self):718 self._test_rescue_server(True)719 def _test_rescue_server(self, bytes_body=False):720 self.check_service_client_function(721 self.client.rescue_server,722 'tempest.lib.common.rest_client.RestClient.post',723 {'adminPass': 'fake-admin-pass'},724 server_id=self.server_id725 )726 def test_unrescue_server_with_str_body(self):727 self._test_unrescue_server()728 def test_unrescue_server_with_bytes_body(self):729 self._test_unrescue_server(True)730 def _test_unrescue_server(self, bytes_body=False):731 self.check_service_client_function(732 self.client.unrescue_server,733 'tempest.lib.common.rest_client.RestClient.post',734 {},735 status=202,736 server_id=self.server_id737 )738 def test_show_server_diagnostics_with_str_body(self):739 self._test_show_server_diagnostics()740 def test_show_server_diagnostics_with_bytes_body(self):741 self._test_show_server_diagnostics(True)742 def _test_show_server_diagnostics(self, bytes_body=False):743 self.check_service_client_function(744 self.client.show_server_diagnostics,745 'tempest.lib.common.rest_client.RestClient.get',746 self.FAKE_SERVER_DIAGNOSTICS,747 status=200,748 server_id=self.server_id749 )750 def test_list_instance_actions_with_str_body(self):751 self._test_list_instance_actions()752 def test_list_instance_actions_with_bytes_body(self):753 self._test_list_instance_actions(True)754 def _test_list_instance_actions(self, bytes_body=False):755 self.check_service_client_function(756 self.client.list_instance_actions,757 'tempest.lib.common.rest_client.RestClient.get',758 {'instanceActions': [self.FAKE_INSTANCE_ACTIONS]},759 server_id=self.server_id760 )761 def test_show_instance_action_with_str_body(self):762 self._test_show_instance_action()763 def test_show_instance_action_with_bytes_body(self):764 self._test_show_instance_action(True)765 def _test_show_instance_action(self, bytes_body=False):766 self.check_service_client_function(767 self.client.show_instance_action,768 'tempest.lib.common.rest_client.RestClient.get',769 {'instanceAction': self.FAKE_INSTANCE_WITH_EVENTS},770 server_id=self.server_id,771 request_id='fake-request-id'772 )773 def test_force_delete_server_with_str_body(self):774 self._test_force_delete_server()775 def test_force_delete_server_with_bytes_body(self):776 self._test_force_delete_server(True)777 def _test_force_delete_server(self, bytes_body=False):778 self.check_service_client_function(779 self.client.force_delete_server,780 'tempest.lib.common.rest_client.RestClient.post',781 {},782 status=202,783 server_id=self.server_id784 )785 def test_restore_soft_deleted_server_with_str_body(self):786 self._test_restore_soft_deleted_server()787 def test_restore_soft_deleted_server_with_bytes_body(self):788 self._test_restore_soft_deleted_server(True)789 def _test_restore_soft_deleted_server(self, bytes_body=False):790 self.check_service_client_function(791 self.client.restore_soft_deleted_server,792 'tempest.lib.common.rest_client.RestClient.post',793 {},794 status=202,795 server_id=self.server_id796 )797 def test_reset_network_with_str_body(self):798 self._test_reset_network()799 def test_reset_network_with_bytes_body(self):800 self._test_reset_network(True)801 def _test_reset_network(self, bytes_body=False):802 self.check_service_client_function(803 self.client.reset_network,804 'tempest.lib.common.rest_client.RestClient.post',805 {},806 status=202,807 server_id=self.server_id808 )809 def test_inject_network_info_with_str_body(self):810 self._test_inject_network_info()811 def test_inject_network_info_with_bytes_body(self):812 self._test_inject_network_info(True)813 def _test_inject_network_info(self, bytes_body=False):814 self.check_service_client_function(815 self.client.inject_network_info,816 'tempest.lib.common.rest_client.RestClient.post',817 {},818 status=202,819 server_id=self.server_id820 )821 def test_get_vnc_console_with_str_body(self):822 self._test_get_vnc_console()823 def test_get_vnc_console_with_bytes_body(self):824 self._test_get_vnc_console(True)825 def _test_get_vnc_console(self, bytes_body=False):826 self.check_service_client_function(827 self.client.get_vnc_console,828 'tempest.lib.common.rest_client.RestClient.post',829 {'console': self.FAKE_VNC_CONSOLE},830 server_id=self.server_id,831 type='fake-console-type'...

Full Screen

Full Screen

test_keypairs_client.py

Source:test_keypairs_client.py Github

copy

Full Screen

...27 fake_auth = fake_auth_provider.FakeAuthProvider()28 self.client = keypairs_client.KeyPairsClient(29 fake_auth, 'compute', 'regionOne')30 def _test_list_keypairs(self, bytes_body=False):31 self.check_service_client_function(32 self.client.list_keypairs,33 'tempest_lib.common.rest_client.RestClient.get',34 {"keypairs": []},35 bytes_body)36 def test_list_keypairs_with_str_body(self):37 self._test_list_keypairs()38 def test_list_keypairs_with_bytes_body(self):39 self._test_list_keypairs(bytes_body=True)40 def _test_show_keypair(self, bytes_body=False):41 fake_keypair = copy.deepcopy(self.FAKE_KEYPAIR)42 fake_keypair["keypair"].update({43 "deleted": False,44 "created_at": "2015-07-22T04:53:52.000000",45 "updated_at": None,46 "deleted_at": None,47 "id": 148 })49 self.check_service_client_function(50 self.client.show_keypair,51 'tempest_lib.common.rest_client.RestClient.get',52 fake_keypair,53 bytes_body,54 keypair_name="test")55 def test_show_keypair_with_str_body(self):56 self._test_show_keypair()57 def test_show_keypair_with_bytes_body(self):58 self._test_show_keypair(bytes_body=True)59 def _test_create_keypair(self, bytes_body=False):60 fake_keypair = copy.deepcopy(self.FAKE_KEYPAIR)61 fake_keypair["keypair"].update({"private_key": "foo"})62 self.check_service_client_function(63 self.client.create_keypair,64 'tempest_lib.common.rest_client.RestClient.post',65 fake_keypair,66 bytes_body,67 name="test")68 def test_create_keypair_with_str_body(self):69 self._test_create_keypair()70 def test_create_keypair_with_bytes_body(self):71 self._test_create_keypair(bytes_body=True)72 def test_delete_keypair(self):73 self.check_service_client_function(74 self.client.delete_keypair,75 'tempest_lib.common.rest_client.RestClient.delete',...

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