blob: fd02780e9761d91341239a68e9a2dcfe34d215e9 [file] [log] [blame]
Ghanshyam88e11a22014-03-26 17:35:49 +09001# Copyright 2014 NEC Corporation. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15from tempest.api_schema.compute import parameter_types
16
17list_flavors = {
18 'status_code': [200],
19 'response_body': {
20 'type': 'object',
21 'properties': {
22 'flavors': {
23 'type': 'array',
24 'items': {
25 'type': 'object',
26 'properties': {
27 'name': {'type': 'string'},
28 'links': parameter_types.links,
29 'id': {'type': 'string'}
30 },
31 'required': ['name', 'links', 'id']
32 }
33 }
34 },
35 'required': ['flavors']
36 }
37}
Ghanshyambcd09102014-03-26 18:03:29 +090038
39common_flavor_list_details = {
40 'status_code': [200],
41 'response_body': {
42 'type': 'object',
43 'properties': {
44 'flavors': {
45 'type': 'array',
46 'items': {
47 'type': 'object',
48 'properties': {
49 'name': {'type': 'string'},
50 'links': parameter_types.links,
51 'ram': {'type': 'integer'},
52 'vcpus': {'type': 'integer'},
53 'swap': {'type': 'integer'},
54 'disk': {'type': 'integer'},
55 'id': {'type': 'string'}
56 },
57 'required': ['name', 'links', 'ram', 'vcpus',
58 'swap', 'disk', 'id']
59 }
60 }
61 },
62 'required': ['flavors']
63 }
64}