summaryrefslogtreecommitdiff
path: root/tempest/api_schema/response
diff options
context:
space:
mode:
authorghanshyam <ghanshyam.mann@nectechnologies.in>2015-02-24 13:26:46 +0900
committerKen'ichi Ohmichi <ken1ohmichi@gmail.com>2015-03-05 05:23:44 +0000
commitc0a526b2532df6b6eb0da35e2fd21a90875a934c (patch)
treea9b7ebfe5bad1514f99a234b4708ba4316f1c056 /tempest/api_schema/response
parentfbc45c70313184e42fe14484f6e1e044fd776549 (diff)
downloadtempest-c0a526b2532df6b6eb0da35e2fd21a90875a934c.tar.gz
Fix FIP bulk schema for 'fixed_ip'
Floating ips bulk list API response is below- { "floating_ip_info": [ { "address": "10.10.10.3", "instance_uuid": null, "fixed_ip": null, "interface": "eth0", "pool": "nova", "project_id": null } ] } This patch adds the missing "fixed_ip" attribute in schema. Change-Id: I9000b6b3cb40c95bc3d5f0d3e6457ee464f9c029
Diffstat (limited to 'tempest/api_schema/response')
-rw-r--r--tempest/api_schema/response/compute/v2/floating_ips.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tempest/api_schema/response/compute/v2/floating_ips.py b/tempest/api_schema/response/compute/v2/floating_ips.py
index def0a7886..72507731f 100644
--- a/tempest/api_schema/response/compute/v2/floating_ips.py
+++ b/tempest/api_schema/response/compute/v2/floating_ips.py
@@ -146,8 +146,14 @@ list_floating_ips_bulk = {
'instance_uuid': {'type': ['string', 'null']},
'interface': {'type': ['string', 'null']},
'pool': {'type': ['string', 'null']},
- 'project_id': {'type': ['string', 'null']}
+ 'project_id': {'type': ['string', 'null']},
+ 'fixed_ip': {
+ 'type': ['string', 'null'],
+ 'format': 'ip-address'
+ }
},
+ # NOTE: fixed_ip is introduced after JUNO release,
+ # So it is not defined as 'required'.
'required': ['address', 'instance_uuid', 'interface',
'pool', 'project_id']
}