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:
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"floating_ip": {
|
||||
"fixed_ip": null,
|
||||
"id": 1,
|
||||
"instance_id": null,
|
||||
"ip": "10.10.10.1",
|
||||
"pool": "nova"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"floating_ip": {
|
||||
"fixed_ip": null,
|
||||
"id": 1,
|
||||
"instance_id": null,
|
||||
"ip": "10.10.10.1",
|
||||
"pool": "nova"
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user