summaryrefslogtreecommitdiff
path: root/tempest/api_schema/response
diff options
context:
space:
mode:
authorghanshyam <ghanshyam.mann@nectechnologies.in>2015-02-24 14:39:01 +0900
committerKen'ichi Ohmichi <ken1ohmichi@gmail.com>2015-03-05 05:25:03 +0000
commitae1e676b7ac72f0d122df7535cb669f9b17d0c72 (patch)
tree550cca8c874e7abab5254e8d7702633603e821e0 /tempest/api_schema/response
parent3985fc001163834ff9fda1a3aac73bb0ae6aa51c (diff)
downloadtempest-ae1e676b7ac72f0d122df7535cb669f9b17d0c72.tar.gz
Add server groups quota attributes in limit schema
If 'os-server-group-quotas' extension is enabled then, absolute_limits GET API's response includes 'maxServerGroupMembers', 'maxServerGroups' and 'totalServerGroupsUsed' attributes too. This patch adds those attributes in schema files. Change-Id: I0d7adbdfe295d6cd27a8cb944fbaee3681113c42
Diffstat (limited to 'tempest/api_schema/response')
-rw-r--r--tempest/api_schema/response/compute/v2/limits.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tempest/api_schema/response/compute/v2/limits.py b/tempest/api_schema/response/compute/v2/limits.py
index b9857f17e..a7decb7b4 100644
--- a/tempest/api_schema/response/compute/v2/limits.py
+++ b/tempest/api_schema/response/compute/v2/limits.py
@@ -38,8 +38,15 @@ get_limit = {
'maxSecurityGroupRules': {'type': 'integer'},
'maxTotalKeypairs': {'type': 'integer'},
'totalRAMUsed': {'type': 'integer'},
- 'totalInstancesUsed': {'type': 'integer'}
+ 'totalInstancesUsed': {'type': 'integer'},
+ 'maxServerGroupMembers': {'type': 'integer'},
+ 'maxServerGroups': {'type': 'integer'},
+ 'totalServerGroupsUsed': {'type': 'integer'}
},
+ # NOTE(gmann): maxServerGroupMembers, maxServerGroups
+ # and totalServerGroupsUsed are API extension,
+ # and some environments return a response without these
+ # attributes.So they are not 'required'.
'required': ['maxImageMeta',
'maxPersonality',
'maxPersonalitySize',