Create tests to get completely Nova API Samples
Create tests to obtain reliable and attested samples of Nova API requests and responses using both XML and Json interfaces.
This samples will be used at api site api.openstack.org and in the manuals.
Blueprint information
- Status:
- Complete
- Approver:
- Russell Bryant
- Priority:
- High
- Drafter:
- Mauro S M Rodrigues
- Direction:
- Approved
- Assignee:
- Tiago Mello
- Definition:
- Approved
- Series goal:
- Accepted for grizzly
- Implementation:
- Implemented
- Milestone target:
- 2013.1
- Started by
- Russell Bryant
- Completed by
- Russell Bryant
Related branches
Related bugs
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/
* Set the extension name if necessary
* For each REST action:
- create a test case using the existing scaffolding
- The file nova/tests/
- run: GENERATE_
- edit the template with replacement strings
- add new subs regex items if necessary
run again: GENERATE_
* 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.
Gerrit topic: https:/
Addressed by: https:/
Added sample tests to consoles API. Implements blueprint nova-api-samples Fixes bug 1070155
Gerrit topic: https:/
Addressed by: https:/
updated api_samples with real hypervisor_hostname
Gerrit topic: https:/
Addressed by: https:/
Added sample tests to deferred delete API.
Addressed by: https:/
Renaming xml test class in sample tests of consoles API.
Gerrit topic: https:/
Gerrit topic: https:/
Addressed by: https:/
Added sample tests to extended status API.
Gerrit topic: https:/
Addressed by: https:/
Adds API Sample tests for DiskConfig extension.
Gerrit topic: https:/
Addressed by: https:/
Adds API Sample tests for Quotas extension.
Gerrit topic: https:/
Addressed by: https:/
Adds API Sample tests for FloatingIPDNS extension.
Gerrit topic: https:/
Addressed by: https:/
Added sample tests to FlavorManage API.
Gerrit topic: https:/
Addressed by: https:/
Modified sample tests to FlavorExtraDate API. Modified sample tests to FlavorManage API.
Gerrit topic: https:/
Addressed by: https:/
Added sample tests to FlavorDisabled API.
Gerrit topic: https:/
Addressed by: https:/
Add API samples tests for the coverage extension.
Gerrit topic: https:/
Addressed by: https:/
Added sample tests to floating-ip-pools API.
Gerrit topic: https:/
Addressed by: https:/
Added sample tests to QuotaClasses API.
Gerrit topic: https:/
Gerrit topic: https:/
Addressed by: https:/
Add API sample tests to FixedIPs extension Partially implements blueprint nova-api-samples Bug 1091739
Gerrit topic: https:/
Addressed by: https:/
Added sample tests to FlavorRxtx API.
Gerrit topic: https:/
Addressed by: https:/
Added sample tests to FlavorSwap API.
Gerrit topic: https:/
Addressed by: https:/
Add API sample tests to Services extension
Gerrit topic: https:/
Addressed by: https:/
Add API sample tests to Admin network
Gerrit topic: https:/
Addressed by: https:/
Add api samples to fping extension
Addressed by: https:/
Added sample tests to floating-ip-pools API.
Gerrit topic: https:/
Addressed by: https:/
Add api-samples to multinic extension
Gerrit topic: https:/
Addressed by: https:/
Added sample tests to FlavorExtraSpecs API
Gerrit topic: https:/
Addressed by: https:/
add config drive to api_samples
Gerrit topic: https:/
Addressed by: https:/
Adds API Sample tests for FlavorAccess extension.
Gerrit topic: https:/
Addressed by: https:/
Adds API Sample tests for Hypervisors extension.
Gerrit topic: https:/
Addressed by: https:/
Add os-volumes extension to api samples
Gerrit topic: https:/
Addressed by: https:/
Add API Sample tests for Snapshots extension.
Gerrit topic: https:/
Addressed by: https:/
Adds API Sample tests for Volume Attachments
Gerrit topic: https:/
Addressed by: https:/
Fix typo in the XML serialization os-services API.
Addressed by: https:/
Fix typo in the XML serialization os-services API.