Add missing api samples for floating-ips api(v2)

floating-ips api missing floating-ips-get-resp sample file,
and the integrated test cases use a wrong sample file(algouth
the contents are same).
This patch addes missing api samples file and correct the
integrated test case.

Change-Id: Icadcabad369cb6a9c3270915aa3bc9545d5348e8
This commit is contained in:
Eli Qiao
2015-02-15 18:21:15 +08:00
parent 93a38ef4ff
commit c4a632a8f4
3 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
{
"floating_ip": {
"fixed_ip": null,
"id": 1,
"instance_id": null,
"ip": "10.10.10.1",
"pool": "nova"
}
}

View File

@@ -0,0 +1,9 @@
{
"floating_ip": {
"fixed_ip": null,
"id": 1,
"instance_id": null,
"ip": "10.10.10.1",
"pool": "nova"
}
}

View File

@@ -899,7 +899,7 @@ class FloatingIpsJsonTest(ApiSampleTestBaseV2):
# but it would be better if we could get this from the create
response = self._do_get('os-floating-ips/%d' % 1)
subs = self._get_regexes()
self._verify_response('floating-ips-create-resp', subs, response, 200)
self._verify_response('floating-ips-get-resp', subs, response, 200)
def test_floating_ips_delete(self):
self.test_floating_ips_create()