commit c41e6cf794e6d68ae083960e195c92e2ac487df1
Author: Chris St. Pierre <email address hidden>
Date: Fri Jul 11 09:52:24 2014 -0400
Revise compute API schemas and add tests
This revises the servers, images, and flavors schemas to avoid a
duplicate definition of the top-level tags in those schemas. Instead,
of defines each schema to allow either a list of tags with only
name/id (as in the index listings), or a list of fully-defined
servers/images/flavors. It is not permitted to mix and match.
It also adds three kinds of unit tests for the API schemas:
* A basic check to ensure that the schema files are valid RelaxNG;
* A check to ensure that the collected body of schema files does not
contain duplicate top-level tag definitions;
* Explicit test XML documents.
Reviewed: https:/ /review. openstack. org/98215 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=c41e6cf794e 6d68ae083960e19 5c92e2ac487df1
Committed: https:/
Submitter: Jenkins
Branch: master
commit c41e6cf794e6d68 ae083960e195c92 e2ac487df1
Author: Chris St. Pierre <email address hidden>
Date: Fri Jul 11 09:52:24 2014 -0400
Revise compute API schemas and add tests
This revises the servers, images, and flavors schemas to avoid a images/ flavors. It is not permitted to mix and match.
duplicate definition of the top-level tags in those schemas. Instead,
of defines each schema to allow either a list of tags with only
name/id (as in the index listings), or a list of fully-defined
servers/
It also adds three kinds of unit tests for the API schemas:
* A basic check to ensure that the schema files are valid RelaxNG;
* A check to ensure that the collected body of schema files does not
contain duplicate top-level tag definitions;
* Explicit test XML documents.
Closes-Bug: 885025 2bb2a2813f36637 aef2c2d5c92
Change-Id: I542b420de34fd8