Sprints

Whiteboard

Each piece of Nova API yet to be covered is described in bug reports related to this BP.

The General approach to solve the problem is
1 - JSON API
* In nova/tests/integrated/test_api_samples.py, create a new test class (XxxxSampleJsonTests) extending from ApiSampleTestBase
* Set the extension name if necessary
* For each REST action:
- create a test case using the existing scaffolding
- The file nova/tests/integrated/api_samples/<extension.alias>/name_of_test.json.tpl will be generated automatically when you do ./run_tests.sh for the first time (this one is the test sample template)
- run: GENERATE_SAMPLES=True ./run_tests.sh nova.tests.integrated.test_api_samples:XxxxxSampleJsonTests
- edit the template with replacement strings
- add new subs regex items if necessary
run again: GENERATE_SAMPLES=True ./run_tests.sh nova.tests.integrated.test_api_samples:XxxxxSampleJsonTests
* this time the tests are supposed to succeed, if they don't you're probably missing some string replacement.

2- XML API
- create XxxxSampleXmlTests extending from the json class
- set the ctype to 'xml'
- follow same strategy for xml samples
- compare the generated samples against each other
- compare the generated samples against api.openstack.org
- report any issues as bugs and fix the underlying code (in a dependent patch if it is a large change.
- submit the code for reveiw.