2014-04-01 00:03:34 |
Ghanshyam Mann |
description |
Problem -
API sample file for Nova get keypair API is wrong. It contain the response sample of list keypair API.
/nova/tests/integrated/api_samples/os-keypairs/keypairs-get-resp.json.tpl
/nova/tests/integrated/api_samples/os-keypairs/keypairs-get-resp.xml.tpl
Their API sample test cases are also written for list keypair APIs thats why those are being passed in test results. This issue is in both V2 and V3 APIs sample.
Solution-
We need to make this as list keypair and add new for get keypair API. |
Problem -
API sample file for Nova get keypair API is wrong. It contain the response sample of list keypair API.
Below API sample files, from their name it looks like these are for get keypair API. But in actual content of these files are written as List keypair API response. So it create the confusion that for which API these API sample file are. Name suggest for GET and content suggest for LIST Keypair.
/nova/tests/integrated/api_samples/os-keypairs/keypairs-get-resp.json.tpl
/nova/tests/integrated/api_samples/os-keypairs/keypairs-get-resp.xml.tpl
Their API sample test cases are written corrosponding to list keypair APIs. This issue is in both V2 and V3 APIs sample.
Solution-
- Here we need to rename the above sample files and their test from 'keypairs-get-resp.json.tpl' to 'keypairs-list-resp.json.tpl' etc
- Create the new sample file and test for GET keypair. |
|