How to use show_default_group_type method in tempest

Best Python code snippet using tempest_python

group_types_client.py

Source:group_types_client.py Github

copy

Full Screen

...51 resp, body = self.get(url)52 body = json.loads(body)53 self.validate_response(schema.list_group_types, resp, body)54 return rest_client.ResponseBody(resp, body)55 def show_default_group_type(self):56 """Returns the details of default group_type.57 For more information, please refer to the official API reference:58 https://docs.openstack.org/api-ref/block-storage/v3/#show-default-group-type-details59 """60 url = 'group_types/default'61 resp, body = self.get(url)62 body = json.loads(body)63 self.validate_response(schema.show_default_group_type, resp, body)64 return rest_client.ResponseBody(resp, body)65 def show_group_type(self, group_type_id):66 """Returns the details of a single group_type.67 For more information, please refer to the official API reference:68 https://docs.openstack.org/api-ref/block-storage/v3/#show-group-type-details69 """...

Full Screen

Full Screen

group_types.py

Source:group_types.py Github

copy

Full Screen

1# Copyright 2015 NEC Corporation. All rights reserved.2#3# Licensed under the Apache License, Version 2.0 (the "License"); you may4# not use this file except in compliance with the License. You may obtain5# a copy of the License at6#7# http://www.apache.org/licenses/LICENSE-2.08#9# Unless required by applicable law or agreed to in writing, software10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the12# License for the specific language governing permissions and limitations13# under the License.14group_specs = {15 'type': 'object',16 'patternProperties': {17 '^.+$': {'type': 'string'}18 }19}20common_show_group_type = {21 'type': 'object',22 'properties': {23 'id': {'type': 'string'},24 'is_public': {'type': 'boolean'},25 'group_specs': group_specs,26 'description': {'type': ['string', 'null']},27 'name': {'type': 'string'},28 },29 'additionalProperties': False,30 'required': ['id', 'is_public', 'description', 'name']31}32create_group_type = {33 'status_code': [202],34 'response_body': {35 'type': 'object',36 'properties': {37 'group_type': common_show_group_type38 },39 'additionalProperties': False,40 'required': ['group_type']41 }42}43delete_group_type = {'status_code': [202]}44list_group_types = {45 'status_code': [200],46 'response_body': {47 'type': 'object',48 'properties': {49 'group_types': {50 'type': 'array',51 'items': common_show_group_type52 }53 },54 'additionalProperties': False,55 'required': ['group_types'],56 }57}58show_group_type = {59 'status_code': [200],60 'response_body': {61 'type': 'object',62 'properties': {63 'group_type': common_show_group_type64 },65 'additionalProperties': False,66 'required': ['group_type']67 }68}69show_default_group_type = {70 'status_code': [200],71 'response_body': {72 'type': 'object',73 'properties': {74 'group_type': common_show_group_type75 },76 'additionalProperties': False,77 'required': ['group_type']78 }79}80update_group_type = {81 'status_code': [200],82 'response_body': {83 'type': 'object',84 'properties': {85 'group_type': common_show_group_type86 },87 'additionalProperties': False,88 'required': ['group_type']89 }90}91create_or_update_group_type_specs = {92 'status_code': [202],93 'response_body': {94 'type': 'object',95 'properties': {96 'group_specs': group_specs,97 },98 'additionalProperties': False,99 'required': ['group_specs']100 }101}102list_group_type_specs = {103 'status_code': [200],104 'response_body': {105 'type': 'object',106 'properties': {107 'group_specs': group_specs,108 },109 'additionalProperties': False,110 'required': ['group_specs']111 }112}113show_group_type_specs_item = {114 'status_code': [200],115 'response_body': group_specs116}117update_group_type_specs_item = {118 'status_code': [200],119 'response_body': group_specs120}...

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