diff options
| author | Alex Meade <alex.meade@rackspace.com> | 2011-08-24 14:08:25 -0400 |
|---|---|---|
| committer | Alex Meade <alex.meade@rackspace.com> | 2011-08-24 14:08:25 -0400 |
| commit | 026efcd174cdb1b1d0fece9611dbae358de48387 (patch) | |
| tree | 924c8e941d5800c7ecfd98759d7d3852774c7ddc /nova/api | |
| parent | bde2e876034219b614395ccd66cb45b0e23d348f (diff) | |
| download | nova-026efcd174cdb1b1d0fece9611dbae358de48387.tar.gz nova-026efcd174cdb1b1d0fece9611dbae358de48387.tar.xz nova-026efcd174cdb1b1d0fece9611dbae358de48387.zip | |
Updated FlavorsXMLSerialization tests to use etree and validation instead of minidom
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/schemas/v1.1/flavor.rng | 10 | ||||
| -rw-r--r-- | nova/api/openstack/schemas/v1.1/flavors.rng | 6 | ||||
| -rw-r--r-- | nova/api/openstack/schemas/v1.1/flavors_index.rng | 12 |
3 files changed, 28 insertions, 0 deletions
diff --git a/nova/api/openstack/schemas/v1.1/flavor.rng b/nova/api/openstack/schemas/v1.1/flavor.rng new file mode 100644 index 000000000..a00e4e9ee --- /dev/null +++ b/nova/api/openstack/schemas/v1.1/flavor.rng @@ -0,0 +1,10 @@ +<element name="flavor" ns="http://docs.openstack.org/compute/api/v1.1" + xmlns="http://relaxng.org/ns/structure/1.0"> + <attribute name="name"> <text/> </attribute> + <attribute name="id"> <text/> </attribute> + <attribute name="ram"> <text/> </attribute> + <attribute name="disk"> <text/> </attribute> + <zeroOrMore> + <externalRef href="../atom-link.rng"/> + </zeroOrMore> +</element> diff --git a/nova/api/openstack/schemas/v1.1/flavors.rng b/nova/api/openstack/schemas/v1.1/flavors.rng new file mode 100644 index 000000000..b7a3acc01 --- /dev/null +++ b/nova/api/openstack/schemas/v1.1/flavors.rng @@ -0,0 +1,6 @@ +<element name="flavors" xmlns="http://relaxng.org/ns/structure/1.0" + ns="http://docs.openstack.org/compute/api/v1.1"> + <zeroOrMore> + <externalRef href="flavor.rng"/> + </zeroOrMore> +</element> diff --git a/nova/api/openstack/schemas/v1.1/flavors_index.rng b/nova/api/openstack/schemas/v1.1/flavors_index.rng new file mode 100644 index 000000000..d1a4fedb1 --- /dev/null +++ b/nova/api/openstack/schemas/v1.1/flavors_index.rng @@ -0,0 +1,12 @@ +<element name="flavors" ns="http://docs.openstack.org/compute/api/v1.1" + xmlns="http://relaxng.org/ns/structure/1.0"> + <zeroOrMore> + <element name="flavor"> + <attribute name="name"> <text/> </attribute> + <attribute name="id"> <text/> </attribute> + <zeroOrMore> + <externalRef href="../atom-link.rng"/> + </zeroOrMore> + </element> + </zeroOrMore> +</element> |
