Merge "Fill schema gap in flavors.py"
This commit is contained in:
commit
5e509415a9
@ -60,7 +60,7 @@ common_flavor_info = {
|
||||
},
|
||||
'additionalProperties': False,
|
||||
# 'OS-FLV-DISABLED', 'os-flavor-access', 'rxtx_factor' and
|
||||
# 'OS-FLV-EXT-DATA' are API extensions. So they are not 'required'.
|
||||
# 'OS-FLV-EXT-DATA' are API extensions, so they are not 'required'.
|
||||
'required': ['name', 'links', 'ram', 'vcpus', 'swap', 'disk', 'id']
|
||||
}
|
||||
|
||||
@ -74,7 +74,7 @@ list_flavors_details = {
|
||||
'items': common_flavor_info
|
||||
},
|
||||
# NOTE(gmann): flavors_links attribute is not necessary
|
||||
# to be present always So it is not 'required'.
|
||||
# to be present always so it is not 'required'.
|
||||
'flavors_links': parameter_types.links
|
||||
},
|
||||
'additionalProperties': False,
|
||||
|
@ -11,7 +11,9 @@
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
import copy
|
||||
|
||||
from tempest.lib.api_schema.response.compute.v2_1 import flavors as flavorsv21
|
||||
from tempest.lib.api_schema.response.compute.v2_1 import parameter_types
|
||||
|
||||
# Note(gmann): This is schema for microversion 2.55 which includes the
|
||||
@ -110,3 +112,9 @@ create_update_get_flavor_details = {
|
||||
'required': ['flavor']
|
||||
}
|
||||
}
|
||||
|
||||
# Note(zhufl): Below are the unchanged schema in this microversion. We need
|
||||
# to keep this schema in this file to have the generic way to select the
|
||||
# right schema based on self.schema_versions_info mapping in service client.
|
||||
# ****** Schemas unchanged since microversion 2.1 ***
|
||||
delete_flavor = copy.deepcopy(flavorsv21.delete_flavor)
|
||||
|
@ -99,4 +99,8 @@ create_update_get_flavor_details = {
|
||||
# Note(gmann): Below are the unchanged schema in this microversion. We need
|
||||
# to keep this schema in this file to have the generic way to select the
|
||||
# right schema based on self.schema_versions_info mapping in service client.
|
||||
# ****** Schemas unchanged since microversion 2.55 ***
|
||||
list_flavors = copy.deepcopy(flavorsv255.list_flavors)
|
||||
|
||||
# ****** Schemas unchanged since microversion 2.1 ***
|
||||
delete_flavor = copy.deepcopy(flavorsv255.delete_flavor)
|
||||
|
Loading…
x
Reference in New Issue
Block a user